本章将讲解LabVIEW如何读取压力传感器的压力,温度值;
工具/原料
1
LabVIEW
2
VISA驱动
3
Wika
4
压力传感器
实现过程
1
打开wika自带光盘,找到EasyCom.exe;
2
D-10/D-11采用标准的RS232串口,其中wika采用RTS和DTR供电;
3
打开EasyCom.exe,在弹出EasyComLogin对话框,User选择Maintenance,Password默认为空,点击OK;
4
选择Instrument selection;
5
选择对应连接的传感器信号D-1x系列;选择已经连接仪器的串口号;
6
选择Click here to connect;
7
弹出information对话框提示当前模式,点击确定;
8
此时可以实时采集校准后压力pressure calibrated,出厂设置压力Pressure after factory setting,温度Temperature,以及测量压力范围0-0.6bar等参数;
9
选择recorder-Table(选择好start开始时间,stop停止时间以及pressure压力单位,temperature温度单位以及transfer interval采用间隔,然后点击开发);
11
切换到Parameterisation of the Communication,可以选择操作模式Operating Mode:Polling Operation ,cycl.pressure,cycl.pressure and temperature,选择好模式后,点击
LabVIEW通过串口读取压力
1
根据通信协议,读取压力有两种模式,分别我Polling和cycling;
2
cycling模式读取的时候,需要在easycom里面设置相同的模式;
3
Polling模式读取的时候,需要在easycom里面设置相同的模式;
注意事项
1
注意串口仪器的交互方式
2
请点赞,收藏