Any suggestions to solve this problem using Matlab and MCC DAQ
4 次查看(过去 30 天)
显示 更早的评论
Hello, I am working with MCC USB 205. My project is to transmit 1x256 double data to analog output port of USB 205. The data from DAQ is then sent to analog devices ADI Board. The ADI board can only read data in the range of 0-2.5V. So I scaled the 1x256 data between 0-2.5V and passed it to DAQ. It works good.
b=min(z); % z is 1x256 data
z1=z-b;
c=max(z1);
z2=z1*(2.5/c); %0-2.5V converted value
In the ADI Board, I need to convert the 0-2.5 v (1x256 data) to original signal.
% code to convert 0-2.5V to original signal
z0=z2*(c/2.45);
zf=z0+b;
By the above formula ,I need to transmit b (minimum value) and c(maximum value) to ADI Board to get the original signal. My b values ranges from -2.6519 to -33.0597. My c values ranges from 22.5817 to 69.9402. How to transmit this values to a DAQ which only supports 0-5V range. I tried scaling b and c values again but that didnt help. I also tried converting the b and c values to binary and sending it to DAQ, but the values (b and c) are decimal fractions, and I dont think its possible to do that. Is there any other methods to overcome this problem?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Analog Input and Output 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!