From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-03-2006 11:56 AM
04-05-2006 12:06 PM
Hi Nigel,
I should ask which version of TestStand are you using?
I use TS3.1 which has a "Property Loader". You can select a text file with any extention (*.h).
I'm not sure what you mean by "And therefore automatically picked up when you type them in?"
JLV
04-05-2006 12:22 PM
Hi JLV,
I guess the Property Loader could be used. I will look into that (I'm using TestStand 3.5 btw), thank you for the suggestion.
In terms of "automatically picked up":
I make a dll in CVI, the project for which containers a header file with various #defines, eg. #define STATUS_X 23
When I specify the module for a LabWindowsCVI step what I would like to be able to do is just type STATUS_X in the Value Expression box, and that via the dll TestStand would pick up/recognise the definition.
So I guess the next best solution is to use the Property Loader up pick up the #defines.
thanks
Nigel
04-05-2006 12:59 PM
Nigel,
I do not think the property loader is the solution you are looking for.
The Property Loader source file must have a specific format in order to be read properly by the utility.
Basically you want to be able to use a #define as an input parameter for the CVI method you are calling in TestStand.
Unfortunately that is not possible.
The closest solution wold be te following:
1. Create an enumeration containing all the possible values for an specific parameter. (Translate the #defines into an enumeration)
2. The desired parameter type should be the new enumeration.
3. Create a type library.
Next time you try to specify the module in TestStand you would get a list with all the values in the enumeration.
You can select the desired value from that list.
Hope it helps.
If you have any question let me know.
Antonio Lie.
04-06-2006 03:03 AM