NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

关于labview数组赋值

我需要用labview做一个温度采集的上位机软件,一次性从下位机接受1578字节,去掉包头包尾后有1536字节有效数据,其中每三个字节表示一个温度值,比如十六进制:F9 99 98 表示-999.98。我要保存数据并画出波形图。我的想法是将这512数据存在一个数组中,然后保存数组及画出波形图。请问 如何创建并赋值一个512大小的数组,或是有其它什么办法实现要求的吗?
0 项奖励
1 条消息(共 2 条)
6,878 次查看

This is assuming that you already know how to convert the F9 99 98 to the value as -999.98.

 

Since you know that there are all together 512 elements/ data to be fetched, processed and displayed, you may use Initialize Array to initialize an DBL array of size 512. Then, use Replace Array Subset to update the array before saving them to file.

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
2 条消息(共 2 条)
6,849 次查看