01-21-2010 07:05 AM
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
Solved! Go to Solution.
01-21-2010 08:32 AM
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
01-22-2010 09:05 AM
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.
01-22-2010 10:02 AM
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
01-22-2010 10:15 AM
01-25-2010 02:05 AM
Hello,
that´s it i think. But what variables must i give to TS from my dialog?
greetings and thankyou
schwede
01-25-2010 08:21 AM
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.
01-25-2010 03:51 PM - edited 01-25-2010 03:53 PM
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.
01-26-2010 02:10 AM
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
01-26-2010 02:19 PM
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.