LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquiring System Signals Like SIGTERM in LabVIEW

Solved!
Go to solution

I have a simple application running in a Linux environment.  I would like to communicate with the process using Unix signals:

https://en.wikipedia.org/wiki/Unix_signal

 

There is a knowledgebase article here from LabVIEW 7.1 that uses C interface nodes:

http://digital.ni.com/public.nsf/allkb/C2470DFFFC71D47F86256F70005891C6

 

I am using a newer version of LabVIEW that does not have support for C interface nodes; is there an updated library or method to use Unix signals in a LabVIEW application?

 

Thank you,

 

Steve

0 Kudos
Message 1 of 7
(4,992 Views)

Hi Steve,

 

What version of LabVIEW are you using?

0 Kudos
Message 2 of 7
(4,951 Views)

LabVIEW for Linux 2013

0 Kudos
Message 3 of 7
(4,909 Views)

The replacement for CIN is the 'Call Library Function' node: http://zone.ni.com/reference/en-XX/help/371361K-01/lvexcodeconcepts/configuring_the_clf_node/

 

It can call libraries written in different languages (e.g. from a .dll / .so file and system functions).

 

You should be able to configure the call library function node to call the same functions as per the example you found for the CIN node.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 7
(4,905 Views)

Yes, a call library function node would do the trick.  

Is there an updated version of the methods from the page I linked or a community version?  

0 Kudos
Message 5 of 7
(4,895 Views)

Unfortunately that's kind of where my knowledge runs out - I'm not that well experienced in Linux but I had kind of assumed there would be a system library (.so?) that you can call to interface with the system signals - if so, then it's down to how the functions are implemented in the library that determines how to set up / configure the Call Library Function node.

 

If not, maybe you can compile the source code from the link in your first post to generate the library file?


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 6 of 7
(4,883 Views)
Solution
Accepted by topic author SteveBall

Thanks Sam, I'll spend a little time building a .so to try this out when I circle back to this project.

0 Kudos
Message 7 of 7
(4,877 Views)