Please refer to attached vi. ADModule contains the required library functions for A-D card.
Now, in the Ravi ...test1.vi, while loop at the bottom collects the timing signal. I can access that as a local variable "Parallel Port Counter" in the while loop above, where I collect waveform signal from A-D card.
My timing signal coming from a stepper motor, which can move speciman in x-y plane. It scans line by line in x-direction. First 50 counts are rfering to scanning one line in x-direction and 50-100 means returning back. Now the counter resets, y value increment by one and start to scan the second line in x-direction. So, I want to collect amplitude and phase values into two different arrays as a matrix. Each array should be a 2-D.
I am trying to use the Parallel Port Counter for timing. It counts from 0-100. I want to save amplitude values from the A-D waveform, which corresponding to 0-50 of the counter, into first line of the array. Next 0-50 into second row and so on.
ADBUFMOV.vi can move captured signal from A-D card.
How can I save amplitude corresponding to counter 0-50 values into an array of a file?
Thanks,
Ravi.