NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

having problem using teststand with labview, no labview front pane being display. I am not doing pass/fail test,just want to do signal monitoring.Can anyone help me ?

I am new teststand user,and I amhaving problem using teststand with labview.
No labview front panel being display. I am not doing pass/fail test,just want to do signal monitoring.
I do not get any error messages just a flash of the LabView front panel then disappeared when I run the sequence.
 
Can anyone help me ?
 
 
Thanks,
 
Frank
 
0 Kudos
Message 1 of 10
(4,044 Views)
Are you sure it's just flashing the front panel or is disappearing behind the TestStand window? If it's really just show the front panel for a moment, how did you write the VI? Does it have a while loop that keeps the VI running until you click a front panel control? If it does, are you passing a value from TestStand to this control?
 
It would be really nice if you could provide some details. Posting the VI and a sequence file that calls it would help and we would nt have to guess on what you did.
0 Kudos
Message 2 of 10
(4,036 Views)
I already checked that the LV front panel really just flashed once it did not run in the background.
I even  tried a  very simple LV program like it has nothing except a control dial button that the user can change the dial setting and that is  it.
The Teststand still behave the same way. I did not pass andy data between the test stand and the LV program.
 
I suspect the problem has some thing to do with the configuration/setting .
 
Thanks
 
F.Lam
 
0 Kudos
Message 3 of 10
(4,024 Views)
You didn't answer the most important question. Does the VI have a while loop so that someone can actually press a button? Without a while loop, it will just run once and then disappear. The only configuration setting is writting the VI correctly. If you do have a while loop, why don't you just post the VI you've written or an example that demonstrates the problem? There's an attachment field right below the message body. Just click the browse button to point to your VI.
0 Kudos
Message 4 of 10
(4,019 Views)
Hi Dennis,
 
Once again I have to say Thank you for your quick response.
 
The problem I described happened to the LVs programs with and with out the while loop.
 
I even enabled the option "show front panel when run" but the problem still existed.
 
I attached a simple LV program with out a while loop to you to try.
 
Thanks,
 
F.Lam
 
0 Kudos
Message 5 of 10
(4,007 Views)
You have to use a while loop. Try the attached version. I don't have TestStand here (I'm at home) and you will need to add a couple of functions from your TestStand palette in LabVIEW to make the VI modal to TestStand. You need to use Start Modal Dialog as the very first thing run and then when the while loop finishes, you want to call Stop Modal Dialog. You will need to pass in the sequence context.

Message Edited by Dennis Knutson on 05-28-2007 10:59 AM

0 Kudos
Message 6 of 10
(4,005 Views)

Dennis,

 

I tried it and it works.Thanks for your help.

Can you tell me what the Start modal dialog and stop modal dialog do  ?

Is it a must to include these two functions ? If yes then , where should I wired these two functions ?

I tried your example without calling these two functions ,it seems to be working.

What are the main reasons why these two functions need to be included in the main LV.vi and / or they need to be called from teststand sequence. ?

 

Thanks,

F.Lam

 

 

 

 

 

0 Kudos
Message 7 of 10
(3,987 Views)

You might want to read the on-line help for the functions. Making a VI modal to TestStand means that it will always be on top of the TestStand window. If the VI opens and the user clicks on the TestStand window, it will send the VI to the background. This could be confusing.

Message Edited by Dennis Knutson on 05-29-2007 11:12 AM

0 Kudos
Message 8 of 10
(3,983 Views)

Hi Dennis,

Sorry to bother you again.

I noticed that when I run the LV program by using TestStand ,the LV program started the LV.vi right the way which is no good.

I have a simple LV program which is used to let the user to set difference temperature profiles before starting the program.

Can you tell me what to do ?

Thanks million times.

 

F.lam

 

 

0 Kudos
Message 9 of 10
(3,956 Views)

I see that you are also a new LabVIEW user.Smiley Wink

You need to provide some mechanism that will allow the user to enter data and then click on a start button. A very simple way to do this is with a while loop that runs before your main loop. I've attached a modified version of your VI that will do that. There's a Wait (msec) in it so that you don't use all of the window resources as the while loop spins just waiting for the user to click Start. The wire from the loop to the main loop is to enforce dataflow and assure that the small while loop will run before the main.

0 Kudos
Message 10 of 10
(3,951 Views)