LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a CIN for a C code I need to get data from

I was given a code written in C. I don't really know C but this will be a later problem (I think), what I want to do is line in information through this C file and manipulate it in LabVIEW. The C file talks to a Kodak KLI board CCD board, and transferes the information. What I need it to do is transfer the information to LabVIEW because I need to manipulate it. I don't really know where to look or how to go about doing this. The best guess that I have is that I will have to design a CIN (Code Interface Network) to try to talk to it. Any help would be very much appreciated. Attached is the Code thaT I am trying to read from if it is any help.

Thanks

Brian Droncheff
0 Kudos
Message 1 of 3
(2,802 Views)
Brian;

Well, if you want to create a CIN (or a DLL, which is usually preferred), then to learn C is an issue you need to address now.

You need to read the official manual Using External Code in LabVIEW, which is also included with your copy of LabVIEW. For CIN, you can refer to the following article: How to build a CIN code resource (.lsb file).

I am not an expert in C but, looking at the code, it seems that you can do that completely in LabVIEW, without the need to write or handle any C code. The code is small, consist of only three actions and you can do a better error handling. I'll see what I can find out later on...

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 3
(2,781 Views)
Thanks Enrique,
I had been reading the Reference manual for those things. I was considering of using C because I didn't know LabVIEW could do all those same things in the file and I figured if it could I don't have any idea where to star to do that. Reading about CIN's seems to be reference to external code and if I don't want to use external code and just use LabVIEW I am not sure how to go about doing any of that. do you have any ideas? It is much appreciated.

Brian
0 Kudos
Message 3 of 3
(2,761 Views)