Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Can i use vision assistant for creating C code ?

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 )

0 Kudos
Message 1 of 7
(4,800 Views)

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.

Message 2 of 7
(4,798 Views)

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, 

Andrew McLennan
Applications Engineer
National Instruments
0 Kudos
Message 3 of 7
(4,778 Views)

Hi,

As Anderew mentioned, Good LABVIEW coding could yield a narrow results to C (but not identical to). You may read this article:

Can LABVIEW C?

 

Do you use LabWindows/CVI?

 

Cheers

 

 

Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

Message 4 of 7
(4,743 Views)

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 ? 

0 Kudos
Message 5 of 7
(4,690 Views)

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.

0 Kudos
Message 6 of 7
(4,686 Views)

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.

0 Kudos
Message 7 of 7
(3,030 Views)