本人汽车专业,在一个关于涡轮增压的课题中被分配到了数据采集的任务,在尾气进出涡轮的两端采集温度和压力(后期还有可能涉及到电压、电流)。
突击学习了一个月的LabVIEW,现在硬件已经到位(NI pxi-1033, pxi-6229, scc-68, 2个TC),连接后通过DAQmx已驱动,可编程还是有阻碍。
希望有人指点一下程序的思路及DAQmx和LabVIEW的关系,当然说详细点会更好。
感谢!
建议看看LabVIEW的范例,里面有关于数据采集的程序例子。
Hi
Since you will be using two (2) TC, it should not be too difficult in the data acquisition (Analog Inputs) portion.
For DAQmx, you should be creating virtual channels as Analog Input > Temperature > Thermocouple, with physical channels string as i.e. Dev1\ai0:1 (for instance: channel 0 and channel 1). You may also set the units as i.e. Deg C
Then, in the data acquisition loop (i.e. Producer), perform DAQmx Read to acquire the TC readings with the frequency depending on your system's requirement.
At the consumer loop, you may then further process the received TC readings and or directly display them to numeric indicator, graph etc.
At when exiting the program, close the DAQmx with DAQmx Close.