The Origin Forum
File Exchange
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
 All Forums
 Origin Forum for Programming
 Forum for Automation Server/COM and LabVIEW
 Read matrix scaling/dimensions frm labview/labtalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jdf726

70 Posts

Posted - 05/10/2017 :  10:07:17 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2016 32 bit
Operating System: Win 7

I am creating two labview vis, one that sets 2d origin matrix data and dimensions and another that retrieves the same information.
My idea is get the necessary data out of origin, do something to it, and put back in again in a new sheet.

I can put the 2d data and the scaling into origin ok. I execute a labtalk command from labview to set the matrix dimensions using ‘mdim’.

The trouble is that I cannot READ the matrix dimensions using the get matrix data vi – it passes the 2D data, but not the scaling!

I considered using the execute method to read the matrix dimensions using a labtalk command, store them in a variable and then read the variable. This would do, but I cannot work out how to GET the matrix dimensions (like a READ version of ‘mdim’).

jdf726

70 Posts

Posted - 05/10/2017 :  11:31:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I found a workaround...

Convert to a worksheet with m2w, call it 'temp' and make sure the dimensions are in the 1st row/col. Now retrieve the data from the worksheet and delete 'temp' and split this into 1D X,Y and 2d Z data

Feels a bit clumsy!!!


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 © 2008 Originlab Corporation Go To Top Of Page
Snitz Forums 2000