LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i program my NI9481 relay-station in labview?

I have a NI9481 relay-station which I want to use to control some magnetic valves. My problem is that I do not know how to program it.

I set it up as a digital line output with 1 sample on demand (only allowed setting). No matter what i put in "Data" it keeps returning an error message saying wrong number of channels.

I hope yopu can help me on this.

 

Thanks in advance

 

Anders

0 Kudos
Message 1 of 2
(2,453 Views)

Hi Anders,

 

Good afternoon and I hope your well today. Thanks for your post.

 

I think the issue here is you'll  have a mis-match between the size of the array (states) and the number of lines you've selected as the input of the DAQmx create task VI. 

 

9481.JPG

You can check the state of the relay module using a read, as explained in the link below.

 

How Do I Check the Status of the Relays on My NI 948x Compact DAQ Relay Module?

 

Hope this helps, 

 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
Message 2 of 2
(2,445 Views)