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.
CRBasic Help has a page dedicated to this : "Multi-Dimensional Arrays". Have a look at this and it should get you working.
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.
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.