Benchtop Measurement and Test
Distributed Measurement and Control
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
I'm closing this and adding a link to this description in the other post.
Let's say I'm building a fairly long compound expression that has some repeated parameters - I would like a way to specify (without creating additional locals) a variable/macro for use just within that expression.
For example, instead of:
Locals.CommandLine = "cmd /c C:\some path\that\is\reused"
Locals.CommandLine += " /path C:\some path\that\is\reused"
I could specify:
#pathmacro "C:\some path\that\is\reused"
Locals.CommandLine = "cmd /c " + pathmacro
Locals.CommandLine += " /path " + pathmacro
The idea being that with this I only need to update the macros in one place in a long expression.
This is a simple example, but hopefully you can see why this would be useful and why I wouldn't want to create lots of locals when the values are required only within the expression.
I believe that I suggested that TestStand use macros many years ago.
Or it may have been to define constants that could be used for things like hardware addresses
I think a define statement would be great.
Locals.UUT = RunState.TestSockets.MyIndex+1
have something like this in a special macro sequence (or anywhere for that matter)
#DEFINE UUT = RunState.TestSockets.MyIndex+1
Even if you need to prefix with a special character like ~
~UUT = RunState.TestSockets.MyIndex+1
then you could just use ~UUT for RunState.TestSockets.MyIndex+1
I dislike having to use variables for data that doesn't change
Perhaps it is just beyond the capabilities of TestStand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you need our team of experts to assist you with?
We'll be in touch soon!