Jump to content
  • 0

Invalid default value for property 'AsynchronousIoChannel' in class 'daq.dt.internal.ChannelGroupOL


ali_rzb

Question

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

  • 0

Hello @ali_rzb.

I attached my two files for you to test.  

AsyncOLChannel.mChannelGroupOL.m

Verify that you have the 'Data Acquisition Toolbox Support Package for Data Translation Hardware' version 1.1 installed in MATLAB's Add-On Manager.

image.png

 

Next, execute the 'daq.getDevices' command, within MATLAB, to determine the Device ID of your DT9857E module. 

 

image.png

 

Open the 'dt_background_streaming_AI.m' example, in the 'C:\Users\{username}\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Data Acquisition Toolbox Support Package for Data Translation Hardware' directory and update the default Device ID to be your module's Device ID.  Comment any other channels or else update their Device ID parameter as needed.

image.png

 

Lastly, run the example.  What's the outcome?

 

Regards,

Fausto

Link to comment
Share on other sites

  • 0

@Fausto

Dear Fausto,

Thank you for your reply,

I substituted the files you gave , added the toolbox and updated my device ID in the example. Im still getting the error :

Property assignment is not allowed when the object is empty.  Use subscripted assignment to create an array element."

The error pops from line 31 of the example : "startBackground(s);" 

Please advice 

Thank you for your time,

Ali

Link to comment
Share on other sites

  • 0

@Fausto

Dear Fausto,

I wanted to ask if you got a chance to follow up on this issue,

Currently, a few projects in our lab are paused due to this issue and we would appreciate it if you could help us resolve this situation.

Sincerely,

Ali

Link to comment
Share on other sites

  • 0

Hello @ali_rzb.

I am unable to reproduce your issue.  What are your versions for MATLAB, the Toolbox, the Support Package, DT Open Layers, and Windows OS?  Do you have a different Windows system to run MATLAB, the Toolbox, and the Support Package?

Regards,

Fausto

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...