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
 All Forums
 Origin Forum for Programming
 Forum for Automation Server/COM and LabVIEW
 Labview <-> Origin

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
tklui 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?
2   L A T E S T    R E P L I E S    (Newest First)
tklui Posted - 12/02/2008 : 11:07:00 PM
Thanks for your fast reply.

I worked around the problem by saving the the Origin project.
cpyang 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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000