Can i use Measurement studio C# in visual studio to take a digital signal from a usb port (from a data aquisation system) and plot it and how can i do that??. I only tried to use it to plot a noise signal but i couldn't use it to take signal from a port.
// Declare and initialize an instance of WhiteNoiseSignal.
WhiteNoiseSignal whiteNoise = new WhiteNoiseSignal();
// Store the generated data in a double array named data.
double[] data = whiteNoise.Generate(1000.0, 256);
// Use the PlotY method to plot the data.
plot.PlotY(data);
this is the code I use.
Liza, Depending on what device you have you need to configure a digital or analog input channel. You then create a task to monitor the ports you are interested in, and wait for this to callback when acquisition has finished. Something like this:
And then read the data when this callback is invoked: