NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a Sequence Call from LabVIEW that is editable

Solved!
Go to solution

Hi,

 

I need to create a sequence from a Text-based script to transfer it TestStand. Since the most advanced version available from TestStand examples is the one from the XML file, I skip the XML part and just populate the Cluster manually (for now).

 

However, when I try to create a SequenceCall to another sequence file, it doesn't seem to work without having to use PreExpr active. The problem is that this creates a SequenceCall that cannot be modified afterwards when the sequence is opened in TestStand. The other main problem with this is that the "File Pathname" becomes an Absotule Path.

 

Here's a screenshot:

 

This SequenceCall is functional, but all the fields are greyed out and cannot be modified manually. "File Pathname" is empty when I disactivate the "SpecifyPreExpr".

 

How can I programmatically generate a SequenceCall that would be identical to one done in the TestStand interface when you select the File Pathname and then the (Sub)Sequence and populate the values? This is how I would like it to be (Note that the DMM.seq calls AG34410.seq and transfers the parameters data):

 

My main PropertyValues used are:

Module.AsSequenceCallModule.SequenceName

UseCurFile = False

SpecifyByExpr = True (won't work if this is False)

The rest is all the other stuff to fill up the Parameters and values.

 

Thanks

Download All
0 Kudos
Message 1 of 6
(3,177 Views)

When you click on the red circle with the exclaimation point what does it say?


jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 6
(3,140 Views)

Hi Jigg,

 

Mouseover:

"The parameters specified by the step do not match the sequemce parameters.

Click this icon to reload the sequence prototype, which maps the current arguments to the parameters from the sequence."

 

When I click on it, all parameters go red. It still works if I erase all the parameters, but it uses the default values of "Measure OC". "Voltage DC" measurement instead of "Current AC".

 

Unless there's a way to program the "Use Prototype of Sequence".

I tried with Module.LoadPrototype(0) and (1) and seems to make no difference.

http://zone.ni.com/reference/en-XX/help/370052G-01/tsapiref/reftopics/sequencecallstepadditions/

0 Kudos
Message 3 of 6
(3,129 Views)
Solution
Accepted by topic author Foreshadow20

I threw together a simple example demonstrating what I think you want to do.  Look closely at the Create Step to see everything you need to set on the new step.

 

Let me know if you have any questions,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 4 of 6
(3,122 Views)

Thanks, that clarifed some details about the API.

 

From your Example I was able to generate both am SpecifyByExpression=True and a SpecifyByExpression=False SequenceCall.

 

The "SpecifyByExpression=True" would still need some work if I use it in the future as the LoadPrototypeFromSequence is still requires the SubSequence Template to be in the same *.seq file.

 

Overall I was able to do what I needed to prove that we can auto-generate a TestStand sequence from any text based test.

 

May Homer's Flying Pig land on your BBQ

Message 5 of 6
(3,105 Views)

Actually the LoadPrototypeFromSequence method doesn't require the sequence to be in the same file.  It just so happens that this is the case in my example.  You can get a reference to another sequence file and then get a reference to a sequence inside of it for the first parameter.

 

Glad it is working for you.  Loved the Simpsons reference.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 6 of 6
(3,100 Views)