LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 8452 Controlling multiple dio ports

Solved!
Go to solution

Hello all

NI USB 8452- I need to control multiple dio ports to actuate solenoids. I used the example vi  and instead of having only one port configuration at the line direction map property node i made a case structure with selector as boolean to switch between the ports. My problem is the digital signal does not switch using the boolean. If i run the vi with boolean at true the signal goes to the port associated with the true case structure and when the boolean switches to false it still actuates the port associated with true signal. Its vice versa when i start the vi with false statement of the boolean.

Attaching my vi for reference. Thank you in advance

0 Kudos
Message 1 of 3
(3,698 Views)
Solution
Accepted by topic author madmonk

Data flow.  The case structure is complete before the loop and then the tunnel is basically a constant at that point.  You should just configure both and move the button into the loop.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(3,691 Views)

Thank you. I understood the mistake. The vi works now.

0 Kudos
Message 3 of 3
(3,652 Views)