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
 Adding column to a worksheet in 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

Nikodem87

Poland
2 Posts

Posted - 01/11/2013 :  05:21:57 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi everyone,

I am using LabView 8.6 and Origin Pro 8.6.1. under Windows 7 in order to transfer my data from measuremenst setup into Origin worksheet.

Is it possible to add new columns into my worksheet? A newly created one has two columns, so I have to work with multiple worksheets, and this is not very convienient. Could you help me?

greg

USA
1378 Posts

Posted - 01/11/2013 :  3:38:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You should have a Template in Origin which already has the required number of columns. Then you can load that Template using OA_NewWorksheet or OACreatePage which each let you specify the Template name.

You could also use OAExecute to send a script to Origin to load that Template.
script = "win -t data MyTemplate"
Or if you really want to work with an existing worksheet,
script = "Book1!wks.AddCol(foo);Book1!wks.AddCol(bar);"
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