ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get array data from .udl database file

Solved!
Go to solution

Hi all, 

 

I've created a database (udl) file and written three arrays as columns to a table in that database file. Then I want to get those arrays again and use them in a vi. I've built a vi but it only gets the first element of the array. I can't get the whole column. Could you please show me a way to get that array? I've attached two files that I've built. 

 

Any help will be appreciated. 

 

Best regards,

Emre

Actor Framework rocks!
Emre TUZUNER
Download All
0 Kudos
Message 1 of 2
(2,962 Views)
Solution
Accepted by topic author etuzuner

I've found the solution. I was wrong to use "Fetch Element Data". I had to use "Fetch Recordset Data". By using "Database Variant to Data" after "Fetch Recordset Data", I have 2D array of data. Then use of "Reshape Array" handled it the way I want. 

 

Actor Framework rocks!
Emre TUZUNER
Message 2 of 2
(2,944 Views)