01-20-2016 08:08 AM
01-21-2016 03:20 PM
Hi xmouth,
In order to best assist you, I think the community will need some more information about your application first. I have a few preliminary questions:
1.) What are the units you are testing, and what types of tests are you running on them?
2.) Are you interfacing your LabWindows/CVI code with any National Instruments or third-party hardware?
3.) What type of process would you like to use to test multiple units? Are you looking to test units in parallel (i.e. simultaneously), sequentially, or some other way?
01-22-2016 01:28 AM
Hi Tommy,
Im testing electronic card(product for a campany), really my programm calibrate those card in temperature and voltage.
The programm do it well, now i wanna make same changement in the programm in order to test 3 cards in the same time,
i make some changes to test 2units in the same time by creating a thread function and i call it in the fuction start callback.
But there is some problem, when the prompt pop up start to insert the serial of the card i have those popup in the same place so i use a mouse to insert the serial for each unit.
I wanna use the process test parallel units.
Thanks for your help.
01-25-2016 08:58 AM
Hi xmouth,
So, if I understand the problem correctly, you have dialog boxes that pop up to prompt the user for the serial number of the UUT, but each of those dialogs appears in the same spot so that they cover each other? Are you using multithreading in your application (i.e. a different dialog box for each thread)?
If you haven't already, I would recommend taking a look at ParallelTestInit.cws, an example project that ships with LabWindows/CVI. This project exhibits a typical multithreaded architecture for testing UUTs in parallel. You can open this project in CVI by clicking Help -> Find Examples... When the NI Example Finder pops up, select Industry Applications -> Test Sequencer -> ParallelTestInit.cws.
01-25-2016 10:13 AM
Hello Tommy,
Thanks for ur anwser,
i use multithreading but the problem that i wanna test the Units in the same user interface.
I dont what to do know?
01-26-2016 01:48 PM
Hi xmouth,
Are you looking to have the user input the serial numbers for multiple units at the same time? How are you creating the popup window containing the text box for the serial number?
I would imagine that a user-friendly way to do it would be to create the popup window with three text boxes so that the user can specify all serial numbers in one window. Then, you could send a different serial number to each thread for testing. This would involve designing a separate user interface with three text boxes.
Alternatively, could you include text boxes for the serial numbers on the main user interface, and not have a popup window at all?
01-27-2016 02:17 AM
Hello Tommy,
U have to know tha every Units has 2serials numbers, thats why i thinks that your solution can't resolve my problem.
Now i create a panel containing a text box there where the user puts the serial but , the problem now is that i can't display the ew panel in the thread function.
In the main function i display my essential panel and the other one tu take the serial nubmer.
I found it a lazy solution 😞
01-28-2016 10:49 AM
Hi xmouth,
Which function are you using to create the popup window? Is this happening inside a callback function which is called from RunUserInterface() in your main loop?
02-02-2016 02:21 AM
Hello Tommy,
I'm sorry for answering late,
i do it i create new panel like popup then i load each panel in the main function and in it's thread function where i'll run and display it.
Know when i launch my program i have 2 new panels appears and and i can put the serial number for each DUT.
Juste i wanna know what happen when one thread ends before the other, there is a code that should i put it or what?(the user will wait until the second one ends or hi can put the serial for other DUT and continue)
Thanks a lot
02-02-2016 05:58 PM
Hi xmouth,
If I understand correctly, you are displaying a new popup when a new thread begins executing. But, you are also running code that initially creates (but not displays) these popups in your main thread at the beginning of the program's execution?
Also, am I correct in thinking that you're wondering how to begin testing another unit after one test finishes and its thread ends? Are you expecting this to happen while another concurrent thread continues running? In other words, are you worried about your application having to pause to wait on user input while it is still in the middle of testing another unit in parallel?
Would it be feasible to have the user enter serial numbers for all three UUTs when the program begins executing?