I have a program where i want to use some external data. The idea is that this external data is placed in a dat file, so it could be used with multiple programs. This is data from the mertail which we use. I contains coordinates for defects.
I tried just creating an array in the dat file and filling it like this:
Code
DECL REAL Sdefect[10]
DECL REAL Edefect[10]
Sdefect[1]=100.0
Edefect[1]=120.0
Sdefect[2]=130.0
Edefect[2]=140.0
Sdefect[3]=420.0
Edefect[3]=420.0
Sdefect[4]=420.0
Edefect[4]=420.0
Sdefect[5]=420.0
Edefect[5]=420.0
Sdefect[6]=420.0
Edefect[6]=420.0
Sdefect[7]=420.0
Edefect[7]=420.0
Sdefect[8]=420.0
Edefect[8]=420.0
Sdefect[9]=420.0
Edefect[9]=420.0
Sdefect[10]=420.0
Sdefect[10]=420.0
Display More
This doesn't work. If i look at other dat files (created by my robot) i see that all variables are assigned when they are initialized (EG "DECL PDAT PPDATP1={VEL 100,ACC 100,APO_DIST 100}") but i can't find out what the proper syntax to do this with an array. Or whether this is even possible to do within a dat file.
maybe there is an other reason why this is not working? Any suggestions are welcome