I'm using a Multifunction DAQ: PCI-6230. Using labview, I have created a buffer of N (say 1000) random numbers to use as output voltages on one of the output ports of the DAQ. I am continually updating the buffer with new values. My program is supposed to continually generate a random voltage (from the buffer) at the designated output port of the DAQ every time a trigger is received at one of the input ports (PFI 0 say) until the user wishes to stop, at which point, the buffer will no longer be loaded with new values, or the trigger signal can be turned off.
The problem I've been facing is that if I use 'finite number of samples' (because my buffer size has a size N), after writing the N samples, I cant write any more values, because the task is considered done. Recreating the task every time the buffer is empty in order to write the next N samples causes delays, which my application can not tolerate.
I havent found a way to use 'continuos samples' without using 'allow regeneration'. I dont want to allow regenearation of the old values. I need to write the new values I filled in the buffer.
Any thoughts on how to approach this problem?
Your help is really appreciated!
Rejoy.