NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Hide groups in insertion palette

Solved!
Go to solution

I am wondering if it is possible to hide Groups in the Insertion Palette programmatically.

In the sequence Editor, I can select the Group and check "Hide" for the Group. I can already programmatically hide single step types using the PropFlags_Hidden constant, but I don't find the same for Groups.

HideGroup.PNG

0 Kudos
Message 1 of 9
(3,587 Views)

I am not sure if there is a "simple" API for this.

However, i want to point out what TestStand 2016 documents regarding the configuration settings:

TestStand stores the settings for the Step Types list, including any customizations to the list of steps or available adapters, in the <TestStand Application Data>\Cfg\GeneralEngine.cfg file.

In previous versions, TS stored that info in the TestExec.ini file.

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

Hi Norbert,

yes, it Looks to be the right direction!

I have created my own .tsenv file, and if I Switch Environment in the sequence Editor, I get the effect I wanted.

 

My question is, if I want to set the active Environment in my Custom UI, how tell the engine which .tsenv file to use? The only way I saw in the help was launching the exe with arguments (SeqEdit.exe /env "MyEnvironment.tsenv"), but is there any way through the API to do that?

 

0 Kudos
Message 3 of 9
(3,521 Views)

@Madottati wrote:
[...]

My question is, if I want to set the active Environment in my Custom UI, how tell the engine which .tsenv file to use? The only way I saw in the help was launching the exe with arguments (SeqEdit.exe /env "MyEnvironment.tsenv"), but is there any way through the API to do that?


Have you seen the help content regarding Changing Environments?

Changing Environments
Changing environments requires exiting the existing application instance and launching a new one. You can do this manually by exiting the application and launching a new application instance, specifying the new environment on the command line.

For convenience, the TestStand Sequence Editor and full featured User Interfaces support changing environments directly from the Configure Environment dialog.

Select Configure»Environment to launch the Configure Environment dialog box. From there, load the desired .tsenv file, and choose Set Engine Environment. When prompted to end all executions, close all sequence files, and restart the engine, click OK. The current application instance shuts down. A new instance launches in the specified enviroment.

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

Something like this is was already mentioned in the Idea Exchange:

 

http://forums.ni.com/t5/NI-TestStand-Idea-Exchange/API-for-the-insertion-palette-for-step-types/idi-...

 

I think R&D still did not implemented this though 😕

 

Best,
Bart

 

 

0 Kudos
Message 5 of 9
(3,514 Views)

Yes Norbert, I have read it.

I could also Launch this Dialog box in my custom UI, but I don't want to do that.

My Problem is that I am currently developing the UI, and I Launch in in LabVIEW. I want to set the necessary .tsenv file programmatically, and not through the Configure Environment doalog box, and also not compiling the UI to exe and pass the .tsenv file as an Argument.

Currently when I start the UI VI, the <Global> Environment is used (as Default)

0 Kudos
Message 6 of 9
(3,510 Views)

I guess that the 'automatic restart of the UI' of the tool simply uses a command line parameter call to the UI.....

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 7 of 9
(3,508 Views)
0 Kudos
Message 8 of 9
(3,504 Views)
Solution
Accepted by topic author Madottati

This is an interface class. You can find the API in the NationalInstruments.TestStand.Interop.API .NET Assembly starting version 16. The use is in custom UIs before creating the TestStand engine.

You cannot create a sequence inside TS to call into this API.

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