LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I program the 6704 board for constant output useing CVI

Here is what I want to do with the 6704 Card
    1) User selects an output channel
    2) User Turns on the switch
    3) +5 volts is output on the channel to the UUT
    4) When the user turns off the switch for a selected hannel 0 volts is sent out the channel to the UUT
    5) There are 11 discrete channels all operating as in 1 to 4 above
 
Maybe I'm dense but I am trying to do a simple thing with a complicated system all of the examples seem to assume some periodic signal, my signal  aperiodic, simply off and on.
 
How do I accomplish this? I know how to use the CVI controls I just can't figure out how to use this card.
 
Harry Watkins
Sofdtware Engineer OADS
Telephone 703-393-0754
0 Kudos
Message 1 of 3
(2,948 Views)
Harry,

Are you planning on using the Traditional (Legacy) DAQ driver, or DAQmx? I would recommend DAQmx. Have you seen the VoltUpdate shipping example? This code creates a DAQmx task for voltage output (lines 97 & 98), starts it (line 103), and then updates the voltage (line 108). All you need to do for subsequent updates is to call the DAQmxWriteAnalogF64() function. Finally, it is recommended that you stop and discard your task (lines 119 & 120).

Hope this helps,
Ryan Verret
Product Marketing Engineer
Signal Generators
National Instruments
0 Kudos
Message 2 of 3
(2,933 Views)
Hello harryw45,
 
In addition to Ryan's reply, check out Marni's reply on the following thread.
 
Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 3 of 3
(2,927 Views)