Fixed asynchronous/nowait confusion
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<dependency>
|
||||
<groupId>ch.psi</groupId>
|
||||
<artifactId>jcae</artifactId>
|
||||
<version>2.1.10</version>
|
||||
<version>2.1.11</version>
|
||||
</dependency>
|
||||
<!-- Plotting library -->
|
||||
<dependency>
|
||||
|
||||
@@ -222,7 +222,6 @@ public class ScanMapperNG {
|
||||
script.append(indentation + var+"_positions="+b.toString()+"\n");
|
||||
}
|
||||
else if(positioner instanceof FunctionPositioner){
|
||||
FunctionPositioner fpositioner = (FunctionPositioner) positioner;
|
||||
// TODO take variable mappings into account !
|
||||
}
|
||||
else if(positioner instanceof PseudoPositioner){
|
||||
@@ -307,7 +306,7 @@ public class ScanMapperNG {
|
||||
}
|
||||
break;
|
||||
case "putq":
|
||||
script.append(var+".setValueAsync("+getPythonValue(ca.getValue(), type)+")\n");
|
||||
script.append(var+".setValueNoWait("+getPythonValue(ca.getValue(), type)+")\n");
|
||||
break;
|
||||
case "wait":
|
||||
script.append(var+".waitForValue("+getPythonValue(ca.getValue(), type)+", "+waitTimeout+")\n");
|
||||
|
||||
@@ -105,7 +105,7 @@ public class ChannelAccessPut<E> implements Action {
|
||||
logger.finest("Put to channel: "+channel.getName()+ " asynchronous: "+asynchronous);
|
||||
try{
|
||||
if(asynchronous){
|
||||
channel.setValueAsync(value);
|
||||
channel.setValueNoWait(value);
|
||||
}
|
||||
else{
|
||||
if(timeout==null){
|
||||
|
||||
@@ -217,7 +217,7 @@ public class ChannelAccessFunctionActuator<T> implements Actor {
|
||||
}
|
||||
}
|
||||
else{
|
||||
channel.setValueAsync(fvalue);
|
||||
channel.setValueNoWait(fvalue);
|
||||
}
|
||||
|
||||
if(doneChannel != null){
|
||||
|
||||
@@ -198,7 +198,7 @@ public class ChannelAccessLinearActuator<T> implements Actor {
|
||||
}
|
||||
}
|
||||
else{
|
||||
channel.setValueAsync(value);
|
||||
channel.setValueNoWait(value);
|
||||
}
|
||||
|
||||
if(doneChannel != null){
|
||||
|
||||
@@ -183,7 +183,7 @@ public class ChannelAccessTableActuator<T> implements Actor {
|
||||
}
|
||||
}
|
||||
else{
|
||||
channel.setValueAsync(table[count]);
|
||||
channel.setValueNoWait(table[count]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -175,7 +175,7 @@ public class OTFBean {
|
||||
this.command.setValue(Command.STOP.ordinal());
|
||||
|
||||
// Do not wait for put to return
|
||||
this.running.setValueAsync(false);
|
||||
this.running.setValueNoWait(false);
|
||||
}
|
||||
catch(Exception e){
|
||||
throw new RuntimeException("Unable to abort OTF logic" ,e);
|
||||
|
||||
@@ -116,7 +116,7 @@ public class ParallelCrlogicTest {
|
||||
ParallelCrlogic pcrlogic = new ParallelCrlogic(crlogic, scrlogic);
|
||||
|
||||
logger.info("Start scaler");
|
||||
scalertemplate.getCommand().setValueAsync(VSC16ScalerChannelsTemplate.Command.Count.ordinal());
|
||||
scalertemplate.getCommand().setValueNoWait(VSC16ScalerChannelsTemplate.Command.Count.ordinal());
|
||||
|
||||
pcrlogic.prepare();
|
||||
pcrlogic.execute();
|
||||
|
||||
Reference in New Issue
Block a user