NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I enter user defined info into a seq file

I would like to insert some user defined information that I can extract either viac C-code (step invoked) or from the Operator Interface once the seq file has been loaded into memory.
0 Kudos
Message 1 of 7
(3,718 Views)
Hi hurst,

You probably want to create a dialog panel that will allow the user to enter the information.
Where you store this information really depends on how much of the sequencefile needs to have access to this information.
If its global then writing it to either StationGlobals or to FileGlobals. Writting to StationGlobals means it going to be available after the execution of your sequencefile has finished. Writing to FileGlobals means its only going to be available during the execution of your sequencefile and also only in scope for the sequencefile its contained in. Unless you change the default setting so that all sequencefiles use the same FileGlobals.

To get the information to the SequenceFile will be by TestStand API calls using the PropertySetValue.


Another way would be to use the propertyloader.

There are plenty of examples either with TestStand or on the NI website on transferring data of all types from a step during execution.

This is a bit general. Maybe if you can expand on your query.
hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
Message 2 of 7
(3,718 Views)
I probably should have been more specific. The user defined information that I want to enter into a sequence file is to be used for configuration purposes. As such, it must be extracted from the sequence file before it is placed into execution. This would rule out ANY TestStand variables.
0 Kudos
Message 3 of 7
(3,718 Views)
Hi,

Is this configuration of the sequences or the hardware?

You know you can set variables in the sequencefile/sequences in the FileGlobals / Locals areas and assign values to these variables during editting. A bit like constant except that you can modify them during execution. They then become the default values.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 7
(3,718 Views)
The configuration info is for use by the Operator Interface. This information needs to be extracted from the sequence file IMMEDIATELY after the file is loaded into memory. At this point, the TestStand engine has NOT been initialized, so the only handle I have available is the seq file handle. Can I read seq file globals at this point in timeline?
0 Kudos
Message 5 of 7
(3,718 Views)
Hi,

Can you make use of the Callback SequenceFileLoad. As the name suggest, it is called when you first load the sequencefile.
If you are using a custom OI, then you can modify it to decode the CustomUserMessage (can remember the actual name of the User Message) sent when you call the PostUIMessage to write the data directly from your SequenceFile - SequenceFileLoad sequence directly to your OI in the form of Messages.
The default OI doesn�t handle this Message.

You may of seen the examples in the NI website.

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DBC356A4E034080020E74861&p_node=DZ52205&p_source=external
This is an example for the CVI OI, there is also a labVIEW version. Also I notice that this ex
ample is for TS 1.0.x, so there maybe some slight difference if you are using TS2.0 of TS3.0.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 6 of 7
(3,718 Views)
By using FileGlobals I was able to access the default state handle and accomplish the task. Mission success!
0 Kudos
Message 7 of 7
(3,718 Views)