01-23-2014 10:50 AM
LabVIEW scripting uses LabVIEW to write LabVIEW code. I don't think it applies to your use, especially if you're going to test production code. LabVIEW scripting isn't available in the RTE.
I don't have an example of what I suggested to share. The only thing I've done was make a sequence of states execute; I didn't support the looping or branching that you need.
I started to develop a TestStand solution that fits the bill about six years ago, but left the company before getting very deep. The idea was to make custom step types with LabVIEW VIs that the non-LabVIEW/TestStand engineer could use in a TestStand sequence. If they can write Matlab scripts they can probably learn to make a simple TestStand sequence. Do you use TestStand?
01-23-2014 10:53 AM
en99 wrote:By the way what is LabVIEW scripting?
LabVIEW scripting is a way to make LabVIEW code inside of LabVIEW. It is only applicable in the LabVIEW environment and you cannot edit any VI that is running. Great for creaing plugin to the LabVIEW IDE. Quick Drop is built from scripting.
As far as your issue, I would go talk to the guys at JKI. They have a really cool way of integrating LabVIEW functions into Python. I wish I knew how, but it is a secret they are holding on to.
01-23-2014 10:56 AM
Is the LabVIEW scripting like a test based langugue enviornment? Can we have for example while loops or if commands in that?
01-23-2014 11:01 AM
@tintin_99 wrote:
Is the LabVIEW scripting like a test based langugue enviornment? Can we have for example while loops or if commands in that?
No. Read the comments right above yours.
01-23-2014 11:37 AM
01-23-2014 11:58 AM - edited 01-23-2014 11:59 AM
deleted
01-23-2014 12:00 PM
What you really seem to be looking for is a "lightweight Test Executive."
These are not trivial to implement but several examples exist (e.g. Shameless Plug.) Having a custom Test Executive can really be a great assit to a team that is primarilly focused on "Science and Engineering" tasks. Unfortunately those same teams often lack the Software Engineering skills to build a construct as complex without going down a few false paths first.
This is the primary reason the NI Alliance Partners exist. An NI Alliance Partner has demonstrated success in delivering complex solutions for their clients in one of several specialities. Speaking with your local NI Rep would be a good first step in identifying a Partner that may be right for you.
01-23-2014 12:10 PM
Hi Darin,
Can we use while , for and if statements in Lua and is it posible to call a LabVIEW function in Lua and give inputs to this fuction. I have also downlaoded the alstest version but the instruction to install it is very confusing, do you have a clear instruction for that. Or any example on how to use it.
.The other problem is they say it is an Evalution version . Have you faced any problem when you use it?
Yes Jeff, I ahev already contacted NI and waiting for their respone.
01-23-2014 12:39 PM
@ethen99 wrote:
Hi, could you please let me know what is the easiest scripting method that can be used in LabVIEW, we have engineers that know nothing about LabVIEW, they want an scripting language to do simple things like assignments , for loop, while loop and basic math functions such Mean . Is math script ( Matlab) the best choice?
The problem I have with Math Script is , I think it is good for complicated mathematics but it can't be used as a command script for LabVIEW ?
For example if I have this line in that scripting window
vpp= 10
then I would like to pass that value to a VI, if I don't have this line then there is no need to have that VI
Is there any LabVIEW scripting language that can be good for this purpose?
As JCarmody said, this sounds more or less exactly like what TestStand was designed to do. I'd definitely recommend taking a look at it if your intention is to call LabVIEW code with scripted arguments in a production test environment. Of course, it's an additional buy-in and system to learn and I believe it requires deployment licenses.
01-23-2014 12:59 PM
@ethen99 wrote:
Hi Darin,
Can we use while , for and if statements in Lua and is it posible to call a LabVIEW function in Lua and give inputs to this fuction. I have also downlaoded the alstest version but the instruction to install it is very confusing, do you have a clear instruction for that. Or any example on how to use it.
.The other problem is they say it is an Evalution version . Have you faced any problem when you use it?
Yes Jeff, I ahev already contacted NI and waiting for their respone.
I use Lua with LabVIEW, but not that product. Lua let's you script all of those control statements and more, and yes you can call LV functions with it.
It seems that the evaluation mode is what you want, try it before you buy it. The rough edges (tough install for example) are common unless you spend the $$$$ for TestStand. You can do a lot with TS, but if you are buying it to write a for loop or two it is overkill. Send your engineers to LV Core 1 and 2 classes before you do that.