09-25-2007 04:21 PM
09-26-2007 09:48 AM
First, the CB-68LP is not a data acquisition card. It is just a dumb terminal block.
When you have a loop, nothing is passed to the next loop until the first loop finishes. You should probably have the DAQ Read and the DAQ Write inside the same loop. You might also want to try using the lower level DAQmx functions instead of the DAQ Assistant. A large part of the time in starting a DAQ write or create is the creation of the task and then the start of it. The DAQ Assistants may be doing both each time they are called. If you were to look at the shipping examples, you would see the continuous read and continuous write tasks inside loops but the create channel and start task functions are outside the loop and only done once.
10-02-2007 05:15 PM
10-02-2007 05:24 PM
10-02-2007 05:31 PM
10-03-2007 08:04 AM - edited 10-03-2007 08:04 AM
Anshul,
I just got done characterizing a program that does something similar with DAQmx. Got it to run at 1ms on a fairly slow pc. If you want your vi to be deterministic, you would need to be running in a RT environment.
Dennis has already told you how to make it run fast. Avoid the the DAQ assistant and use the lower level DAQ functions to to create and start your input and output tasks outside a while loop. Put the actual read and write inside the loop. There are several examples that ship with labview that demonstrate this.
Message Edited by centerbolt on 10-03-2007 09:05 AM