field not finished, connection works
This commit is contained in:
34
src/test/java/Field.java
Normal file
34
src/test/java/Field.java
Normal file
@@ -0,0 +1,34 @@
|
||||
import ch.hevs.isi.core.BooleanDataPoint;
|
||||
import ch.hevs.isi.core.FloatDataPoint;
|
||||
import ch.hevs.isi.field.BooleanRegister;
|
||||
import ch.hevs.isi.field.FieldConnector;
|
||||
import ch.hevs.isi.field.FloatRegister;
|
||||
|
||||
public class Field {
|
||||
public static void main(String[] args) {
|
||||
|
||||
|
||||
FloatRegister fRI = new FloatRegister("GRID_U_FLOAT",false,89);
|
||||
BooleanRegister bRI = new BooleanRegister("SOLAR_CONNECT_ST", false ,609);
|
||||
FieldConnector.getMySelf().startPeriodicalPolling();
|
||||
|
||||
FloatRegister fRO = new FloatRegister("REMOTE_FACTORY_SP",true,205);
|
||||
BooleanRegister bRO = new BooleanRegister("REMOTE_SOLAR_SW", true ,401);
|
||||
|
||||
/*
|
||||
fRO.fdp.setValue(0.8F);
|
||||
bRO.bdp.setValue(true);
|
||||
*/
|
||||
|
||||
while(true)
|
||||
{
|
||||
/*
|
||||
float value = fRI.dataPoint.getValue()*1000;
|
||||
System.out.println(value);
|
||||
*/
|
||||
/*
|
||||
System.out.println(bRI.bdp.getValue());
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user