ExampleGetDemodSampleΒΆ

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
// ExampleGetDemodSample reads the demodulator sample value of the specified node.
public static void ExampleGetDemodSample(string dev = DEFAULT_DEVICE)
{
  ziDotNET daq = connect(dev);
  SkipForDeviceFamily(daq, dev, "HDAWG");

  resetDeviceToDefault(daq, dev);
  String path = String.Format("/{0}/demods/0/sample", dev);
  ZIDemodSample sample = daq.getDemodSample(path);
  System.Diagnostics.Trace.WriteLine(sample.frequency, "Sample frequency");
  daq.disconnect();

  AssertNotEqual(0ul, sample.timeStamp);
}