LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab Control

Hello,

I would like to ask, If I can do on labview this:

 

I would like to in Tab Control. In one Bookmark when I click it I would like to start pasted SubVI. Is it possible to do?

 

Thanks

0 Kudos
Message 1 of 9
(3,660 Views)

What do you mean by "bookmark"?

 

What exactly do you mean by a "pasted" subVI?

 

Just about anything is possible.  We would just need a clearer idea of what you want to do.  I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

0 Kudos
Message 2 of 9
(3,658 Views)

adssad,

Could you post a flowchart or diagram of some sort to explain what you're trying to get at?  As mentioned above, anything is possible in LabVIEW.

--------------------------------------------------

Nathan - Certified LabVIEW Developer
0 Kudos
Message 3 of 9
(3,656 Views)

Hello adssad,

 

if I understood correctly, you are trying to call some subVI when user clicks on the one of the Tab pane.

I prepared some example for you, you need to use:

1. Infinite while loop with STOP button

2. Event structure

 

Right-click Event structure and Edit Events... you can define what kind of events you want to handle.

 

So check the example 🙂

Hope it will help you!

 

Best regards,

David

 

0 Kudos
Message 4 of 9
(3,624 Views)

Daveae understood it well. Yes, I would like to click on one of Tab pane. In this tab pane will be subVI (do not have to be subVi) and want start program which will be over measuring card changing value of analog output. Curtailment: I need to change analog voltage output from in some range. This all must have automatic start when I click on one this Tab pane.

0 Kudos
Message 5 of 9
(3,596 Views)

Have you thought about the use of a SubPanel?  Seems like you could launch one on a button click and have that pane appear and run the VI...

--------------------------------------------------

Nathan - Certified LabVIEW Developer
0 Kudos
Message 6 of 9
(3,563 Views)

Hi adssad,

 

I hope my example code helped you a little, now it's time to think about implemetation, so the following questions are:

 

How do you want to generate signal on AO?

- Finite generation - one cycle generation with pre-defined waveform ?

- Point by point generation, controlled by software?

- Continuous generation with pre-defined waveform, so you once send the data and it will be automatically generated until you press STOP button

- or other option?

 

And related question how should user FP control the AO generation?

 

Please check the Examples in LabVIEW

-> Hardware Input and Output -> DAQmx -> Analog Output

 

Wish you a successful day!

0 Kudos
Message 7 of 9
(3,558 Views)

To Daveae:

Firstly, thanks for anwer!

 

So, I have this program which doing correct changing output analog voltage on my measuring card. Now I need this automate.

When I click on Tab Pane I need to start this program which is in attachment. Some tips how? 🙂

0 Kudos
Message 8 of 9
(3,545 Views)

Hi adssad,

 

if you want to call Voltage Ramp.vi as subVI, just connect terminals to Connector pane and drag and drop Voltage Ramp.vi to my Example project which I prepared for you instead of One Button Dialog.

 

But I don't really understand why you would like to do call it in that way 😞

 

I have also some tips for you Voltage Ramp.vi:

- I think that software timing for Ramp generation is not the best solution, have you consider that computing resources could be (and will be) used also by other running processes? So, your loop will not execute exactly every 5 ms 😞

- Please for proper error handling use Shift register not only Last Value, Shift Register will remeber Error which can occur in any iteration 0th to Nth. Last Value returns only last value Error state, so Nth.

 

I think that you should check Example in LabVIEW

Hardware Input and Ouptut -> DAQmx -> Analog Ouput -> Voltage - Finite Generation

The idea is first prepare all sample that you have to generate in some array, than send it to the device buffer at once, and than just call Start Task VI which will generate your prepared waveform (array) to the Analog Output.

 

Another thing that you have to think about is that DAQmx task should be executed in different loop, so you front panel will not freeze. In that case you need to use also same mechanism to communicate between loops (for example Queues).

 

Good luck!

 

0 Kudos
Message 9 of 9
(3,518 Views)