ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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,887 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,881 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,874 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,868 Views)
Thanks!!
0 Kudos
Message 5 of 5
(2,860 Views)