LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting Switches and Buttons


nevica wrote:

Hello,

 

 

2. How can I output the data on just one graph no matter which gauge I select. Having three graphs is overkill. I


1.gif

Message Edited by Broken Arrow on 08-17-2009 07:34 AM
Richard






0 Kudos
Message 11 of 24
(1,591 Views)

Adnan Z wrote:

nevica wrote:
I have decided to stop the vi with the vi stop button on the top bar instead of creating my own stop button.

DON'T DO THIS. Using the Abort Execution button when stopping a VI is like using a tree to stop your car.


Quoted by Ed Dickens, see the attached pic...

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 12 of 24
(1,579 Views)
It's one of the best analogies I've heard.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 13 of 24
(1,572 Views)

Hello Broken Arrow,

 

This will not work because the output graph needs to be inside the case structure. There are three case structures selectable but I only want one graph to be out. If I put the graph output outside of the case then I cannot read the data continually. I need to be able to read continually on one of three selectable gauges but only output one graph.

 

I have throught of using a sub-vi. Will this work? 

 

Nevica

0 Kudos
Message 14 of 24
(1,568 Views)

Normally, it is better to use the Latching action for booleans. If at all the Switching action needs to be used, you can also use the "Reinit to Default" invoke method at the start of your program before the loop & wire their error terminals like a chain, as Adnan already suggested for Property nodes.

 

But make sure that you rt-click on the FP control(s) & set the False state as "Make current value as default". Smiley Happy

 

Or, simply wire a False to local(s). Smiley Wink The easiest & cleanliest solution...

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 15 of 24
(1,563 Views)

Hello Pathabe,

 

Could you please give me a visual example of how I can wire to false and get these buttons to work. I am a complete beginner in Labview.

 

Thanks,

 

Nevica

0 Kudos
Message 16 of 24
(1,555 Views)

nevica wrote:

Hello Broken Arrow,

 

This will not work because the output graph needs to be inside the case structure. There are three case structures selectable but I only want one graph to be out. If I put the graph output outside of the case then I cannot read the data continually. I need to be able to read continually on one of three selectable gauges but only output one graph.

 

I have throught of using a sub-vi. Will this work? 

 

Nevica


You should be able to get it done with one of these method:

Update the graph with local variables inside each case.

Update the graph with references passed to a sub-vi.

Update the graph in a parallel loop.

 

Have you implememnted a proper State Machine, as was suggested earlier?

Richard






0 Kudos
Message 17 of 24
(1,554 Views)

nevica wrote:

 

There are three case structures selectable but I only want one graph to be out. If I put the graph output outside of the case then I cannot read the data continually. I need to be able to read continually on one of three selectable gauges but only output one graph.

 

I have throught of using a sub-vi. Will this work? 


You understanding is wrong. You can have 'N' no. of cases, but only one WILL BE selectable at a time.

 

Maybe you can have 3 seperate graphs for the 3 selectable gauges & play with making them visible/invisible as per the correspondin case selected.

 

Your SubVI idea is also good, but even then, you can display only one on the FP with 1 graph.


If you mean the past data by the word "continually", then you can try out the Waveform Chart, which will give you the Historical data also.

Message Edited by parthabe on 08-17-2009 08:31 AM
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 18 of 24
(1,552 Views)

nevica wrote:

 

Could you please give me a visual example of how I can wire to false


Rt-click on each FP button control or the BD terminal & select Create >> Local variable, then Change to Write, then pick a False constat from the Boolean pallette & wire it to the local variable.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 19 of 24
(1,547 Views)

Thanks broken arrow. I have not yet implemented a state machine as I work best from a visual example. I am a complete beginner in Labview.

 

When I create a sub-vi as in the following example (capture.jpg) how do I then wire this sub-vi into the circuit inside of the case structure. The Labview help tells me to 'Select a VI' from the Functions pallete. I cannot see this appear on my functions and I think that I am doing something wrong.

 

Nevica

 

0 Kudos
Message 20 of 24
(1,545 Views)