Question about programming a CR800 to display a variable as public from an alias with multiple variables, most of which I don't want in public table.
Here's a small snippet of the program currently:
Public Batt_volt
Dim ISCO_AV(5) 'See Alias
Public AV_stage 'AV probe level converted to ft
Alias ISCO_AV(1)=AVLevel 'Raw level from AV probe (m)
Alias ISCO_AV(2)=AVVelocity 'Raw velocity from AV probe (m/s)
Alias ISCO_AV(3)=ISCOAVFlow 'Raw flow from AV probe (m3/s)
Alias ISCO_AV(4)=AVVolume 'Raw volume from AV probe (m3)
Alias ISCO_AV(5)=AV_water_temp 'Raw water temperature C from AV probe
'Main Program
BeginProg
Scan(180,Sec,1,0)
SDI12Recorder(ISCO_AV(),3,"0","M!",1,0,-1)
_____________________________________________
I'd like to set the "AV_water_temp" public so it's viewable in the table, but have the other 4 variables (1 through 4) of the ISCO_AV alias kept dim. Is there a way to do this?
You will need to make a separate Public variable and copy over the number you want shown. There is not a way to make only one piece of an array Public. The new variable must have a different name than the Dim variable. If you want to use the label you already chose, delete that one Alias line.
Public AV_water_temp 'Raw water temperature C from AV probe
'Within scan after getting data from the sensor:
AV_water_temp=ISCO_AV(5)