Jump to content

Sodanamm

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by Sodanamm

  1. On 4/1/2023 at 1:53 AM, Fausto said:

    Hello @Sodanamm.

    Please verify that you updated the required changes, which I mentioned in my previous post.  I have verified that the 'dt_foreground_streaming_AI.m' example, in the 'C:\Users\{username}\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes' directory, does not report an error.  Be sure to update the device ID parameter, in the example, to correspond with the attached Data Translation device.  Which DT device are you using?

    Regards,

    Fausto

    Hi Fausto, thank for your advise now it running fine since am forgot to update first line in  'AsyncOLChannel.m'

  2. On 3/1/2023 at 1:44 AM, Fausto said:

    I was able to get my DT9834 to work with MATLAB R2022b, Windows 11 64-bit, and DT Open Layers v7.8.9.

    Below are the changes I made, which should help clarify the workaround for using the 'Data Acquisition Toolbox Support Package for Data Translation Hardware' with MATLAB R2022a and newer.

    In the 'C:\Users\{username}\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Data Acquisition Toolbox Support Package for Data Translation Hardware\+daq\+dt\+internal' folder, I updated two files (AsyncOLChannel.m and ChannelGroupOL.m).

     

    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();

    (Note: There is a known bug with the analog output when using DT Open Layers v7.8.9. Revert back to DT Open Layers v7.8.2. The DT DataAcq OMNI software can be downloaded from BOX using this link: https://datatranslation.box.com/s/8mrbkoxzyv8r9fbsadybvj0btxk2qbni ).

    Regards.

    still got error while startForegrond as below

     

    [data,time] = startForeground(s);
    Property assignment is not allowed when the object is empty.  Use subscripted
    assignment to create an array element.

     

    can you provide me any advise

×
×
  • Create New...