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.