11-03-2015 11:57 AM
Hi, How does one generate LuaVIEW scripts from LabVIEW. Please help.
11-03-2015 12:04 PM - edited 11-03-2015 12:09 PM
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?
11-03-2015 12:15 PM
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).
11-03-2015 12:31 PM
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
11-03-2015 12:48 PM
@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?
11-04-2015 05:28 AM - edited 11-04-2015 05:31 AM
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.
11-05-2015 01:31 AM
Thank you 'RolfK'
11-05-2015 03:00 AM
Hi. Could anyone please help in pointing me material for generating scripts using string functions? Would be of great help.
12-31-2020 12:09 AM
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
08-01-2023 10:42 AM
Here is another LabVIEW<->LUA option.