Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

voltage not displaying on R&S HMP series power supply

Hi ,

 

 

I am using below commands to display voltage on power supply in C code.

The voltage is not display. I see the connection is success. What could be the reason. any other set up required in power supply

 

char HMPon[] = "INST OUT1";
char HMPon1[] = "OUTP:SEL 1";
char HMPon2[] = "OUTP 1";
char HMPon3[] = "OUTP:GEN 1";
char TDKvolttoset1[] = "VOLT 18.5";
char resourceString1[] = "TCPIP0::192.168.1.200::5025::SOCKET";

status = viOpen(rmHandle, resourceString1, VI_NULL, VI_NULL, &scopeHandle);

status = viWrite(scopeHandle, (ViBuf)HMPon, (ViUInt32)strlen(HMPon), VI_NULL);
status = viWrite(scopeHandle, (ViBuf)TDKvolttoset1, (ViUInt32)strlen(TDKvolttoset1), VI_NULL);
status = viWrite(scopeHandle, (ViBuf)HMPon1, (ViUInt32)strlen(HMPon1), VI_NULL);
status = viWrite(scopeHandle, (ViBuf)HMPon2, (ViUInt32)strlen(HMPon2), VI_NULL);
status = viWrite(scopeHandle, (ViBuf)HMPon3, (ViUInt32)strlen(HMPon3), VI_NULL);

 

Regards

Renuua

0 Kudos
Message 1 of 1
(381 Views)