취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

pop-up window

해결 완료!
솔루션으로 이동

hello, 

 

another question for you all...

 

i would create a program that remember me in which way proceed to make a test...

 

i would that sometimes it appears a window that tell me "do it" and until i don't press ok i can't go to the next step...this many times with many windows with differents "post-it"

 

thanks

Using LabVIEW 7.1
0 포인트
1/9 메시지
4,811 조회수
솔루션
주제 작성자 gigi85이(가) 승인함

What I understood is use want to pop up user with a message for user interaction.

One way of doing this could be to make seequential structure in which you want to start the test. and dialog vi for every structure. it will hang execution untill OK or canceal button is pressed on pop up message.

Labview user
0 포인트
2/9 메시지
4,800 조회수

and dialog vi for every structure...? in which way...sorry but i'm new in labview

Using LabVIEW 7.1
0 포인트
3/9 메시지
4,789 조회수

You may use such structures.

Labview user
0 포인트
4/9 메시지
4,787 조회수

if someone could make me an example in labview 7.1 should be great...just a second window that appears if i press ok in the first one

Using LabVIEW 7.1
0 포인트
5/9 메시지
4,755 조회수

OK...it works...but with a problem...if i press cancel it go to the next step in the same way as i press ok 😞

 

just a question...have I to link nothing to the output of two button dialog?

 

and if i want that in a specific case after i've pressed ok in the first window i want make a control...and only if true go to the next step? i have to join my true output to the next-button-ok?

Using LabVIEW 7.1
6/9 메시지
4,750 조회수

You got some really bad advice above. A long seqence with popups seems rather silly, especially since a sequence cannot be escaped easily.

 

Use a state machine and an single popup instance. Change the text according to the state and proceed to the next state according to the button that was pressed.

7/9 메시지
4,743 조회수

thanks...it works 🙂

 

i used 2 buttons dialog to have the choice to esc from while loop if i press ok 🙂 anyway it works 🙂 thankkkkssss

Using LabVIEW 7.1
0 포인트
8/9 메시지
4,739 조회수
In the Core 2 class there's a series of slides that covers this exact situation. The solution that they call the "best" is to put a case structure around each dialog box function so you can bypass it if there's an error. When teaching, I point out that this is really the 2nd best solution. The discussion goes something like this:

"The difference between an amateur and a professional LV developer is easy to see. Amateurs write programs, professionals write toolboxes. By that I mean professional developers are constantly asking themselves, 'Will I ever need to do this again?'
"So ask yourselves, is this the only time you will ever want to suppress a dialog box when an error occurs? No, of course not. The best solution therefore is to create a VI that encapsulates the dialog box function and the case structure, and brings out controls for all the existing inputs on the dialog function. Now whenever you need to do this same thing again you don't have to waste time thinking about how to do it again. You have a reusable VI already made to do it for you.
"Work this way for a while and you will have a toolbox of hundreds of simple, reusable pieces that will let you do amazing things in an amazingly short period of time."

Of course the builtin function should already come with error clusters on it, but that's a rant for another day. I hope you have found these ramblings helpful.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
9/9 메시지
4,737 조회수