Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading and Writing digital lines

Wiring up the iteration takes care of the flashing outputes by not configuring them all the
time but then I can only read our write. I guess what I need to do is configure the board and specify what each line will do and then read our write to them. Next question is I am doing this in parallel loops reading in one loop and writing in another loop is this a problem?
0 Kudos
Message 1 of 2
(2,450 Views)
Running the reading and writing in separate loops should not be a problem. You just need to make sure that you configure the ports first. In most cases, if you configure a port or line it will reset the other ports or lines. In this case make sure you stay away from the easy VIs like Read from Digital Line, Write to Digital Port, etc... I would recommend using the intermediate or advanced VIs. There are several examples that use these advanced VIs, or you can open the Easy VIs and copy the code from them. You just want to make sure you configure everything first, then you can write or read as much as you want.

I hope this helps.

Joshua
0 Kudos
Message 2 of 2
(2,450 Views)