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

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

学习LABVIEW的几个问题


1:我做数据采集时,只建一个DAQMX 任务,里面包含两个通道,通道参数都在max里设置
好,两个通道的采样率能不能不一样,我在max里设置时就只能设置成一样,这是为什么?
2:如果我要新建两个任务来分别采集两个通道的数据,而且要同时进行,能不能做到?我试
了一下,程序里用两个DAQMX read.vi来分别采集两个通道的两个信号,一运行程序就会报错。
Labview不支持这种编程方式吗?请问应如何解决?
3:如果用数据采集助手同时采集2个通道的数据,它产生的数据是1D数组,而不是2D数组,
我如果要把两个通道的数据分开来,就成了单个实数,显示波形和测量就都有问题,而用DAQMX

read.vi同时采集两个通道的数据的话,出来的就是2D数组,显示和测量就可以用一些VI来做了。
请问采集助手出来的数据类型是不是只能是1D数组?
望知道的大侠解答一下,非常谢谢了
0 项奖励
1 条消息(共 2 条)
3,801 次查看

1. Within a DAQmx Task, all channels shares a single sampling rate, so different channels cannot sample with different sampling rate.

2.  If the 2 DAQmx Task using channels from same DAQ module, LabVIEW Error must pop up. It is because DAQmx task will locked the DAQ module and prevent others to access. You can config the DAQ channels in LabVIEW with DAQmx vi. Same configuration can be achieved in LabVIEW & MAX.

3. The output of DAQ assistant is dynamic data, but not 2D array. You can convert it by VI "Convert from dynamic data", choose option "2D array of scalars, rows are channels", then you will get same result as with DAQmx Read

John L.
0 项奖励
2 条消息(共 2 条)
3,770 次查看