06-18-2020 04:33 AM
Hello,
i have a question about the initialization of an HMP 2020 with Labview. I downloaded and installed the driver and the VI elements from the website (HMP 4000 family) but i can niot communicate with the HMP 2020 with labview. My Vi atm is only to initialize the HMP but it dont work.
Are they any other driver and i have the wrong drivers?
thx for help
Solved! Go to Solution.
06-18-2020 04:41 AM
Hi Chris,
@Chris202002 wrote:
I downloaded and installed the driver and the VI elements from the website (HMP 4000 family) but i can niot communicate with the HMP 2020 with labview.
R&S uses one driver for the whole HPM2000&4000 family. You find the same drivers at ni.com/idnet …
So I guess you installed the correct driver. Did you follow the description from R&S when installing?
@Chris202002 wrote:
My Vi atm is only to initialize the HMP but it dont work.
So the VI is able to communicate with your device when it initalizes the HMP!?
What kind of problem is "it dont work"? There is no such error message from LabVIEW (and probably not from your HMP)!
06-18-2020 05:34 AM - edited 06-18-2020 06:04 AM
The error Message is:
VISA Open in hmp4000_rsidr_core.lvlib:initialize_driver_session.vi->hmp4000 Initialize with Options.vi->hmp4000 Initialize.vi->Spannungsquelle testen.vi
and the Error Code is:
-1073807246
So the VI is able to communicate with your device when it initalizes the HMP!?
No i dont think so. The Device is shown in the System Manager from their i have the com port but iam not sure labview can communicate with the device
06-18-2020 06:02 AM
Hi Chris,
@Chris202002 wrote:
and the Error Code is: -1073807246
The error description is "resource is valid, but not accessible by VISA" (translated from German).
So do you try to access the COM port with another tool in parallel?
06-18-2020 06:19 AM
Now i tried a communication with the test panel from NI Max and i get the correct answer for the identifikation command.
Iam realy sure theire is no other Program or device wich communicate with the HMP 2020.
06-18-2020 06:25 AM
Ok now i have found a "possible" solution
After testing with the testpanel the device switched to remote mode and i can use the initialisation from the Labview programm without an error
In my mind i have to use the Initialize Vi with otion string to set the device into the remote mode. Now iam looking for the remote string to send.
But first of all thx for the help
Are you familiar with Rohde & Schwarz devices? Becaue I know i have more questions in the next time
Sincerely yours
Mit freundlichen Grüßen
Chris
06-18-2020 02:53 PM
Hi Chris,
- you have an old Firmware on the instrument. Make sure you install the newest firmware 2.62
- make sure you close all the other connections to the instrument, the HMP can only handle one VISA session at a time. Close the VISA test panel when working with LabVIEW driver. Make sure you call HMP4000 Close.vi after your program is finished.
BR
Milo