09-25-2020 01:23 AM
09-25-2020 01:49 AM
No.
09-25-2020 02:54 AM
The obvious response on a LabVIEW forum is of course:
WHY convert LabVIEW g code to c language?
There are several ways to call LabVIEW code from C code...
09-25-2020 07:52 AM
@8259 wrote:
is there anyway to convert labview g code to c/c++ language ,include block diagram and front panel , use some labview code to convert , not an .exe toolkit
1. Yes you can convert it. Manually.
2. No ready made one that functions good. Maybe a Project for you?
09-25-2020 09:02 AM
@Yamaeda wrote:
@8259 wrote:
is there anyway to convert labview g code to c/c++ language ,include block diagram and front panel , use some labview code to convert , not an .exe toolkit1. Yes you can convert it. Manually.
I dismissed that option, as OP stated: "use some labview code to convert".
It will need a hole lot of LabVIEW code to convert!
@Yamaeda wrote:2. No ready made one that functions good. Maybe a Project for you?
Started that a few times, over the years. It's the pot of gold at the end of the rainbow, but very educational.
Last time with OO, it got quite serious. C++11 triggered that, as it got native threading.
Sadly, implementing the easy 40% of the functionality is 1% of the workload... In other words, you'll hit a wall at some point.
I got polymorphism working, which was quite exciting.
I got loops working, incl. shift registers and feedback nodes (not timed loops though, hate them).
I got threading working, on VI level.
I got the most common functions working (math, some strings, clusters, arrays).
I could even cross compile to RPi, which was pretty cool.
Scaling up to subVIs, and implementing rest of the functions is a year's work, for 40 people...
GUIs will easily triple that workload.
09-25-2020 09:09 AM
wiebe@CARYA wrote:
@Yamaeda wrote:
@8259 wrote:
is there anyway to convert labview g code to c/c++ language ,include block diagram and front panel , use some labview code to convert , not an .exe toolkit1. Yes you can convert it. Manually.
I dismissed that option, as OP stated: "use some labview code to convert".
It will need a hole lot of LabVIEW code to convert!
@Yamaeda wrote:2. No ready made one that functions good. Maybe a Project for you?
Yeah i suspect it'll be a black hole of a Project. 🙂
I saw the question as a two parter: can you convert? and is there some automated feature? Thus my answer. Also, it's friday. 😛
09-25-2020 11:01 AM
NI has LabVIEW C Generator Module. Saw it a few years ago during NIWeek.
Anyone tried that module?
09-25-2020 11:18 AM
@zou wrote:
NI has LabVIEW C Generator Module. Saw it a few years ago during NIWeek.
Anyone tried that module?
I was thinking of mentioning that but decided not to. 😉 It is just for embedded targets (thus no conversion of the UI) and has other limitations, including no support for modern versions and a high price(?). For more information, also read Rolf's comments here.
09-25-2020 11:38 AM
Related (but offtopic!), the NXG web module will generate "text code" that browsers understand. 🙂
09-26-2020 04:13 AM