LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI to interpret and operate on C style code string

Does anyone have LV code that can interpret and operate on a LV string that is written with C code convention techniques? IE ((TAG#1 <= 6) && (TAG#31 != TRUE) || (TAG#69 == 3)). I want to know whether this statement is true or false.
0 Kudos
Message 1 of 5
(2,325 Views)
Look at the formula node (found in the structures palette). With the proper syntax (right click it and select help), it should do what you ask.

___________________
Try to take over the world!
0 Kudos
Message 2 of 5
(2,319 Views)
Hi, I have automated sequences from database files and I want to add in a C style code string, but I can not programatically change a formula node. I may have to pass the equation and the data to a .dll or write an interpreter in LabVIEW. I hope this explains my stituation clearer. DTG
0 Kudos
Message 3 of 5
(2,312 Views)
I'm pretty sure I saw something somewhere about a LV interpeter for something like this, but I really don't remember where. It was probably here or on the LAVA forums (most likely here). If you don't mind a not pure G solution, the DLL is probably the faster solution to implement, because you don't have to worry about covering all elements of the syntax. Either way, both options don't sound too complicated.

___________________
Try to take over the world!
0 Kudos
Message 4 of 5
(2,306 Views)
Thanks!!
0 Kudos
Message 5 of 5
(2,298 Views)