Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

DIO96 strange results with Labview 7.0

I am using Tradtional NI-DAQ on Labview 7 with a DIO96. I am using the Write to Digital Line VI supplied by Labview. I initalize 4 lines for output (passing 0 to the iteration terminal). Then I write to the 4 lines (iteration terminal 1). But ALL the lines control whichever line was initialized last. I have tried it with MAC defined line names and with just giving device, port and line numbers to the Write to Digital Line VI. I have tried it with all lines on the same port and with each line on a serpate port.
And ideas??
Thanks,
Charles
0 Kudos
Message 1 of 3
(3,096 Views)
Hi Charles,

Seems like a strange issue. I programmed a simple example that uses two lines and configures them independently. It updates both lines in a loop. I adapted it from the example program. Let me know if you have any questions.

Also, since you are writing to different lines on a port, you could write to digital port and ignore the lines you are not using. This would be a more efficient way to program line writing in the same port.
Anyway, hope that helps. Have a good day.

Ron
Applications Engineering
National Instruments
0 Kudos
Message 2 of 3
(3,096 Views)
I have gone to using port I/O although logically the lines are seperate. I just keep track of the state. Your VI looks a lot like mine. I'll give it a try.
Thanks,
Charles
0 Kudos
Message 3 of 3
(3,096 Views)