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
 New Worksheet (from Labview)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tklui

USA
5 Posts

Posted - 12/02/2008 :  11:13:01 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8 Pro and SR 4:
Operating System: Windows XP Pro SP3
Labview 8.2

Hello,

Question 1
Is there any way to create a new worksheet in the same book from Labview? I tried the provided "New Worksheet" VI but all it does is to create a new worksheet in a new book.

Question 2
I know I can execute Labtalk script in Labview. Can I used the Xfunctions and originC language as well?

Thanks for your help,

TK Lui

cpyang

USA
1406 Posts

Posted - 12/04/2008 :  9:51:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Question 1
Is there any way to create a new worksheet in the same book from Labview? I tried the provided "New Worksheet" VI but all it does is to create a new worksheet in a new book.



We will provide an example on our wiki site, to show how to add a new sheet to an existing book.

quote:

Question 2
I know I can execute Labtalk script in Labview. Can I used the Xfunctions and originC language as well?



Since LabTalk script can call OC and XF, so sure, you can include OC and/or XF in the script. For OC, you typically need to use run.loadOC to make sure OC code is compile and link. For XF, it is simpler, you just use them in LT as you would normally do in Origin. The only trick is to add code to wait for Origin to fully finish startup compiling before you call an XF. You can find example of this in the

OA_PE_mkdir.vi

which simply make LabTalk script call to the pe_mkdir XFunction. To ensure that startup compiling is finish, this vi issue the labtalk script "sec -poc 3" to allow up to 3 sec (actually much less) to wait uncase Origin is not yet ready to make XF call.


CP


Go to Top of Page

tklui

USA
5 Posts

Posted - 12/05/2008 :  04:52:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
CP,

Thanks for your prompt and detailed reply. Please let me know when the example is ready.

Thanks again,

TK Lui
Go to Top of Page

eparent

118 Posts

Posted - 12/05/2008 :  5:54:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by tklui

CP,

Thanks for your prompt and detailed reply. Please let me know when the example is ready.

Thanks again,

TK Lui



Hello,

We have created two SubVIs. FindWorkbook and AddWorksheet. They will be included in SR5 and are available now upon request. Contact tech support.

You can also see the SubVI's block diagrams and an example using them now on our Wiki site.
http://wiki.originlab.com/~originla/wiki/index.php?title=LabVIEW:AddWorksheet

Thanks,
Go to Top of Page

tklui

USA
5 Posts

Posted - 12/11/2008 :  12:08:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

I saw the VIs you mentioned available on the Origin wiki (http://wiki.originlab.com/~originla/wiki/index.php?title=LabVIEW:AddWorksheet). But where could I obtain these VIs?

Thanks,

TK Lui
Go to Top of Page

eparent

118 Posts

Posted - 12/11/2008 :  3:29:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by tklui

Hello,

I saw the VIs you mentioned available on the Origin wiki (http://wiki.originlab.com/~originla/wiki/index.php?title=LabVIEW:AddWorksheet). But where could I obtain these VIs?

Thanks,

TK Lui



Hello,

I have asked Tech Support to email you the latest OriginApp_LV7.lib file. This updated palette contains both the FindWorkbook and the AddWorksheet SubVIs.
Go to Top of Page

JSchoeck

Germany
Posts

Posted - 03/31/2010 :  10:51:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

could you please also email me the latest version of the OriginApp_LV7.lib file?

I would very much appreciate it,
Johannes
Go to Top of Page

markcasias

USA
1 Posts

Posted - 04/14/2010 :  12:43:57 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
hello if you don't mind what is the latest version currently?

Thank you...


http://www.augenlaser-femto-lasik.de

Edited by - markcasias on 04/14/2010 10:27:36 PM
Go to Top of Page
  Previous Topic Topic Next 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