channelaccess / ca_matlab

4 stars 2 forks source link

waitForValueAsync does not work #8

Closed simongregorebner closed 8 years ago

simongregorebner commented 8 years ago
Channels.waitForValueAsync(channel, 'world').get(java.lang.Long(10), java.util.concurrent.TimeUnit.SECONDS);

Error stack:

No method 'get' with matching signature found for class 'ch.psi.jcae.impl.WaitFuture'.

Error in ca_test_script_dscr_wago (line 77)
CH_RB_Pos_Filter1.waitForValueAsync(val1).get(java.lang.Long(1), java.util.concurrent.TimeUnit.SECONDS);  %-> not
working
simongregorebner commented 8 years ago

Somehow Matlab does not like chained function calls. The calls need to be split up into separate lines

f = Channels.waitForValueAsync(CH_RB_Pos_Filter1,val1);
f.get(java.lang.Long(1), java.util.concurrent.TimeUnit.SECONDS)