VK2BEA / HP8753-Companion

Facilitate and enhance the functionality of the HP8753 Vector Network Analyzer
Apache License 2.0
15 stars 4 forks source link

GPIB PID is not set to 16 on startup. #13

Closed Aspire-Design-Ltd closed 5 months ago

Aspire-Design-Ltd commented 5 months ago

Hi Michael,

I have managed to get your latest version as of 24/05/24 working on windows.

One issue I have found is that when the program starts the glade file sets the PID to 16 in the UI but the pGlobal->GPIBdevicePID defaults to zero.

When you first start the software you assume the PID is set to 16 as this is the value shown by the UI but this is not true since the pGlobal->GPIBdevicePID is zero on startup.

If you hit the + then - by the PID this then sets the pGlobal->GPIBdevicePID to 16 and you can connect by checking the Use Card Index check box.

MPC.

VK2BEA commented 5 months ago

Yes, I think I had previously initialized this when I had a command line switch to set the PID. When I removed the switch I must have also removed the initialization. The setting is recovered from the database on subsequent runs so this is only a problem on the initial run. I've updated the file .. thanks for catching this.

Great work on getting a windows version! What GPIB driver are you using?

Aspire-Design-Ltd commented 5 months ago

Hi. I am using the NI 64bit drivers with a GPIB-HS-USB interface. Its works with a HP8753ES. Plan to fork your code and include the windows mods. At the moment I have it as an Eclipse project.

MPC.