Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the *OPC SCPI Command to Clear Output Buffer

Hello,

 

I am having trouble how to use the *OPC SCPI command on my Keysight E3640A PS when performing several read and write commands using the GPIB write vi.  I get the following error at the shown step:

Mrodrigo13_0-1618265500076.png

If I press Continue the VI will continue to run and read me back the recorded value, but will give this error every time I try and read a measurement from the supply.  Before this command I am sending a measure current command and then reading the value here for context.  I was told to use the *OPC command, but am not sure how to do so.  I was also told I should clear the output buffer as there may just be too many old/previous commands that are causing the supply to lag out.  Any suggestions?

 

 

0 Kudos
Message 1 of 4
(2,994 Views)

Hi

Stop using local variables if you also have wires.

OPC is short for operation completed.

And the error message is that you have so much need of memory that it is full. Probably a while loop running wild.

So the error message probably points at a wrong structure of programming.

greetings from the Netherlands
0 Kudos
Message 2 of 4
(2,947 Views)

Greetings From the states!

 

Thanks for the remarks, unfortunately This is a rather wild while loop and changing the entire structure of the vi is not an option as it is an i herited vi and would take much longer than time has for this task (I have to work with what I have).  Is there a way to remedy the situation using the OPC command or is the error in lieu of the vi's structure itself?  I had contacted Keysight and told them about the issue and they had mentioned that some of the newer power supplies have newer firmware than the supplies we are using, sot heya re the ones who suggested using the *OPC command.

0 Kudos
Message 3 of 4
(2,934 Views)

If you don't plan to change the vi. I can't help you.

Sorry for you.

greetings from the Netherlands
0 Kudos
Message 4 of 4
(2,930 Views)