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


Feedback


Yes No

Related Categories

Related Links - Developer Zone

How To Avoid Displaying a Login Dialog Box When You Launch the Sequence Editor or an Operator Interface

3 ratings | 4.00 out of 5
Print

Downloads

Filename: 8023.zip
Requirements: View

The attached example contains a new FrontEndCallback.seq file. The LoginLogout sequence in the FrontEndCallbacks.seq file has two steps, Login and Logout, that behave in the same manner as those in the original FrontEndCallback.seq. However, instead of calling into frontend.dll, these steps call directly into the TestStand API using steps created with the ActiveX Automation Adapter. This makes the sequence much easier to interpret and modify.

In the new FrontEndCallback.seq file, the Login step of the LoginLogout sequence is skipped and a Sequence Call step, AutoLogin, has been added. The AutoLogin step calls the AutoLogin sequence, which demonstrates two additional methods. Using these methods, you can login without having to display the Login dialog box. These methods are only implemented if preceding attempts to login fail.

There are four methods within the AutoLogin sequence that are used when you attempt to login to TestStand. The methods are listed here but for additional discussion see the readme.txt file.
- Display the standard Login dialog box. (Default method)
- If the station option Automatically Login Windows System User is enabled, TestStand uses the current Windows user name.
- Use the user name, AutoLoginUser, which you must add to the TestStand User Manager.
- Dynamically create a User object with which to login.

To install this example sequence file, copy it to \Components\User\Callbacks\FrontEnd\FrontEndCallback.seq. Notice that this path includes the User directory, not the NI directory. Do not overwrite your original \Components\NI\Callbacks\
FrontEnd\FrontEndCallback.seq file. TestStand will automatically use the FrontEndCallback.seq in your User directory over the one in your NI directory.

Requirements


Filename: 8023.zip

Software Requirements


Application Software: NI TestStand Development System 1.0.1
Language(s): None

 
3 ratings | 4.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/).