LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stop chart

Dear Sir

 

Could you look at the attached example. I added a button to stop the graph while running the while loop. But I want to add all the case structures into subvi so that I have to move the graph outside the case structure but the false case will be not connected? Could you look at it to modify

 

 

0 Kudos
Message 1 of 11
(4,337 Views)

Hi Ahmad,

 

well what have you done so far:

You wired a stop button to a case structure. When stop=TRUE then you plot some random values. When stop=FALSE then you want to execute a second case structure that clears the chart history when stop=TRUE !? How should that happen?

 

Could you define "stop the graph"? Should the chart get cleared (empty the history)? Or should the plotting of new values be interrupted? That's not clear from your question and vi...

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 11
(4,334 Views)

Thanks for replying

 

I attached here a picture of my real problem. As you see that I'm using a simulation loop so that I have to put this case structure inside a sub vi. channel to display the name of the graph and channel 4 to display its units.

 

I want to let the button inside the circle in the pictute to work as start and freeze button to start the selected graph and then when I pushed it again it freezes the graph to its current state.

 

when I added a case structure for this button as shown in the secind pictute, I can't connect the channel, cahnnel 4 and graph in the second case of structure to combine them after that in a sub vi

Download All
0 Kudos
Message 3 of 11
(4,324 Views)

Hi Ahmad,

 

could you please attach that vi?

It's quite irritating to see all those small arrows (is this some new LV8.6.1 feature or did I miss something?) and wires and still unwired case tunnels...

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 11
(4,267 Views)

Could you forgive me because I don't have a permission to attach the full vi.

 

I'm using labview 8.6.1

 

my problem is tha when I tried to let the pause button to pause the graph, the graph value reache to zero but I don't like that I want just to pause the graph during the simulation when pressing the button not let the value go to zero.

0 Kudos
Message 5 of 11
(4,247 Views)

Hi Ahmad,

 

It sounds like you would be better off with a waveform chart and put that inside the case structure. It will retain your data, even when  you stop inserting data into the graph.

 

Regards,

Andrew Eddleman
National Instruments

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
0 Kudos
Message 6 of 11
(4,230 Views)

Dear Sir

 

I attached a simple example of my problem. I hope to help me for solving the following:

 

1. Modifying the clear button to clear the graph and also initialize the simulation time to restart again.

2. Modifying stop button

3. Modifying Pause button

 

 

Download All
0 Kudos
Message 7 of 11
(4,221 Views)

Hi Ahmad,

 

what about Andrews hint?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 11
(4,218 Views)

Dear

 

I didn't find any modification in the attached vi you sent to me.

 

the pause button still comes to zero and I don't want that, I want just to pause the graph when preesing it, stop button not work properly,

 

The clear button not  restarts the simulation time. it clears the graph but the simulation time not restart

 

Ahmad

0 Kudos
Message 9 of 11
(4,207 Views)

Hi Ahmad,

 

You don't find differences? No subvi anymore, a case structure as Andrew suggested, cleanup - no changes?

 

I simplified the example to show general behaviour...

 

I don't have simulation toolkit installed nor do I have experiences with it, so I can't help on simulation specific questions!

To have the stop button working you should have an event for it too!

Message Edited by GerdW on 04-28-2009 12:00 AM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 10 of 11
(4,201 Views)