// ExamplePollScopeData is similar to ExamplePollDemodSample,
// but it subscribes and polls scope data.
public static void ExamplePollScopeData(string dev = DEFAULT_DEVICE)
{
ziDotNET daq = connect(dev);
SkipForDeviceFamily(daq, dev, "HDAWG");
resetDeviceToDefault(daq, dev);
String enablePath = String.Format("/{0}/scopes/0/enable", dev);
daq.setInt(enablePath, 1);
String path = String.Format("/{0}/scopes/0/wave", dev);
daq.subscribe(path);
Lookup lookup = daq.poll(1, 100, 0, 1);
UInt64 timeStamp = lookup[path][0].scopeWaves[0].header.timeStamp;
UInt64 sampleCount = lookup[path][0].scopeWaves[0].header.totalSamples;
daq.disconnect();
AssertNotEqual(0ul, timeStamp);
AssertNotEqual(0ul, sampleCount);
}