using voltage sensor in program code
显示 更早的评论
I have voltage sensor and current sensor that I want to creat m-file program and use their reading. How can exactly read them and right a program code to descripe them?
采纳的回答
更多回答(1 个)
Sulaymon Eshkabilov
2021-10-26
(1) Make sure that you have Data Acquisition toolbox installed. And if it is there, then you can check the followings.
(2) find out what particualr DAQ system/data logger is connected to your computer. This can be checked using:
daqlist
If your matlab (computer) can recognizes and sees your DAQ system, then you can acquire your sensor readings via your connected DAQ system, e.g.:
D = daq('...') % DAQ system vendor name
Typical workflows include some of the following steps:
(1) Discover hardware devices using the daqlist function
(2) Create a DataAcquisition object using the daq function
(3) Add device channels
(4) Add device connections
(5) Set DataAcquisition and channel properties
(6) Perform on-demand operations
(7) Perform clocked operations
(8) Initiate background clocked operations
Here is a good documentation how to acquire the data via DAQ from the sensors:
类别
在 帮助中心 和 File Exchange 中查找有关 Analog Signal Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
