What Functions Do I Use to Operate My Compact DAQ Relay Module? Primary Software: Driver Software>>NI-DAQmxPrimary Software Version: 8.3 Primary Software Fixed Version: N/A Secondary Software: N/A Hardware: CompactRIO>>Digital Output Modules>>NI 9481, CompactRIO>>Digital Output Modules>>NI 9485
Problem: I have a cDAQ relay module and want to know what functions I can use with it. I have DAQmx Switches functions. Can I use them with my module? Solution: You cannot use DAQmx Switches functions to operate your cDAQ relay module. Instead, use the DAQmx Write (Digital 1D Bool NChan 1Samp 1Line) function. For example, if you want to configure all 4 lines on a NI-9481 relay, perform the following steps:
Figure 1: Configure 4 Channels on the NI-9481
There are 4 channels configured in the task and therefore there are 4 elements in the data array. The first Boolean constant applies to the first channel configured in the task; the second Boolean constant applies to the second channel configured in the task and so on. If the Boolean constant value is true, the switch on the corresponding relay will close. If the Boolean constant value is false, the switch on the corresponding relay will open. This is illustrated in Figure 2.
Figure 2: Impact of a DAQmx Write on the NI-9481
Related Links: KnowledgeBase 4D3F2P9S: How Do I Check the Status of the Relays on My NI 948x Compact DAQ Relay Module? Attachments:
Report Date: 12/22/2006 Last Updated: 09/04/2007 Document ID: 44LAPTNP |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||


