필터 지우기
필터 지우기

How to perform handshaking operation

조회 수: 9 (최근 30일)
A R
A R 2020년 2월 27일
댓글: A R 2020년 3월 2일
Hello, my project is to transmit data to the analog output pin of MCC USB 205 DAQ. From the DAQ the data goes to ADI Board for further process. To increase the speed of data transmission I am using a C mex file to transmit data. Now I want to implement handshaking operation to transmit the data. I have 3 data's to transmit (a,b,c) based on the rising edge and falling edge of clock. I am totally new to this, can anybody give suggestions like how to do it, where to start with, or any example code or documents.

채택된 답변

Walter Roberson
Walter Roberson 2020년 2월 27일
Unless the clock rate is very slow, there is no realistic way to monitor the clock edge at the MATLAB level in order to determine when to transmit the signal.
This is the sort of task that you use an external device to handle the timing and signal transmission. Some daq boards can handle it: you command them with trigger information and appropriate response and let them run independently.
  댓글 수: 9
Walter Roberson
Walter Roberson 2020년 3월 2일
I need to transmit 1x256 double data (it corresponds to image pixels) to analog output pin 0
You need to transmit the bit sequence corresponding to the IEEE 754 Double Precision representation of each pixel?? If so, in what bit order?
Or for each pixel, you need to transmit a single voltage that corresponds to (say) pixel-value/(2^16) or pixel-value/256 of full voltage, and it is acceptable if the remote end does not exactly reconstruct the same voltage?
Or... ??
A R
A R 2020년 3월 2일
Walter, I have planned to do handshaking with the strobe pulse. Thanks a lot for explaining about it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Periodic Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by