Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Keeping power supply in remote mode after GPIB program finished

I'm using a Xantrex XPD power supply (the Agilent/HP does the same) and when my CVI application completes the power supplies exit remote mode and then generate the output according to the front panel knob settings. ibonl causes this as well as releasing system control. Is there any method short of clamping the front controls to prevent this? Note that the power supplies are configured to power up in remote mode which they do.
0 Kudos
Message 1 of 4
(3,688 Views)
Try using the local lockout function.
It sends the local lockout command to all devices on the bus.

In C it's something like

SendLLO(m_nBoard);

I don't know what the equivalent VI is in LABView

Curt
Message 2 of 4
(3,688 Views)
Thank you for the quick response. I tried your suggestion (I'm using C) and during the program the power supply was locked out, however at completion and exit (when the board is taken offline) the power supply still exits remote mode.
0 Kudos
Message 3 of 4
(3,688 Views)
try this one

//place devices in remote with lockout state

SetRWLS(m_nBoard, &instruments[0]);

you'll have to read the ni-gpib manual
on how to format the address array: instruments
It's an array of NI types called Addr4882_t

Curt
0 Kudos
Message 4 of 4
(3,688 Views)