NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting AddOpenSequenceFiles error

Solved!
Go to solution

Hi,

 

We have added a menu item to the configure menu in TestStand. When the menu item is clicked, it will refer to a windows class library and open a winform UI .

However, the first time this menu item is clicked, I get a message saying

 

---------------------------
Sequence Editor
---------------------------
You can only use AddOpenSequenceFiles in an application that uses the ApplicationMgr.
---------------------------
OK  
---------------------------

 

Once I click OK, the winform opens and the application works as normal.

Subsequent clicks on this menu item do not display this message.

 

Please advise on what could be the issue.

 

Thanks

Arun

 

0 Kudos
Message 1 of 5
(3,631 Views)

Hi Arun,

 

I dont understand why the error is occuring but if you give more information we might be able to help you out.

 

In the meantime you can have a look at the following link as to how menu items are added:

 

http://digital.ni.com/public.nsf/allkb/FF0101B2E7E08FBF86256DD5006B12A4?OpenDocument

 

Vaibhav

.......^___________________^
....../ '---_BOT ____________ ]
...../_==O;;;;;;;;_______.:/
.....),---.(_(____)/.....
....// (..) ),----/....
...//____//......
..//____//......
.//____//......
..-------
0 Kudos
Message 2 of 5
(3,539 Views)

Hi Vaibhav,

 

In addition to this message box, an added behavioral  issue has also been observed. When any sequence call step is added to the sequence pane and we select that sequence call  step, the module setting of that step is a blank tab. However the properties tab appears normal.

 

We have created a customized  FrontEndCallback.seq file which is used to log into TestStand. This sequence file basically calls a.NET win form which performs the user authentication. The contents of this file cannot be shared. This issue is observed when we use the customized FrontEndCallback.seq file under \\Program Files\National Instruments\TestStand 4.0\Components\User\Callbacks\FrontEnd instead of the default path \\Program Files\National Instruments\TestStand 4.0\Components\NI\Callbacks\FrontEnd.

 

Once the error message pops up, we have observed this problem of the empty Module Tab.

 

Any assistance would be appreciated.

 

Regards

Arun
0 Kudos
Message 3 of 5
(3,482 Views)

Hi,

 

I have attached two zip file,  TestStand.zip containing the FrontEndCallbacks.seq and DisplayTestStandLoginScreen.dll file. The FrontEndCallbacks.seq fileneeds to be added to the folder <TestStand Installed drive>:\Program Files\National Instruments\TestStand 4.0\Components\User\Callbacks\FrontEnd folder and the DisplayTestStandLoginScreen.dll file in <TestStand Installed drive>:\Program Files\National Instruments\TestStand 4.0\Bin folder. 

 

On starting TestStand after the addition of these files, a custom Login screen appears where the user needs to login with the authorized user name - password combiniation. On successful login, the user can access TestStand. 

 

Thereafter, open a sample sequence file , say computer.seq in  <TestStand Installed drive>:\Program Files\National Instruments\TestStand 4.0\Examples\Demo\DotNet folder.Now, on clicking on any sequence call step, we can see the error AddOpenSequenceFileError.JPG in the TestStandError.zip file. We also can observe the appearance of the module tab in theStep settings for module call tab control. 

 

Kindly have a look at this and advice me on what could be the issue.

 

Thanks

Arun

Download All
0 Kudos
Message 4 of 5
(3,432 Views)
Solution
Accepted by Arun Padmanabhan
I believe the problem is caused by the fact that your Form1 class constructs an ApplicationMgrClass object, which you use to get a reference to the TestStand Engine. Instead of constructing an Application Manager, you can obtain a reference to the Engine from the SequenceContext object that you pass to the constructor of your class. If you need access to the current Application Manager, use the Engine.GetInternalOption function.
Message 5 of 5
(3,423 Views)