LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dialog box message using conditon

Hello Sir,
Actually i use numeric conditioned  case structure when it fells that condition it gives me some dialog box which contais some message.
but when i click on ok button of one button dialog box, it does not disappears   .
how i feed the numeric value inside that numeric control..
for that perpose i search a lot i got something dynamically calling of subvi but i do not know how to make this dyanamically called subvi.,

I need to know about dynamic subvi(pop-up vi)regarding dialog box...
But i use labview 8.5 thats why i am not able to open that example because it is in labview 5.0
Can you please tell me how to open that example ??
Example Program: Using VI Server to Call SubVIs that Run Parallel and Independently of the Calling V...




Thanks and Regard,
Ashwini Lele

0 Kudos
Message 1 of 4
(2,553 Views)
Ashwini,

I don't understand what your exact problem is, but i can give you some feedback on the VI:
1) It is good to include timing into loops. But your comment implies, that you do not use timing in loops which are not connected to UI-controls. This is bad. You should always include timing into loops except if you want something (which has to be finit in execution!) to execute as fast as possible.
2) Your timing is 1s. This is far too long for proper interaction. Tests showed, that delays about some 100ms lead to misusage of the application. So please lower the time to something around 100-250 ms.
3) The VI checks "MR" against 4 and then decides if it should continue in the loop or to show the dialog. This is not good since the comparison is only done once in the beginning.
4) Never use the "run continuous" button!


hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(2,540 Views)
Hello Sir,
actually this numeric control is comming from externaly via RS232.
and it is somewhat a pressure (MR).
IF MR Pressure is less than 4 then whole machine(mechanical) is in  running condition but does not do anything...
So what should i do for this initial condition ?
if this condition not satiesfied then  whole system does not work   ,for that perpose i use dialog box to show some message that "pressure is too low"

I will send u one vi please check it

in that i kept wholt while loop outside the case structure....
but in that i am not able to feed any value inside MR..././
0 Kudos
Message 3 of 4
(2,535 Views)
Ashwini,

the problem you are facing in the newer example is that you have only 1s to acknowlege the error-dialog and to change MR to a value > 4.
There are many solutions to remove the dialog issue, the simplest is to remove the dialog and replace it by a "status-display" on the frontpanel.

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(2,531 Views)