11-11-2015 02:42 PM
How can we manage mutiple types of devices in TestStand?
I have 2 types of DMMs since some are not available anymore (AG34410 that needs to be replaced for a 34465A when it goes to calibration or breaks down).
Each DMM is structured in its own *.seq file which includes all the hardware calls.
Example: Normally the TS developer adds a sequence call and links it to 34465.seq and selects the sub module 34465 Read Multiple Voltage.
What I try to do is an automatic selection to to the correct DMM according to the DMM string in StationGlobals:
34410.seq and selects the sub module 34410 Read Multiple Voltage
34465.seq and selects the sub module 34465 Read Multiple Voltage.
All of the submodules of the same "measurement" have the same parameters, so calling which ever wouldn't cause any issues.
Is this possible without having to implement a ton of if/else conditions for each measument type or function in a DMM.seq shell?
We are still at the start of a new project so I can change around some ways to call my sequences or rename all the subsequences to the same name. A LabVIEW call to TestStand API could be a viable option (though I haven't worked with TS API in LV yet).
Thanks.
Solved! Go to Solution.
11-11-2015 03:17 PM
I threw this example together that shows how to dynamically select which sequence to execute. As long as they have the same prototype you should be good.
Regards,
11-12-2015 09:05 AM
Thanks 1.21 jiggawax. Its a sweet, simple and easy to use.
Kudos!
11-12-2015 09:34 AM
"1.21 jiggawax".... NICE!
11-12-2015 08:25 PM
11-19-2015 09:33 AM
this is a great example of when a Hardware Abstraction layer is usefull