From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-02-2020 06:28 AM
Hello! Can it be possible to control the frequency of LCR Meter from LabVIEW? I'm using HM8118 lCR meter and have to adjust the frequency programmatically.
Thanks
01-02-2020 06:37 AM
Hi Chisti,
@Chishti wrote:
Hello! Can it be possible to control the frequency of LCR Meter from LabVIEW?
Yes.
All the information you need can be found in the manual of that device…
01-02-2020 08:13 AM
Yes, I read the manual before but there is nothing available to control the frequency of LCR Meter in the command section.
01-02-2020 12:29 PM
Hi Chishti,
@Chishti wrote:
Yes, I read the manual before but there is nothing available to control the frequency of LCR Meter in the command section.
That's funny!
When I open the linked manual (see my previous post) then there is a full chapter on "Command reference", with a list of "Measurement setup commands" including a "FREQ(?)" command…
Still the same advice: read the manual as it contains all the information you asked for!
01-03-2020 05:29 AM
Thanks! But when I give the frequency string. It doesn't change the frequency of LCR Meter. I've attached the VI
01-03-2020 06:39 AM
Hi Chishti,
@Chishti wrote:
Thanks! But when I give the frequency string. It doesn't change the frequency of LCR Meter. I've attached the VI
No, you did not attach your VI. All we got are two images: we cannot edit or debug images with LabVIEW…
On those images:
Why do you close the COM port immediatly after writing a command to the output buffer? Are you sure the COM port driver had a chance to send that command before the communication is stopped?
What does the manual say about usage of TermChars? Most often commands are expected to end with a TermChar…
Are the settings of the COM port as expected by the device? (Again: what does the manual say?)
01-03-2020 09:44 AM
I gave a delay of 500 ms. In the manual. The command ends with " Each remote command ends with CR (carriage
return) or CR+LF (carriage return + line feed) (no individual LF). "
The settings are according to the COM port as I can read the measurements.
It is also mentioned in the manual that the REMOTE/LOCAL key is illuminated if communication
to the instrument has been established via an interface. I'm attaching the VI which I build to write. Please check and amend it if necessary. I'll be so grateful to you
Regards
01-03-2020 10:36 AM
Hi Chishti,
so you can read measurements from the Hameg device?
But it doesn't react on sending a command?
Which command did you try? In your VI you are sending "*IDN?\r" (in \-code display): is this command even supported by your Hameg?
01-03-2020 10:45 AM
Yes, it does support. It gives returns the ID string. Even if I send the "FREQ 200\R" commands. It doesn't react.