LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CIN code causes Labview to shut down

I am using Labview 7.1 to run C++ code written in Visuall C++ .NET. I work on images in C++ and send out a list of numbers to Labview using the CIN for interfacing.

I created the C++ project as per the instructions given in the CIN reference manual, and was able to run a test program. The test program returned different sets of numbers based on whether a switch was 'on' or 'off'. After running this, I added my image processing files to the C++ projects and called file reading and writing functions (to access the image files). Adding this new .lsb file to the CIN module and running the program in Labview causes Labview to shut down without warnings. I figured out that if I removed the file open, file close and file write operations in the file write function, Labview didn't shut down. While these same file operations are being done in the file read function, this doesn't cause Labview to exit. I suspect the file read doesn't work either, since the string of integers returned to Labview is always the initialized value and not the expected output.

Previously, when I had added my entire working code to the C++ project (this involves camera control and a serial PT control), I was unable to load the compiled .lsb file to the CIN. Labview would stop responding after I selected the .lsb file and hit the "OK" button. I am not sure if this problem was caused due to the program being multi-threaded.

Suggestions, please?
0 Kudos
Message 1 of 2
(2,562 Views)
I just noticed that my earlier post on the comp.lang.labview groups has been added here.
0 Kudos
Message 2 of 2
(2,560 Views)