The Origin Forum
File Exchange
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Automation Server/COM and LabVIEW
 Read matrix scaling/dimensions frm labview/labtalk

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 HyperlinkInsert EmailInsert 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 [?]

 
   

T O P I C    R E V I E W
jdf726 Posted - 05/10/2017 : 10:07:17 AM
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’).
1   L A T E S T    R E P L I E S    (Newest First)
jdf726 Posted - 05/10/2017 : 11:31:12 AM
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!!!



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