NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set default step values

Hello,

I want to change the default values of a variable in a custom step Type during the execution, so the values can be used as Reference for the Configuration of this step(different for each step).

Is this possible while the execution runs?

 

I tried the PostExpression to set the values, but if the execution ends the values are set to default....

 

Best regards,

Michael

0 Kudos
Message 1 of 4
(3,302 Views)

Michael,

 

this sounds a bit like a "self teaching system". I rather suggest you to save all variables after the execution in a spreadsheet file and in the next run load this file using the property loader step.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(3,299 Views)

Hi Norbert,

its a kind of Self teaching System... The user should get the ability to set the Limits with an graphical editor, so I need the last measured Values for this to get a reference Line in the Graph and the limits can be set to the needed bounds.

 

The Problem is that I need the data in the Config for the Custom Step Type, not in execution...(Pressing the Config button in the property tab of the custom step) and its different for each Step I place in the sequencefile.

So my suggestion is to give the Custom Step an array of numbers that been passed to the graphical editor, but I need to fill the array in execution so I get the last measurement.

After the execution the user should see the limits and the last measured values, if he configures the step again....

 

 

Regards,

Michael

 

0 Kudos
Message 3 of 4
(3,289 Views)

Michael,

 

i understand your request. Nevertheless, it is not really easy to do this since you have several different parts of your software which have to work together properly.

The major problem is that you want to supply the user with measured values from previous execution as well as to give him the possibility to change settings for future executions. This can be done by the edit substep, but the trick is to find a real good way to give the substep knowledge about previous measurement values....i suggest you to use a database.

Advantage:

You can use database reporting from TestStand to save measurement values.

You can read those values in your edit substep module and display them.

Disadvantage:

Additional effort due to database configuration (will pay off in quite short time in my opinion!)

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(3,255 Views)