06-25-2009 09:44 AM
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
06-25-2009 11:03 AM
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.
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,