08-29-2005 08:46 AM
08-30-2005 04:18 PM
Dear Harry,
It is too bad that you don't have a board with more DIO lines. However, this can be done easily using AO lines as well. Have you seen this example? It doesn't use a switch, but it shows how to output a single voltage. Replace the button with a switch. Instead of using the slide, have an if else loop in your code. If the switch is on, make &data for AQmxWriteAnalogF64 5V. If off, make it 0V. The voltage will remain at the same level until you update it with a new single voltage. Please let me know if you have any questions. Have a great day!
Sincerely,
Marni S.
08-31-2005 09:43 AM
08-31-2005 11:25 AM