Communication with Hioki 7110 SM
古いコメントを表示
Hello,
I am attempting to connect and communicate with a hioki meter. I have been able to set it as a serial object, it is on COM9 in my case. All the settings are set up as described in the manual for USB, https://www.hioki.com/file/cmw/hdInstructionManual/94120/pdf/?action=browser page 130. I have been trying to communicate with fprintf, read, readline, getpinstatus, but no luck. I tried setting it up with serialport("COM9",9600,"Timeout",5) but it said "Undefined function or variable 'serialport'." Same for serialportlist. I have database toolbox and opc communication toolbox. I do not have the instruments communication toolbox.
Can anyone please provide some support on what I can do to communicate with the meter? I have also sent an email to Hioki but most likely their response will not be directly related to matlab.
The commands from Hioki are described here https://www.hioki.com/file/cmw/hdInstructionManual/94140/pdf/?action=browser
The commands listed there are those I tried with fprintf, write, etc.
Thank you in advance, any help or direction will be very appreciated.
4 件のコメント
Walter Roberson
2019 年 11 月 14 日
You filled out the information as if you are using R2019b, but I wonder if you are possibly using an earlier release? serialport() is new in R2019b. In previous releases you would use serial() https://www.mathworks.com/help/matlab/ref/serial.html
Calvin Ebert
2019 年 11 月 15 日
Calvin Ebert
2019 年 11 月 15 日
編集済み: Calvin Ebert
2019 年 11 月 15 日
Walter Roberson
2019 年 11 月 15 日
If there is *IDN? support, then typically you would tend to use Instrument Control Toolbox with VISA drivers. That is not mandatory as in theory it can be handled by serial over USB, but Instrument Control makes some aspects easier to manage.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Serial and USB Communication についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!