Control DAQ Board Digital Outputs with a Matlab GUI

edited April 2010 in Science & Tech
Hi, i m new here and i m looking for help, i tried averywhere on the net but i m still confused.
so here is my problem,

My DAQ board KPCI-3103A ist connected to another Board where an Ultrasonic Sensor (Dual-Use:sender/reciever in one) is Brazed. I must send Digital Signals in Loop from my KPCI-3103A to the Sensor-Board to control the Sending and recieving data through an Analog Input on the KPCI-3103A. I connected the Sensor-Board to the KPCI-3103A with an Analog Input and Analog Ground, and 6 Digital IOs which must be Outputs from the KPCI-3103A, and the Signals must be Adjustable and running simultaneously, I already make a GUI but dont know how to make the right commands:

1. Signal (S/R): when High-->Sensor is Sending Ultrasonic. when Low--> Sensor is Recieving Echo.
The time between the left Edge from this Signal (S/R) and the left edge from the sencond one (CLK) must be adjustable with a Slider.
2. Signal (CLK): I must be able to adjust the Pulse Width , Pulse Duration and Pulses Number, to get the frequency which i need.
3. Signal (InGND): when this signal is High the sensor is recieving Echo, and i must adjust the time between the right edge from (S/R) signal and the left Edge from this signal (InGND).

4.5. and 6.(REM1,REM2 and REM3): Are aplifyers for the incoming Echo, so hier too i must adjust the time between the Left edge from the 3.Signal (InGND) and the Left Edge of the Three REMs and in a GUI with 3 Check Buttons (Checked means Amplifying in On) .


I will be Thankful if you can Help with any Suggestions or Tipps. I figured I can use a GUI for the Functions, but i dont really know if that will really do it, if you think so let me know please.

Regards, Amin

Comments

  • drasnordrasnor Starship Operator Hawthorne, CA Icrontian
    edited April 2010
    You need to have a MATLAB API to interface with your card supplied by the DAQ manufacturer. If they don't make one, you're out of luck. If they do, the documentation supplied with the API will tell you how to use it.

    EDIT: At first glance, Google reports that your DAQ card only has drivers for LabView and a few others not including MATLAB. You won't be able to use MATLAB to control it unless you write the driver yourself. If you're dead-set on it you can call MathWorks and see if they can help you understand how to write such a driver.
  • edited April 2010
    Hi Drasnor,

    Thanks for the Answer, an Adaptor is already installed and registred , if you mean the DLL file to make matlab communicate with my board.
    I can access the board form matlab, as i can plot the Analog Input from the sensor.
    But if the sensor-Card isnt triggered with the signals explained on my first message, this input signal dont help me anyway.

    Basically i need to program these signals as Digital Outputs, and Control the Delay between them.


    I hope someone understand what I mean..if it isnt so, just ask.

    Thanks
  • drasnordrasnor Starship Operator Hawthorne, CA Icrontian
    edited April 2010
    How are you accessing the DAQ from MATLAB? Is there any documentation for the functions you're using? I understand what you mean, but what you want to do requires the board manufacturer to expose the functionality to you through high-level MATLAB functions.
  • edited April 2010
    I´m accessing the DAQ-Board with the Basic commands,which can be used for any DAQ-Board, such as in the Data acquisition toolbox documentations for Analog input.
    but i figure that i need more commands to realize the ouptut signals(as Digital Outputs) that I need, but nothing found.

    I think I must ask the support of the board vendor.

    Thanks
Sign In or Register to comment.