Author |
Topic |
|
tklui
USA
5 Posts |
Posted - 11/18/2008 : 11:50:54 PM
|
My system: Windows XP SP3, OriginPro 8 SR4, Labview 8.2
After reading through the sample VIs supplied by Origin, I managed to export data from Labview to Origin. But I noticed one thing: after the data are imported to Origin, when I close Origin (either by clicking the red cross on the top right corner of the Origin window, or by clicking File->Exit), Origin does not really close and one can still find Origin.exe in the task manager. "Closing" Origin merely closes/hides the application window.
The problem is when I connect to Origin after "closing" it, the worksheet with the previously imported data shows up (which I don't want it to).
Is there any way to "release the handle" back to Origin so that it really exits?
|
|
cpyang
USA
1406 Posts |
Posted - 11/19/2008 : 12:19:55 AM
|
You must be refering to the example Simulate_DAQ.vi. When running this vi, if you stop LV without clicking the start/stop button, then the last step of the vi will not run and thus an important switch will not be reset.
This has to do with a CanClose property in the Application class. This vi has set CanClose = True before the loop and reset CanClose to False after user click the Start/Stop button.
When CanClose = True, clicking the [x] to close down Origin will simply hide it. This property was added before SR4 when end user closing down Origin while connected to LV can lead to some troubles. After SR4, user will no longer be allowed to close Origin while connected to another application (LV), regardless of CanClose property, so it is actually better not to touch the CanClose bit.
We have apparently overlooked this in SR4 so we will remove the toggle of CanClose in that example in the next SR.
To solve your problem, you just need to leave out the CanClose.
To read more about the CanClose property, see our wiki site:
http://wiki.originlab.com/~originla/wiki/index.php?title=OriginCOM:Application-CanClose
CP
|
|
|
tklui
USA
5 Posts |
Posted - 12/02/2008 : 11:07:00 PM
|
Thanks for your fast reply.
I worked around the problem by saving the the Origin project. |
|
|
|
Topic |
|
|
|