08-17-2009 07:33 AM - edited 08-17-2009 07:34 AM
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
08-17-2009 07:59 AM
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...
08-17-2009 08:02 AM
08-17-2009 08:14 AM
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
08-17-2009 08:18 AM
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".
Or, simply wire a False to local(s). The easiest & cleanliest solution...
08-17-2009 08:26 AM
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
08-17-2009 08:27 AM
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?
08-17-2009 08:28 AM - edited 08-17-2009 08:31 AM
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.
08-17-2009 08:33 AM
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.
08-17-2009 08:37 AM
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