Communication with Hioki 7110 SM

7 views (last 30 days)
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 listed there are those I tried with fprintf, write, etc.
Thank you in advance, any help or direction will be very appreciated.
  4 Comments
Calvin Ebert
Calvin Ebert on 15 Nov 2019
Edited: Calvin Ebert on 15 Nov 2019
I have updated to 2019b and had the same issues. Even calling fscanf(Hioki, "*IDN?") where "*IDN?" is a supported industry standard IEEE-488 to give the available instrument information.
There are 4 possible communication ports, USB data cable, RS-232C, GP-IB, and direct I/o with a parallel port, 18 short side 19 long side. Would any of these be better than the others for matlab? So far, I have been able to establish it to COM9 but have not been able to send or receive any data. Are there any matlab commands you could point me to that could be used to communicate? It is saved as a variable Value 1x1 Serialport, Class internal.Serialport. I have confirmed the settings on the meter are correct to open communications.
serialportlist
ans =
"COM7"
>> Hioki=serialport("COM7", 9600)
Hioki =
Serialport with properties
Port: "COM7"
BaudRate: 9600
NumBytesAvailable: 0
NumBytesWritten: 0
Show all properties
>> fopen(Hioki)
Error using fopen
First input must be a file name or a file identifier.
>> writeread(Hioki,"*IDN?")
Error reading String.
Timeout occurred waiting for the String Terminator.
Walter Roberson
Walter Roberson on 15 Nov 2019
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.

Sign in to comment.

Accepted Answer

Calvin Ebert
Calvin Ebert on 26 Nov 2019
Hey future people,
If you end up here, make sure the setting to data out is set to off. This setting only appears for USB and RS232 settings but it does in fact affect GPIB Settings. Hioki is aware of the issue, hopefully its fixed before you find this page.

More Answers (0)

Products


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!