LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write to serial port and digital port at the same time

hello,

I need to write to the digital port and the serial port at the same time. Right now I have the two vi's (to write to the serial port, write to the digital port) in the sequence structure. First I write the digital port, then write the serial port. Using the oscilloscope, the interval between these two executions is 10 ms; and I need to reduce this interval to as small as possible. I would appreciate help in any way. Thank you.
0 Kudos
Message 1 of 2
(2,619 Views)
Hello;

This is a little tricky. Since the transition from one sequence to another is completely Software timed, and windows manages all tasks that are running at one given time, there isn't a method to reduce that transition time.

The most you can do is try to optimize your code so all the time expent on the transition is due only to the task management.

Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,619 Views)