03-16-2006 06:08 AM
03-17-2006 07:16 AM
Hi Steve,
I've tested this against LabVIEW 7.1 and TestStand 3.1 and 3.5, and it seems fine.
1) create and save .seq
2) create new LV Action step
3) specify module, and create new .vi
4) in .vi front panel, add a new enum, and then customize that enum, saving it as a typedef.
5) connect control to connector pane
6) in the sequence editor, refresh the prototype
7) save, and run the sequence.
Can you be a bit more explicit in the steps to re-create this please?
Is it limited to just your PC?
Thanks
Sacha Emery
National Instruments (UK)
03-17-2006 08:16 AM
03-20-2006 04:21 AM
Hi Steve,
can you post your code snippet here please that you're using to create the properties?
Are you filling in the details as a number, or as text, or as a variant etc?
Thanks
Sacha Emery
National Instruments (UK)
03-20-2006 04:28 AM
Hi Sach
Have attached our Specify Module API calls code snippet, hope that's what you meant.
Steve
03-20-2006 08:17 AM
03-20-2006 08:32 AM
03-20-2006 11:09 AM
LabVIEW expects a numeric value for its enum parameters so TestStand needs to pass the numeric value of the enum.
The Specify Module dialog reads the prototype of the VI and gets all the enum values at that point. It then tries to find the numeric value of the enum by searching through the list of enums and matching the string representation of the enum stored in TestStand with one of the strings in the list of enums. Once it finds a match, the numeric value is stored and used when running the LabVIEW step.
I know this because I am familiar with the source code.
03-21-2006 01:49 AM
03-21-2006 04:10 AM
Hi Steve,
to keep the code readable we should be able to go from a string to a typedef'd version of the enum, and then typecast directly to the numerical version to then pass onto the LabVIEW parameter.
Here's the conversion bit in LabVIEW 7.1
Hope it helps
Thanks
Sacha Emery
National Instruments (UK)