LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write Continous Analog Output using DAQmx to Control Valves

Also, is this U16 going to be sent to a analog write, or a digital write?  The Write does not like the U16 even if I changed the output type to Digital 1D U16 NChan 1Samp.
0 Kudos
Message 11 of 14
(648 Views)
Sorry, I keep screwing you up with some of these quick changes and going back and forth. Just like the shipping example called Write Dig Port, the DAQmx Create Channel now has to go back to the default settings for line grouping. If it is one channel for all lines and the channel is Dev1/port0 instead of Dev1/port0/line0:7, you can wire the numeric to the DAQmx Write after you set that to Digital>Single Channel>Single Sample>U16.
0 Kudos
Message 12 of 14
(639 Views)
I opened the Write to Dig. Port, and it worked properly.  However, they are using two byte Hexadecimal number to control the port, and I am not sure how to convert the decimal number into two byte hexadecimal. I found a converter to hexadecimal, but its output is a string.
0 Kudos
Message 13 of 14
(635 Views)
You don't have to. The example just uses that for convenience in the front panel display. The display format is set to hex but a U16 is a U16 no matter how you choose to display it.
0 Kudos
Message 14 of 14
(622 Views)