09-28-2009 03:49 AM
Hi,
on the vision assistant tool menu there is option ' creat C code ' should i use this option for converting my labview code into C ? (first run my labview VI in vision assistant and then convert )
09-28-2009 05:27 AM
Its not conversion LabVIEW Code to C Code. This tool will convert Vision Assistant Script to the equivalent C Code. You can also convert same script to LabVIEW Code, and this LabVIEW Code will be functionally the same with C, but there are no tools available for LabVIEW to C conversion.
Andrey.
09-29-2009 06:27 AM
Hi amirheh,
Thank you for contacting National Instruments. As Andrey correctly points out, there is no way to convert LabVIEW Code to straight C code. This is due partly to the way LabVIEW compiles in that it compiles straight to machine code and doesn't go through an intermediatory language.
There are a couple of forums that are linked here and here that give a bit more details on LabVIEW and C conversion and I would recommend looking at these. Generally speaking, there is no performance difference between a well written LabVIEW program and a C program.
Can I enquire why you want to generate C code? Generally speaking the best method of trying to bring LabVIEW code into a C-based language is to build the LabVIEW code into a DLL and call this within your C code.
I hope this helps,
Many thanks,
10-02-2009 08:24 AM
Hi,
As Anderew mentioned, Good LABVIEW coding could yield a narrow results to C (but not identical to). You may read this article:
Do you use LabWindows/CVI?
Cheers
10-08-2009 10:39 AM
Actually i have a cmu cam and i want to program my LabVIEW code into it,I don't know how ?
can anyone help me ?
10-08-2009 11:21 AM
amirheh wrote:Actually i have a cmu cam and i want to program my LabVIEW code into it,I don't know how ?
can anyone help me ?
If under "cmu cam" you mean CMUCam3, then probably you can develop LabVIEW code with NI LabVIEW Embedded Module for ARM Microcontrollers (but I'm really not sure).
Andrey.
03-20-2018 10:20 AM
HELLO,
I create a script under vision assistant after that i convert the script with image control under Labwindows/CVI on C code ,
the C preject creating didn't shows the windows of selecting the control and indicator to create on the front panel.
I found just :
- main code.c
- processing.c
- processing.h
- NImachineVision.c
- nimachinevision.h
But not an interface.uir, they just apear the window to aploed the image but the precessing on this image dont apear , i can just display image without processing
Which file will i modify? what i have do on next step to correct
Please help me.
Best Regards.