Yes, I have my DAQmx Base Read inside a while loop. I'll attach the program so you can see what I have done.
I do mean conversion rate. Acquisition rate (scan rate) seems like the right choice until you take into account that the PDA does not perform synchronous acquisition. So if one has 3 channels, at a scan rate of 2000 Hz, the PDA is actually sampling at 6000 Hz. Or at least, that�s how I interpreted it.
My program works as follows:
Select a daqmx base task, and input the corresponding scan rate, pretrigger samples, trigger channel, and trigger level in volts. (Make sure that the Number of scans, under task timing, in DAQmx base task confiq. Utility is 0. Also, I do not set up a trigger with the config. Utility. )
Select run. In the while loop, the DAQmx base read.vi will continuously read data, and it will be checked for the trigger. If a trigger occurs, the data will be plotted and saved to a specified directory. If there are not enough pretrigger scans, they will be added from the previous analyzed data block. I inserted a feedback node so the program will run until the user stops it.
This week, or early next week, I will perform some tests to see if the saved data is continous if the pretrigger data needs to be added.
If you have any questions, please let me know. I will not have internet access between the evening of the 22nd to the afternoon of the 25th.
Regards,
Chris.