From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Example using NI-9482

I am looking for a simple example for opening and closing the switches on the NI-9482 in Labwindows.  There is an example in LabView but it is not clear to me what functions need to be used to open and close the switches.

 

Thanks

0 Kudos
Message 1 of 4
(3,441 Views)

Hi Barney,

 

Check this information http://www.ni.com/tutorial/3449/en/#toc6

 

In point 6, you will find Special Considerations for Form C Relays like the NI-9482.

 

Regards,

 

Natalia

Technical Support Engineer

 

 

0 Kudos
Message 2 of 4
(3,407 Views)

Thanks for the reply.  But I do not understand the path forward here....

 

Maybe I am not understanding something but all I need to do is open or close a switch on your NI-9482 module.  Normally this is one line of code for a microprocessor (very simple).   However, the link you provided seems like development of a driver to operate switches and looks like a very involved process with no clear path on how to actually implement in a simple Labwindows example code.  Are you saying that there are no functions within Labwindows to simply open or close a switch???

0 Kudos
Message 3 of 4
(3,401 Views)

Hi,

 

This is the way that you usually program this module in LabVIEW https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8TMSA0&l=en-US

And here you can find how to use the DAQ assistant in CVI http://www.ni.com/tutorial/4650/en/

 

Additionally, some relays can be controlled using the DAQmxSwitchOpenRelays and DAQmxSwitchCloseRelays functions documented here: 

http://zone.ni.com/reference/en-XX/help/370471W-01/daqmxcfunc/daqmxswitchopenrelays/ 
http://zone.ni.com/reference/en-XX/help/370471W-01/daqmxcfunc/daqmxswitchcloserelays/ 

You can find an example in the following location on your computer, if you elected to install text-based DAQmx examples during the installation of DAQmx: 

¿C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Switches\Control Individual Relay¿ 

0 Kudos
Message 4 of 4
(3,398 Views)