LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

C program using Labview

Hiii

 Actually i am having one 'c' program . They will enter the code in the Front panal String Control.... For that we have to find the answer using Labview code how to do...
0 Kudos
Message 1 of 8
(3,401 Views)
Hi KarthikeyanMathialagan,
for my understanding, do you want to write a labview function which can read in a "c code" as string and do the same operatione like the real "c program"?
Mike
0 Kudos
Message 2 of 8
(3,397 Views)
Yaa ..... we can have to develope a labview  function for that c code which is given in string format
0 Kudos
Message 3 of 8
(3,393 Views)
Mike u provide me an idea.......

 see the inputs in the c program may vary like a,b,c,d.
 and we hane to print a.b.c it also possible....
0 Kudos
Message 4 of 8
(3,390 Views)
Hi Karthikey… ,
can the input be every available c code?? I don´t really understand it. Which part of the input can change??
Mike
0 Kudos
Message 5 of 8
(3,387 Views)
Actually the Input may get changed Now we provide int a,b which may changed to int x,y like that Mike
0 Kudos
Message 6 of 8
(3,384 Views)
Hi Karthikey…,
it sound like you want to write a c parser, i´m not sure if there exists someting. To do that you can split your string into an array. Here is an example. After that use a for loop and go through the array.
Hope this helps.
Mike
0 Kudos
Message 7 of 8
(3,380 Views)
I'm not sure what it is that your goal is here. You want someone to enter some code in a string and have the application "magically" execute that code. Fundamentally you're looking for a parser, and it doesn't matter whether it's LabVIEW or C. You should look at the parser VIs in the Mathematics -> Script & Formula -> Formula Parsing.

Good luck.
0 Kudos
Message 8 of 8
(3,336 Views)