LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW custom script

Would anyone know how to start implenting a simple script parser ... I've made them in C before but never LabVIEW.  I've played with LuaVIEW but do not need all of its features nor do I want to have to embed it... I'm just talking about something that could execute some simple code like this--

 

LOOP 2:  //all code below would be executed twice

<some function that would go into a case structure state-machine>

<another function that would go into a case structure state-machine>

END LOOP

 

So essentially each "function" above would be executed twice in that example above.  How would this even be coded in LabVIEW?  What architecture? This is more out of curiousity than anything, and seeing if I could even do it.

 

Thanks!

0 Kudos
Message 1 of 2
(2,609 Views)

Under execution control you would use a while loop to loop twice, then inside that while loop (also under exec. Control) there are case statements, so I would guess this is quite possible. 

 

I don't know a whole lot about labview, but this gives a nice comparison between C and labview and how to do a similar program in each. I thought it might be helpful to show how things look in labview, with a similar C program so you know what's going on. Hope this helps a bit. Not too sure on the parsing specifics.  

http://www.ni.com/white-paper/3933/en 

0 Kudos
Message 2 of 2
(2,600 Views)