09-10-2015 02:33 PM
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
Solved! Go to Solution.
09-11-2015 11:26 AM
Hi Steve,
What version of LabVIEW are you using?
09-14-2015 08:34 AM
LabVIEW for Linux 2013
09-14-2015 08:45 AM
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.
09-14-2015 09:22 AM
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?
09-14-2015 09:50 AM
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?
09-14-2015 09:52 AM
Thanks Sam, I'll spend a little time building a .so to try this out when I circle back to this project.