From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Connection between DI/Os and pushbutton and toggle switches

Hi,

i need some advice on the connection between DI/Os and pushbutton and toggle switches. How are the connections like and how am I supposed to use LabVIEW to program it?

Thanks!

Cheers!
0 Kudos
Message 1 of 2
(2,838 Views)
I'm assuming that you mean pushbuttons and toggle switches on the front panel. If you would look at the shipping example called Write Dig Chan (Find Examples>Hardwaire Input and Output>DAQmx>Digital Generattion), you would see how an array of Booleans is connected to DAQmx Write. If you didn't want to use an array on the front panel, you could use the build array on the diagram. If you wanted to control a single line, DAQmx Write would be set to Digital>Single Channel>Single Sample>Boolean by right clicking and do a Select Type. Then you can wire up a front panel Boolean to the DAQmx Write data input.
0 Kudos
Message 2 of 2
(2,830 Views)