07-21-2009 05:34 AM
Hi everybody,
I'm looking for tips, pointers,directions... to be able to perform this operation in TS 4.0 sequence Editor, if it's even possible...
I'm managing a test system with a "home-made" virtual instruments abstraction Layer complementary to IVI classes for instruments which do not have classes defined, customizing the sequence editor accordingly for developpers of my department.
So basically when the instrument is IVI, the developper uses the built-in IVI step-type type and when it is not, he uses the the custom step types that I developped for this particular class of instruments.
However there are classes where I do have both IVI and specific drivers available and I do need to use both in the test sequence.
For example let's say there are two sources of DC power available in the testbench, one being a programmable IVI compliant DC power supply, and the other one composed of fixed "blocks" of DC power supply managed by externals relays and you need to use them both in the test sequence.
What I would like to be able to do in the sequence editor is inserting the appropriate step type at edit time just by selecting the source of power supply (by a ring or enum for eg), and if the first ressource is selected, it inserts IVI step type, and if the second ressource is chosen, it inserts the appropriate custom step type.
Any Ideas on how to accomplish this ?
Regards,
Cyril
Solved! Go to Solution.
07-24-2009 06:36 AM
Hello Cyril,
Thanks for posting on the National Instruments Forum.
You have tried to contact us at NI France and due to a technical problem we don't have your contact information.
Can you please contact us again (0033 1 57 66 24 24) to open a Service Request?
Regards,
07-24-2009 09:45 AM
07-27-2009 02:55 AM
Hello Cyril,
Here is an idea that could be done:
You could create a dynamic step by having a step that holds all the properties for both configurations (the superset of the necessary variables) and an extra one that indicates which 'mode' the step is in. Then you create the main Edit substep in whichever language you desire. That substep window will then have a box/dropdown/etc. at the top you can use to choose between modes A & B. When the user changes the value, you would dynamically change the rest of the window to contain the appropriate properties for mode A or B. You then copy the property values in that window to the Step properties, and copy the mode to your variable and you can run the step in that mode. When the step then runs, it checks the mode variable, and depending on its value, it will run the step in mode A or B.
Now we could add a dialog that allows us to choose when we put a step down but we should still allow the user to change later via the Edit substep we create.
I don't think we can create something that inserts a completely different step, but we can have one step that has the ability to do both and we can pick which one we execute. Also note we still don't have the ability to edit the Panels for a step, so we have to use a new window that we call from our Edit substep to complete the step.
Hope this helps.
Regards,
Olivier L. | Certified LabVIEW Developer
07-27-2009 07:57 AM
James,
Thank you very much for your help. This is exactly what I was trying to accomplish. I will post an example on this thread as soon as I as I am done coding it correctly (just tried a draft implementation this morning...).
I would also like to thank you for all the other posts answers you have been giving in the past. They are often times very insightfull and made me progress a lot with TestStand..
Best regards,
07-27-2009 08:01 AM
Olivier,
Thank you very much for taking the time to respond. As you can see with my latest post, I went for James implementation which works for my needs.
Regards,
02-07-2014 08:29 AM
Cyril,
Did you get this working ? Would you be willing to post an example ? I have exactly the same task to achieve.
Regards
Chris