LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delay IO

I'm trying to setup a program to test step response
 
first I begin logging, then after a set delay time I send out a digital output on port 1 and hold that on until logging stops.
 
I'm having trouble sequencing the analog input with the digital output. Right now my logging finishes running, then triggers the digital output. I've had to configure them in different tasks due to them being different data types, so how can I run the read and write blocks simultaneously?
 
 
0 Kudos
Message 1 of 3
(2,485 Views)
Put your logging in a separate loop from thewhere the program waits to turn on the digital output.
 
See attached.

Message Edited by Ravens Fan on 09-06-2007 05:17 PM

0 Kudos
Message 2 of 3
(2,472 Views)
 Hi Amaes,

 To control the execution flow of the analog input and digital output you could use data flow, sequence structures, local variables, etc.

 In this example I would use data flow. I've attached a screenshot of how to do this with DAQmx and Labview 8.2.

 The Analog Input task is started first. After the Task is started then the error out wire branches to the Digital Output task. A delay is inserted before the DO task starts.

 I hope this works for you! Best regards,

MatthewW
Applications Engineer
National Instruments


0 Kudos
Message 3 of 3
(2,449 Views)