02-12-2008 06:35 PM
Hi every one. I'm really new in Labview and maybe my question is trivial for some users but I'm still having a hard time trying to figuring out how to get this done in Labview.
This is my situation:
I got a huge text file with 650000 samples that belong to a non-periodic signal. We need to read from this file and generate an analog output by reading its values (file is a cvs format) and then recreate the signal by doing periodic D/A conversions (this is not an issue). This analog signal is going to serve as signal generator for the analysis of one of our medical devices (signal is an ECG record). At the same time, we are going to read from the serial port of our PC to get the responses of the UUT to the stimulus.
Since the timing between the samples has to be deterministic (timing is critical for our application) I plan to use hardware-timed generations by using the onboard clock of my DAQ device to synchronize the D/A generation. The issue is that we need to keep track of the sample number that is being sent to the UUT at any particular moment because we plan to compare our signal values with the responses obtained from our UUT so in that way we can analyze if its behavior is erroneous or correct. How can I achieve this? Once I send a block of samples to the FIFO buffer of my DAQ card for the generation I lost control over the sample number that is being sent. The reason why I need to have control over this is because some of the samples are annotated and they serve as reference for the analysis of the UUT
Any ideas on how to accomplish this?
02-13-2008 05:52 PM
02-14-2008 02:27 PM
Hi Nathan, Thanks for your reply.
I tested the option you gave me and it works fine but just for the first cycle of my waveform generation. The problem I'm facing right now is that the file with the data values has to be read in a cyclical way. So once my DA is done with the first 650000 samples the program has to point to the first sample again and some how I need to reset the "counter of the total of samples per channel generated" to keep track of the second round of values . My program keeps incrementing the value of the "counter of the total of samples per channel generated" for the second, third, and n cycle of my generation. Is there any way to reset this value? or any sugestion on how to acomplish this?
Thanks your your help!
02-15-2008 12:41 PM - edited 02-15-2008 12:41 PM