NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

use own user dialog

Solved!
Go to solution

Hello,

 

i want to use my own user dialog at the startup of the user interface. This dialog gets user informations from a database and i don`t want to logging twice.

Is it possible, where can i turn the standard dialog off, where must i place my dialog and which data must i send to TS.

 

Using TS3.0 and LV8.2.1.

 

greetings schwede

0 Kudos
Message 1 of 12
(5,048 Views)

Hi Schwede,

 

You want to either modify (or override in your test sequence) the PreUUT Model Callback sequence in the process model. It normally contains the IdentifyUUT DLL step, which you want to replace with your database calls. The data you send to teststand can be whatever you need it to be as you'll be in the process model while this sequence is running, not your test sequence.

 

-Jack

0 Kudos
Message 2 of 12
(5,047 Views)
Solution
Accepted by topic author Schwede

Schwede -

 

If you're looking to change the User Login dialog at the startup of TestStand, what you'll want to do is modify the LoginLogout sequence within FrontEndCallbacks.seq sequence file. Prior to making any changes, I recommend you copy the <TestStand>\Components\NI\Callbacks\FrontEnd folder to the <TestStand>\Components\User\Callbacks directory. Then, modify the files there. You will want to replace the Logout and Login steps of the LoginLogout sequence with your own steps that display your own personal dialog.

 

Hope this helps.

Manooch H.
National Instruments
0 Kudos
Message 3 of 12
(5,024 Views)

Hey Manooch,

 

My bad. I miss-read what was being asked for here - after reading your response, it's now clear to me what Schwede was looking for.

 

-Jack

0 Kudos
Message 4 of 12
(5,016 Views)
Not a problem Jack. Modifying the UUT Serial Number dialog is definitely something that a lot of people ask about so I certainly understand how you came up with your response. I appreciate your support of other users on the forums. Keep up the good work!
Manooch H.
National Instruments
0 Kudos
Message 5 of 12
(5,014 Views)

Hello,

 

that´s it i think. But what variables must i give to TS from my dialog?

 

greetings and thankyou

 

schwede

0 Kudos
Message 6 of 12
(4,993 Views)

Schwede -

 

I'm not sure what you mean by what variables you must give TestStand. Generally, you decide what information is necessary to store in TS. If you're going to be implementing your own user login dialog but what to continue using the TestStand User Manager, then you will need to ensure that all of the user names stored in the database have also been added to the TestStand User Manager. Then, when a user attempts to login using your customer dialog, you will want to call Engine.GetUser() to obtain a reference to that specific user. Once you have a reference to the user you would set the Engine.CurrentUser property to log that user in.

 

Hope this helps.

Manooch H.
National Instruments
0 Kudos
Message 7 of 12
(4,986 Views)

There is an already pre-made Login/Logout dialog in LabVIEW that you can use as a starting point for your own customizations:

LabVIEW based Login Reference Example for Teststand

 

This example very closely mirrors the default functionality of the standard front-end callbacks dialog, but the source code is in LabVIEW.

Message Edited by Josh W. on 01-25-2010 03:53 PM
Josh W.
Certified TestStand Architect
Formerly blue
Message 8 of 12
(4,970 Views)

Hello,

 

thankyou. Ok i can login the CurrentUser, but must i use the TS user database? How get TS the user data like privilegs?

 

greetings

 

schwede

0 Kudos
Message 9 of 12
(4,957 Views)

The best place to get information about permissions is the NI TestStand 4.2 help. If you search for permissions the first entry you will get is "Enforcing User Privleges". The help is also available online: http://zone.ni.com/reference/en-XX/help/370052H-01/tsapiref/infotopics/app_enforcing_user_privileges...

 

 

If you have conceptual questions the best place is to take a look at the TestStand reference manual, which can also be found online: http://digital.ni.com/manuals.nsf/websearch/D4A50986EECCF7218625757C00697617  Specifically chapter 7 has a lot of good information about how User Management is implemented.

Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 10 of 12
(4,933 Views)