06-03-2009 05:31 AM
First, I'm a newbie so bear with me....
I'm trying to create an application with following functions:
Sample a number analog inputs for let say 4 sec. (samplingrate and time will be adjustable)
During sampling I need to activate and deactivate up to 4 outputs. (time dependent)
E.g.
Start measuring AI0, Output 1 high.
Wait 2 sec.
Output 1 low.
Wait 2 sec.
Stop measuring.
Show measuring result.
Someone that could guide me in the right direction or even better, send me a sample VI.
Thanks in advance.
06-03-2009 07:26 AM
Hi LarsA,
you can use two loops, one for the measuring and the other for the output. You can use queues to send commands between them. There are different solutions to realize the wait. You can send it as a command from one loop to the other or you use an extra loop which sends the commands after the specified time.
Hope it helps.
Mike