-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Milestone
Description
I'm trying to use org.csstudio.vtype.pv. I get an exception from the following test (which I wrote for the purpose in JCAPVTest.java (and I am running the IOC)):
@Test
public void testAsyncRead() {
try {
final PV pv = PVPool.getPV("motor_x");
Future<VType> pvFuture = pv.asyncRead();
} catch (Exception e) {
e.printStackTrace();
}
}Here is the exception:
java.lang.IllegalStateException: Channel not in connected or disconnected state, state = 'NEVER_CONNECTED'.
at com.cosylab.epics.caj.CAJChannel.checkState(CAJChannel.java:1090)
at com.cosylab.epics.caj.CAJChannel.getFieldType(CAJChannel.java:732)
at org.csstudio.vtype.pv.jca.JCA_PV.asyncRead(JCA_PV.java:250)
at org.csstudio.vtype.pv.JCAPVDemo.testAsyncRead(JCAPVDemo.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
- Is this the right PV library to use?
- Am I doing something wrong?
Metadata
Metadata
Assignees
Labels
No labels