LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connection for subvi and button

Hi Serina,

here's a slightly different approach...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 11 of 21
(1,538 Views)

Hi GerdW,

                I have use the method u teach me but i did not work. Is there something wrong with my circuit or connection i made for the subVi of ASK modulation?

Sorry i jus saw your new mgs. I am trying now...



Message Edited by Serina on 04-03-2008 09:11 AM
0 Kudos
Message 12 of 21
(1,523 Views)

Hi GerdW,

                I couldn't run the program cause there is unwired or bad terminal for the Vi 'Two Button Dialog' by the program show error window. By the way, if i going to set up every button to work like this,with a window pop up running the Vi(of different modulation running) do i need to connect the same connection/or loop for all buttons or it will be different?

0 Kudos
Message 13 of 21
(1,519 Views)
Hi Serina,

you have to wire a message for the 2ButtonDialog too - I missed this because I couldn't run the vi either (because of missing subvis)!

You don't need to use this dialog for each subvi, it's getting annoying then for the users... I just wanted to show a different way of achieving your goal.
When you want to use more than one subvi you can use the approach from message #2! Or make a selection of the modulation first (via enum...) and wire this enum to a case structure - it will provide a case for each enum itemSmiley Wink
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 14 of 21
(1,496 Views)

Hi GerdW,

               I don't really understand what you meaning on the last sentence about the message 2# matter? So sorry..I am new in LabView so some terms i don't really understand or never come across before. My apology i upload the WRONG subvi AGAIN...! is just plainly a ASK modulation i download from NI tutorial and redo it myself exactly the same.I try to use the method you teach me the 1st time, almost successful cause i see the window for ASK modulation symbol for running arrow shows 'Subvi running'. But the ASK window did not pop up even when i close it, but when i open it it is still running.

Download All
0 Kudos
Message 15 of 21
(1,479 Views)
Hi Serina,

here in the forum all messages get numbers - and message #2 is my first answer to your question...  This one is #16 - just look to the left!

At the moment I don't have access to LV, so you have to wait a little bit before I can look at your vi.
But as general advice:
Whenb you want to have your subvi open the frontpanel you have to set the vi properties (right-click the vi icon): window appearance-> customize-> set "open FP when called" & "close afterwards"!


Message Edited by GerdW on 04-03-2008 11:41 AM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 16 of 21
(1,474 Views)
Thanks! I use the solution u tell me on message #2 it works but i succeed in doing one i have not start the main which is 6 i have done 1 only.If i have any more doubts will ask you again.Thanks again! Smiley Happy  
0 Kudos
Message 17 of 21
(1,466 Views)
Can you help me in this problem?? The Exit button cant work. It do not stop running.
0 Kudos
Message 18 of 21
(1,444 Views)

Hi Serina,

the exit button can´t work, because you read the state of it first and then the while loops will start. One solution is to put the exit button in one while loop and a local variable of it in all the other while loops.

Mike

Message 19 of 21
(1,440 Views)
I slightly get what you mean but can you explain further what do you mean by placing a local variable in it?
0 Kudos
Message 20 of 21
(1,424 Views)