I am using DT9857E, after updating the device ID in the example file I came across this error :"Invalid default value for property 'AsynchronousIoChannel' in class 'daq.dt.internal.ChannelGroupOL': Unable to resolve the name 'asyncio.Channel.empty''
Then I made all the revisions you mentioned namnely :
In the 'AsyncOLChannel.m' file, I made the following changes.
Line 1: classdef AsyncOLChannel < matlabshared.asyncio.internal.Channel
Line 21: obj@matlabshared.asyncio.internal.Channel(pluginInfo.devicePath, ...
Line 23: 'Options', channelOptions,...
Line 24: 'StreamLimits', streamLimits);
Line 35: matlabshared.asyncio.internal.DataEventInfo(remainderIn) );
Line 51: matlabshared.asyncio.internal.DataEventInfo(remainderOut) );
In the 'ChannelGroupOL.m' file, I made the following single change.
Line 23: AsynchronousIoChannel = matlabshared.asyncio.internal.Channel.empty();
BUT, now I get this error " Property assignment is not allowed when the object is empty. Use subscripted
assignment to create an array element"
I have attached the two altered m filed in this message.
Question
ali_rzb
Hello @Fausto
I am using DT9857E, after updating the device ID in the example file I came across this error :"Invalid default value for property 'AsynchronousIoChannel' in class 'daq.dt.internal.ChannelGroupOL': Unable to resolve the name 'asyncio.Channel.empty''
Then I made all the revisions you mentioned namnely :
In the 'AsyncOLChannel.m' file, I made the following changes.
Line 1: classdef AsyncOLChannel < matlabshared.asyncio.internal.Channel
Line 21: obj@matlabshared.asyncio.internal.Channel(pluginInfo.devicePath, ...
Line 23: 'Options', channelOptions,...
Line 24: 'StreamLimits', streamLimits);
Line 35: matlabshared.asyncio.internal.DataEventInfo(remainderIn) );
Line 51: matlabshared.asyncio.internal.DataEventInfo(remainderOut) );
In the 'ChannelGroupOL.m' file, I made the following single change.
Line 23: AsynchronousIoChannel = matlabshared.asyncio.internal.Channel.empty();
BUT, now I get this error " Property assignment is not allowed when the object is empty. Use subscripted
assignment to create an array element"
I have attached the two altered m filed in this message.
Could you please advise.
Sincerely,
Ali
AsyncOLChannel.m ChannelGroupOL.m
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now