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?
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.