Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Three dimensional array - using Alias


Renewable Joe Jul 16, 2021 06:49 PM

I have an applicaiton where I am reading data from an IV tracer for PV applications.

A single IV trace is a pair of currents (I) and voltages (V) of 60 data points in length.

The system has 20 individual strings to measures.

So I wanted to place the values in a 3D array

Trace_data(2,60,20)

I also wanted to Alias the variables for easier recognition but I am not sure of the syntax.

For instance I wanted to current data (IV_I), voltage data (IV_V), and the Trace ID (Trace_id) aliaed.

Alias Trace_data(1,?,?) = IV_I

Alias Trace_data(2,?,?) = IV_V

Alias Trace_data(?,?,1) = Trace_id

I am just don't know the syntax to assign.

Any help would be appreciated.


nsw Jul 21, 2021 08:39 AM

CRBasic Help has a page dedicated to this : "Multi-Dimensional Arrays". Have a look at this and it should get you working.


CreatesHVS Oct 21, 2024 06:21 PM

Hello, Did you ever figure this out? The Multidimensial array help page does not contain any info on how to use the alias instruction with arrays like this.


JDavis Oct 22, 2024 10:43 PM

CreateHVS, you have to fill in numbers for each dimension of the array. Values have to be aliased individually.

      Alias Trace_data(2,5,10) = IV_V

An alternative is to use data structures, if the data logger supports it. Look at the help for StructureType(). There are some limitations working with structures, but they save a lot of time writing aliases statements for large numbers of the same type of sensor.

Log in or register to post/reply in the forum.