Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2167

NI 9472 with 9171 to control a 24V Solenoid Valve

$
0
0

1) I am trying to connect a solenoid valve to a NI digital module 9472 with a USB DAQ Chassis 9171. I have verified the voltage signals and used NI Max to turn the valve on and off. Now I am trying to find a VI to do this operation i.e. turning on and off one solenoid valve.

 

I found some example code such as: Digital - SW - Timed Output.vi (attached). I modified the code a little bit to interface the digital channels from the module. Such as in the DAQmx tasks, I have created a "task in" channel to read the signal from specic port from 9472, and as the very same port as the i/o lines . But I keep getting an error  -200463 message: 

 

"Specified read or write operation failed, because the number of lines in the data for a channel does not match the number of lines in the channel.If you are using the Digital Waveform datatype, make sure the number of lines in the digital waveform matches the number of lines in the channel. If you are using boolean data, make sure the array dimension for lines in the data matches the number of lines in the channel.

Number of Lines in Channel: 1; Number of Lines in Data: 8"

 

I am very new to Lab view, so any help in this will be greatly appreciated. 

 

Vikram


Viewing all articles
Browse latest Browse all 2167

Trending Articles