11-01-2013 01:55 AM
Hello all
I wish to give a Window in which user will enter the logic in text format i.e C language code . so now the question is how to compile this code in run time
11-01-2013 02:31 AM
Here is some link
http://forums.ni.com/t5/LabVIEW/how-can-i-compile-c-code-in-labview-at-win98/td-p/123193
11-01-2013 03:00 AM
This seems to be related to your other post. As I said over there already, the formula parsing tools are probably what you want.
LabVIEW is a programming language and not a C compiler. Of course with a lot of effort, you could use LabVIEW to write an interpreter that understands C like syntax, but that won't be easy. can you give us an example of what kind of "logic" (your word!) you intend to enter.
11-01-2013 03:42 AM
Place text control, send text to file, invoke a commandline compiler like GCC to compile the file.
/Y
11-01-2013 04:45 AM - edited 11-01-2013 04:50 AM
Yes, this command line argument is method is one better option.
Then he gonna need all the command line arguments list of a compiler.
11-01-2013 10:22 AM
@Yamaeda wrote:
Place text control, send text to file, invoke a commandline compiler like GCC to compile the file.
/Y
From his other thread, it seems all he wants is to be able to apply some custom scaling an logic to acquired data.
While your answer is of course a valid answer to the verbatim question here, it would not be very practical for this kind of use. 😄
11-01-2013 11:50 AM - edited 11-01-2013 11:52 AM
LabPython? I made something a few years ago when someone asked for a "dynamic formula node".
11-01-2013 02:42 PM
@altenbach wrote:
@Yamaeda wrote:
Place text control, send text to file, invoke a commandline compiler like GCC to compile the file.
/Y
From his other thread, it seems all he wants is to be able to apply some custom scaling an logic to acquired data.
While your answer is of course a valid answer to the verbatim question here, it would not be very practical for this kind of use. 😄
No, not very practical at all, but hey, if that's what he wants to do ... You must make mistakes to learn. 🙂
/Y