Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006

Export Limits for Multiple Sequences in the Same Sequence File (TestStand 1.0.x)

0 ratings | 0.00 out of 5
Print

Downloads

Filename: limitloader.zip
Requirements: View

The default Import/Exports Limits tool of TestStand 1.0.x allows you to export or import the limits within the sequence that is active when you run the tool. In contrast, the custom Import/Exports Limits tool of this example, exports limits for all sequences in a given sequence file. Before and after the set of limits from each sequence, this custom tool places markers that follow the format of _ and _. You must specify the start and end delimiters before exporting the limits. These markers are necessary when importing the limits also.

Currently this example tool does not support importing limits from all sequences of a sequence file at once. However, limits are often imported using the Limit Loader step type and not the Import/Export Limits tool. Because the Limit Loader step type has not been customized in this example, you must place a Limit Loader step in each sequence into which you want to import limits. Then configure each of the Limit Loader steps to use a specific limits file and use the appropriate start and end markers for a given sequence. These markers also can be determined programmatically as shown in the attached file GetMarkers.seq. In this sequence file the first step stores the sequence name in Locals.SequenceName while the second and third steps respectively concatenate "_Start" and "_End" to the sequence name.

To use this example, unzip the contents of the attached file to \Components\User\StepTypes\Limits. The contents of this directory will be used in place of the code of the default tool which is located in \Components\NI\StepTypes\Limits. The changes in code were made to ImportExportdlg.c and are marked with a LabWindows/CVI tag. You also can find the changes by searching the file for "All Sequences".

Note: In TestStand 2.0, the Import/Export Limits tool and the Database»Import/Export Properties tool were merged into one Import/Export Properties tool. The new tool has the same capabilities of the previous tools. In addition, the new tool is also able to import and export local, file global, and station global variables from and to a text or Excel file. However, the new tool is still only able to export properties one sequence at a time. You can implement the changes from this example in the new tool.

Requirements


Filename: limitloader.zip

Software Requirements


Application Software: LabWindows/CVI Full Development System 5.5, NI TestStand Development System 1.0
Language(s): C

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).