use of com.neuronrobotics.sdk.commands.bcs.io.GetDyIOChannelCountCommand in project java-bowler by NeuronRobotics.
the class DyIO method getDyIOChannelCount.
public Integer getDyIOChannelCount() {
if (dyioChanCount == null) {
if (isLegacyParser()) {
try {
BowlerDatagram dg = send(new GetDyIOChannelCountCommand());
dyioChanCount = ByteList.convertToInt(dg.getData().getBytes(0, 4));
} catch (InvalidResponseException ex) {
ex.printStackTrace();
}
} else {
Object[] args = send("bcs.io.*;0.3;;", BowlerMethod.GET, "gchc", new Object[] {});
dyioChanCount = (Integer) args[0];
}
}
return dyioChanCount;
}
Aggregations