LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how does NI example "select signal dialog" realise its dialog

Solved!
Go to solution

hi, guys!

 it should be a very easy problem. i was searching NI examples to learn how to realise a dialog to set parameters. "select signal dialog"is nice, but i can not understand how it works through codes in block diagram( it seems too easy!!!). and i copy all the whole block diagram to another blank vi, it can not work( not show the dialog)......can anybody tell me where the trick is????? thx!

0 Kudos
Message 1 of 7
(2,942 Views)
Solution
Accepted by topic author oilpig

Hi

 

I am not sure what your question is.

 

Do you want to know how a VI is made to work like a dialog box? You said you copied the block diagram to a new vi. I assume that the you missed on the VI Properties. Try the following:

 

1. Select the VI Properties of the VI, from the File Menu, Go to the Window Appearance properties in the pull down menu.

 

2. Select 'Dialog' as the appearance option and click 'Ok'.

 

3. Save your vi and Run.

 

If that is not what you are looking for, please explain again.

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 2 of 7
(2,938 Views)

thank you very much, this is what i want......sorry, i am realy a new bird of labviewSmiley Embarassed

0 Kudos
Message 3 of 7
(2,931 Views)

 

Oilpig wrote:

                   it can not work( not show the dialog)......


What dialog do you mean?Is your issue solved by following the instructions of Freelance.Please explain your problem more clearly.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 4 of 7
(2,930 Views)

Sorry..Iam little bit late.OK

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 5 of 7
(2,928 Views)

I don not recognize they code you have attached. Which example containes it? Please be very specific.

 

In the palettes, we have "Select signals", which is is an express VI. As such, it has a configuration dialog intended for the programmer, not the end users.

 

  • You can inspect the inner workings by converting it to a plain VI (right-click...open front panel).
  • You can create your own express VI by going to "menu...tools...advanced...create or edit express VI".

Is that what you meant?

 

 

If you want your own VI to show the front panel when called, you can configure the windows appearance in the VI properties dialog. The VI you have attached is set to "dialog", and that's probably what you want. Make sure the panel of the subVI is closed before running the calling VI.

 

(you can also change the behavior on a call-by-call bases by changing the "subVI node setup" of the subVI instance in the calling VI)

0 Kudos
Message 6 of 7
(2,925 Views)

thank you for your advise. i just wonder how ' select signal dialog ' displays like a dialog when running........

0 Kudos
Message 7 of 7
(2,921 Views)