From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

以太网十六进制数据还原成原来的电压信号

我这的数据如788F 2E78,其中78是信息头,8F 2E是有效信息,(2E是高位,8F是低位)。我遇到的问题是,当有效信息大于8000时要做一个补码运算,我不知道如将高低换位,并对大于8000的值求补。图形画出来应该是-10~+10V的正弦波。运算应该是高位*256+低位。最后的数值在除以一个系数65535,再乘20。
我不知道是否描述清楚了!
请各位帮帮忙!谢谢
下面是我读取波形及数据转换的VI
总是画不出图,我不知道问题出在哪啦!
Download All
0 Kudos
Message 1 of 2
(2,932 Views)

Hi wanglina2...,

your first vi makes little sense for me. Why do you need all the while loops? You use no information from the first while loop. Which format has your received data?

 

Try to help.

Mike

0 Kudos
Message 2 of 2
(2,926 Views)