04-26-2009 03:15 PM
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
04-26-2009 03:27 PM
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...
04-26-2009 03:50 PM
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
04-27-2009 10:43 AM
04-27-2009 01:23 PM
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.
04-27-2009 02:27 PM
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
04-27-2009 03:29 PM
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
04-27-2009 03:41 PM
04-27-2009 04:48 PM
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
04-27-2009 04:58 PM - edited 04-27-2009 05:00 PM
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!