09-19-2006 05:39 AM
09-19-2006 05:57 AM
You can do this, but you might need to change the way you work.
First, you can make the waveform a control instead of VI. That way, all it requires is updating.
Second, You can set the VI not to close its panel when its done. That way, it can do its work, display the waveform and stay open even after it's finished running and when the calling VI is ready for another click on the table. This is done in File>VI Settings>>Window Appearance>>Customize.
Third, you can run the display VI in parallel. For example, you can use a queue - the UI loop would enqueue a command with the data whenever you click the table and the display VI (which will be constantly running) will display the new data whenever a new command arrives in the queue. Check out the Queued Message Handler pattern in the File>>New dialog to see an example.
In the second and third case, you can set your window to be floating, so that the display is always there, even if the calling VI has the actual focus.
09-19-2006 06:27 AM
Hi,
Thanks for your reply, but I am not sure this is what i need. since parameters are transfered when second vi opens, and initializing all controls is done when its open, what I realy want is to identify the double-click, close second vi if it is open, and then open it with correct parameters.
Is this possible??
09-19-2006 06:28 AM
Hi,
Thanks for your reply, but I am not sure this is what i need. since parameters are transfered when second vi opens, and initializing all controls is done when its open, what I realy want is to identify the double-click, close second vi if it is open, and then open it with correct parameters.
Is this possible??
09-19-2006 07:53 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
09-19-2006 08:14 AM