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.
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.
06-05-2009 12:07 PM
Hello all,
I am working on a project with the physics department at the University of Alabama and am updating some old DAQ codes to interface with labview. I am using labview v8.2 in a kubuntu linux environment v8.0.4. I am attempting to get labview to call pre existing C/C++ codes that communicate and take data from a CAMAC 6001 controller through a parallel port interface. I have tried recompiling these codes with labview using the Code interface node. It appears that the code compiles correctly, but when the program is run there is a sementation fault and labview crashes. It does this when it gets to the part of the code that actually communicates with the equipment. I also tried using the system exec vi to launch my functional C++ code from a shell. This again results in a segmentation fault. It appears that labview does not want to communicate with this piece of equipment. Does anyone have any thoughts? All I really want is a solution where labview, which handles the user interface now, can launch my C++ code in a separate window, and then have nothing to do with it. Once the DAQ code is running it does not need to interact with labview in any way. We have not found a way to do this yet, although it seems like it should be a simple matter. Any thoughts would be greatly appreciated?
Thanks
06-07-2009 07:25 PM
What about using a shell script to open a new instance of the terminal? Call a shell script from LabView, and in that script, source the execution of your DAQ code to a new shell. If that doesn't work, try running a system() call inside a simple program--one that LabView will run--and execute the DAQ code in that call. Ie., have LabView call a "hello world" program, in which you have a line like: system("./myCompiledDAQCode");
Hope that works.
06-15-2009 02:39 PM
07-07-2009 11:26 AM - edited 07-07-2009 11:28 AM