LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating LuaVIEW scripts from LabVIEW

Hi, How does one generate LuaVIEW scripts from LabVIEW. Please help.

0 Kudos
Message 1 of 10
(5,461 Views)

I am not sure what a LuaVIEW script is.  There DOES seem to be a Third Party toolkit that uses the name but has little on-line documentation.

 

LabVIEW is an "Integrated Development Environment" with which you can develop and run software written in the G language.

 

what did you wish to do?


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 10
(5,444 Views)

Hi,

 

The objective is to run a set of code using a generated (LuaVIEW)script from another LabVIEW code.

 

A-LabVIEW code.

B-LuaVIEW script

C-LabVIEW code.

 

A generates B.

 

B Holds the logic to generate C. Here C can have several level of customization which is to be generated in B (by A).

0 Kudos
Message 3 of 10
(5,426 Views)

If you do a Web search for LuaVIEW, you can find the LuaVIEW manual.  Now you have several choices -- spend the time to learn LuaVIEW (and get yourself sufficiently "up to speed" in LabVIEW to make use of it), find a LuaVIEW Consultant whom you can hire, or find a LabVIEW Expert whom you can hire and have him (or her) decide if LuaVIEW is the best option for your problem.

 

Bob Schor

Message 4 of 10
(5,413 Views)

@BodkinArrow wrote:

Hi,

 

The objective is to run a set of code using a generated (LuaVIEW)script from another LabVIEW code.

 

A-LabVIEW code.

B-LuaVIEW script

C-LabVIEW code.

 

A generates B.

 

B Holds the logic to generate C. Here C can have several level of customization which is to be generated in B (by A).


This seems like a question to ask "Test and Measurement Solutions" Again, their online documentation does not help me help you.  I doubt enough LabVIEW users work with that LuaVIEW package for this LabVIEW Forum to be a good choice to help you.  Have you tried contacting the support staff at T&M Solutions?

 

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 10
(5,402 Views)

A LuaVIEW script is simply a text string containing valid Lua syntax that you either pass directly to the LuaVIEW Execute.vi function or save to a file and load with the LuaVIEW Do Script.vi or LuaVIEW Do Task.vi. As such generating a LuaVIEW script requires you to understand the Lua programming language and how to express the problem you want to solve in this language.

 

Using LabVIEW string functions in the proper way you can construct such a LuaVIEW script during runtime although I'm not sure that is very beneficial. If you know beforehand what Lua script you want to generate programmatically you can most likely implement the same functionality directly in LabVIEW too and avoid the involvement of yet another programming language.

 

LuaVIEW is mostly beneficial if you want to have a scriptable system that someone can modify outside of LabVIEW without having to go into the LabVIEW code himself. The educated technician or operator can then go into the scripts and make changes to the system without having to know about LabVIEW or rebuilding the LabVIEW executable which does the UI and general instrument control.

 

Your scenario about generating LuaVIEW code which then in turn will generate LabVIEW code definitely sounds not a typical or even desirable application of LuaVIEW. LuaVIEW does not know of itself about the entire LabVIEW object hierarchy and therefore creating LabVIEW code from within LuaVIEW is going to be more hassle than anything else as you would have to expose an interface to the LuaVIEW code which can access the LabVIEW VI server interface to script VIs. A more than roundabout way of solving such a problem.

Rolf Kalbermatter
My Blog
Message 6 of 10
(5,349 Views)

Thank you 'RolfK'

0 Kudos
Message 7 of 10
(5,305 Views)

Hi. Could anyone please help in pointing me material for generating scripts using string functions? Would be of great help. 

0 Kudos
Message 8 of 10
(5,295 Views)

Hi Rolf,

This is Sandip from Honeywell India, Just want to check the license cost for Luaview and also seeking guidance for one of the test software. Can you please contact me on below email id.

 

sandipkumar.palkhe@honeywell.com or ring me on +91 8008195454

0 Kudos
Message 9 of 10
(2,964 Views)

Here is another LabVIEW<->LUA option.

https://github.com/antonie-coetzee/GLue

0 Kudos
Message 10 of 10
(1,539 Views)