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
 Origin Forum
 Origin VIs error codes

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
mnelu Posted - 09/07/2005 : 3:01:48 PM
Origin Version (Select Help-->About Origin): 7.5
Operating System: XP

I am trying to use Origin to plot data transferred from LabVIEW and copy the resulted graph into clipboard. Everything works fine (data transfer, graph refresh) up to the point where I use OACopyPage.vi: the page is not copied to clipboard and I get an "Unknown System Error in OACopyPage.vi->..." with the error code 97. I tried to change the input parameters format and color (I thought it might have something to do with the system settings), but no combination worked. Thanks for your help and I have a suggestion: the error codes should be available somewhere on your web site, so people could try figure out what's going on in their LabVIEW diagram.
4   L A T E S T    R E P L I E S    (Newest First)
mnelu Posted - 09/07/2005 : 4:31:03 PM
easwar, thanks a lot. Indeed I forgot to carry the Origin.IOApplication wire from the output of one VI to the input of OACopyPage.vi. Problem solved, I copied the graph into clipboard and pasted it to Word.
easwar Posted - 09/07/2005 : 4:18:48 PM
Hi,

The error number 97 is a LabVIEW error code, and when I look up the number in LabVIEW help file it says:
97 oleNullRefnumPassed Null Refnum was passed in as input.

I have not yet looked at your VI in detail, but the above indicates some input was not set correctly in one of your sub VIs?

Easwar
OriginLab

mnelu Posted - 09/07/2005 : 4:02:28 PM
Thanks easwar for the fast reply. I just sent you the LabVIEW library. If I manually copy the graph it works just fine, but I would like to do it automatically from LabVIEW, without switching to Origin. I want to transfer vectorial data to clipboard (metafile or emetafile), the quality of a bitmap is not acceptable. Anyway, I also tried to copy the graph as bitmap and it didn't work. My vi diagram looks very similar to what you showed in your PS.
easwar Posted - 09/07/2005 : 3:41:48 PM
Hi,

What settings did you use for the export, for the format and for the DPI?

Can you try manually copying the graph onto clipboard in Origin using the menu item Edit->Copy Page? Does that work correctly and you can paste into another application such as Word?

Can you send your VI to tech@originlab.com so that we could try and see what is going wrong?

Thanks,

Easwar
OriginLab

P.S. To simpilfy the VI and try reproduce the problem, you could try a VI such as below which assumes a graph by name Graph1 exists in Origin and just pastes that to cliboard as a BMP with 150 DPI:





Edited by - easwar on 09/07/2005 3:45:17 PM

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