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
 LabTalk Forum
 LabVIEW - Column Labels
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

masterd

Australia
Posts

Posted - 04/17/2006 :  9:28:51 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5Pro
Operating System:200 Pro

With our instrument, DAQ board data gets saved to a file with a defined filename as well as exported to the origin.
http://www.originlab.com/forum/topic.asp?TOPIC_ID=4752 is a previous post containing screenshot of similar vi to our situation.

however, data that gets exported to the origin does not contain any labels, just numbers.

Is it possible to somehow convert filename string control in labview (where i define a filename) to something that below origin script would recognise so i can use the script to define column labels?

%b=abc; // name
wks.col$( wks.ncols ).label$ = %b; // assign name to column label
wks.labels(); // turn on display of label


and if not, is there any other way of using that filename string to define column labels?
Cheers

Darko

easwar

USA
1965 Posts

Posted - 04/17/2006 :  9:55:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Darko,

You could use the OASetLTStr to set the value of a LabTalk string var to your file name, and then use OAExecute to send a group of script commands to Origin, such as in the diagram below.

Easwar
OriginLab



Go to Top of Page

masterd

Australia
Posts

Posted - 04/18/2006 :  02:21:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Perfect! That is exactly what I wanted!

Oh, that was so close to what i had myself... but didnt work!

Thanks Easwar

Darko

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