The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Automation Server/COM and LabVIEW
 Labview <-> Origin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic  Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tklui

USA
5 Posts

Posted - 11/18/2008 :  11:50:54 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

tklui

USA
5 Posts

Posted - 12/02/2008 :  11:07:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for your fast reply.

I worked around the problem by saving the the Origin project.
Go to Top of Page
  Previous Topic Topic  Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000