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

Related Links - Products and Services

Checking for the Execution Mode and User Privileges Using the TestStand API

2 ratings | 2.50 out of 5
Print

Downloads

Filename: checkifinteractiveexecution.zip
Requirements: View

You may want to restrict functionality of your code module using various criteria. These criteria may include, TestStand user privileges and whether your current execution is in normal or interactive mode.

If you want to verify in an expression that the current user has a specific privilege, call the CurrentUserHasPrivilege expression function. If you want to verify the privilege in a code module, as in this example, call the CurrentUserHasPrivilege method of the Engine class in the TestStand API.

Checking privileges can also be used to restrict functionality of TestStand tools and operator interface features. By default, TestStand automatically limits the sequence editor and operator interfaces functionality depending on the privilege settings that the user manager stores for the user who is currently logged in. These restrictions can be disabled through the User Manager tab of the Station Options dialog box. For more information on user privileges refer to Chapter 12, " User Management", of the "TestStand UserManual".

You can execute a sequence as a normal execution or you can run sequence steps in interactive mode. You may want to have restricted functionality based on the mode of execution. If you want to check whether the execution that called your code module is in interactive mode, call the InteractiveMode method of the Execution class in the TestStand API. For more information on normal and interactive executions, refer to the "Sequence Execution" section of Chapter 1, "TestStand Architecture Overview", in the "TestStand User Manual".

Requirements


Filename: checkifinteractiveexecution.zip

Software Requirements


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

 
2 ratings | 2.50 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/).