Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

simultaneous analog input output in matlab?

  • 10-03-2003 03:37PM
    #1
    Registered Users, Registered Users 2 Posts: 30


    Alright fellas,
    its been a while since I've been here but I always got good answers, and I'm stuck again.

    i'm doing a project using matlab and sonar sensors.
    i can, seperately, output to the sensors and read an input from them; heres the problem. when I try to do this (write output and read input) in the same program ie. simultaneously I am getting DMA errors:

    NI-DAQ: No DMA channel is available for use.

    or

    Bad value for analoginput property: 'TransferMode'.

    've tried:

    set(ai, 'TransferMode', 'SingleDMA');
    set(ao, 'TransferMode', 'SingleDMA');

    and

    set([ai ao], 'TransferMode', 'DualDMA');

    and

    set(ai, 'TransferMode', 'DualDMA');
    set(ao, 'TransferMode', 'DualDMA');

    I need them to work simultaneously.
    if anyone knows anythimg about this stuff I would really apreciate the help, i'm prob not explaining it very clearly but does any one even recognises this stuff???

    Sound,
    Tele


Comments

  • Registered Users, Registered Users 2 Posts: 30 tele


    I got a kind of an answer for this in case anyone is having the same problem. have to use interupts.
    god matlab sucs


  • Closed Accounts Posts: 14,483 ✭✭✭✭daveirl


    This post has been deleted.


  • Registered Users, Registered Users 2 Posts: 30 tele


    Ya i know matlab doesnt suck, its pretty good to do just about everything


Advertisement