08-17-2012 12:51 AM
Hi All,
I have a series of products with diffrent SN,and they have diffrent firmwares and test programs(sequence).
So at first i need to download the firmware and then execute relevant program.I want to select diffrent program by SN in teststand.
if it can be fixed?How to do?
Thanks a lot.
BR
Johnny
08-20-2012 11:54 AM
I had this same requirement when I started with TestStand. We wanted an automated test system that when the user scanned the serial number of the product it would 'automatically' load the approriate sequence file. Then when it was connected properly the user would just need to click a START button to begin the 'Single Pass' test execution.
In order to accomplish this, I had to make some major modifications in the LabVIEW Full-Featured interface, that took a lot of work. One major peice of the puzzle was how to start the sequence in LabVIEW via Single Pass. The problem with this method is that is required a lot of LabVIEW work upfront before you ever get to starting TestStand, so it left some holes when the operator tried to restart the test and use the menu options.
After contemplating the project a couple years ago, I found an example that provides another method to do this. See the DynamicClidentSequenceFile example. In this example, you automatically set the ClientSequenceFile that will be executed by the Process Model. This example has the advantage that everything is done already in the ProcessModel. Maybe this can get you started?
Thanks,
PH
08-21-2012 06:48 AM
If the number of options is limited maybe the easiest way to achieve your goal is using a "Sequence Call" step.
The name of the subsequence can be specified by expressions, i.e. can be chosen as a function of the p/n.
In other terms:
1) place the common steps in the main sequence,
2) write subsequences for the "custom" parts
3) call the required subsequence from the main one
Regards,
Marco
08-21-2012 09:10 PM
Hi Teds&Marco,
Thanks for your reply.
Teds,
As you said,I have ever seen a project that developed with labwindows and teststand.It is similar with your project, the operating interface is developed with labwindows.It invoke some TS API and override the ProcessModel to do that.
I will try the second way you mentioned.
BR
Johnny
08-22-2012 09:29 AM
See the example located here:
<TestStandPublic>\Examples\DynamicClientSequenceFile
-Doug
08-22-2012 10:22 AM
Note that the DynamicClientSequenceFile example has been rewritten for TS 2012 to take advantage of the TS 2012 Model Plugin Feature. A solution based on the TS 2012 example should be simpler to modify and maintain.