ni.com is currently experiencing unexpected issues.
Some services may be unavailable at this time.
05-10-2019 04:41 PM
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
05-13-2019
11:31 AM
- last edited on
01-03-2025
02:55 PM
by
Content Cleaner
Hi Barney,
Check this information https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x12BCAQ&l=en-US
In point 6, you will find Special Considerations for Form C Relays like the NI-9482.
Regards,
Natalia
Technical Support Engineer
05-14-2019 09:48 AM
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???
05-14-2019
11:38 AM
- last edited on
01-03-2025
02:57 PM
by
Content Cleaner
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 https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGZeCAO&l=en-US
Additionally, some relays can be controlled using the DAQmxSwitchOpenRelays and DAQmxSwitchCloseRelays functions documented here:
https://www.ni.com/docs/en-US/bundle/ni-daqmx-c-api-ref/page/daqmxcfunc/daqmxswitchopenrelays.html
https://www.ni.com/docs/en-US/bundle/ni-daqmx-c-api-ref/page/daqmxcfunc/daqmxswitchcloserelays.html
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¿