Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Write Function on HP4276A does not work

Hello,

 

im using a network analyzer (HP4276A). I want to set frequencies and after that i want to read the data from the displays.

I'am able to read data from dislplay with the VI which is offerd here: https://decibel.ni.com/content/docs/DOC-4094

 

But unfortunately it is not possible to set frequencies. In the manual (http://cp.literature.agilent.com/litweb/pdf/04276-90000.pdf   page 3-37ff)  you can see that, frequency changes were done by the command e.g. "FR5.0EN" for setting frequencies to 5 Khz. But the HP4276A is not possible to handle with that command.

 

I set the HP4276A in the adressable mode (see manual 3-26).


I also tried the available drivers wich were available on the NI website for the HP4276A, but they dont work at all. Even reading data are also not possible with that VI (and writing anyway). It says "Instrument specific error".

 

Im using the NI GPIB-USB-HS.

Hopefully someone can help me.

 

Warm regards

 

Oxonium

0 Kudos
Message 1 of 10
(4,627 Views)
I don't understand your using that first example at all. Have you tried the simple GPIB Write function?
0 Kudos
Message 2 of 10
(4,610 Views)

Forgot to say, but yes i also tried the examples. And there is the same problem. I can only read without writing.

I also set a delay, but that doesnt work either.

0 Kudos
Message 3 of 10
(4,593 Views)

Hello Oxonium,

 

as you mentioned in your first post, it is not possible to set frequencies. Do you receive an error message from the example code, that the communication was unsuccessful or another message? How do you know that the frequency is not set?

 

Regards, Stephan

0 Kudos
Message 4 of 10
(4,586 Views)

Hello Stephan,

 

I got no error message from Labview.
The HP4276A has  three displays. Display A & B shows e.g Capacitance and Dissipation. Display C shows the frequency settings. I'am able to read from Display A & B. But as i said before, im not able to change frequencies which i should see on Display C. After i send the command "FR5.0EN" it makes a clicksound coming inside the instrument. But after that the Hp4276A chrashes and i have to push the "self test" button to get the previous state.

 

Warm regards

 

Oxonium

0 Kudos
Message 5 of 10
(4,581 Views)

Before you do anything else, go into MAX and try to write to the instrument in inter-active mode. Either the GPIB communicator or VISA. See if it works. If it doesn't, perhaps there is something wrong with that very old instrument.

0 Kudos
Message 6 of 10
(4,573 Views)

I also tried that. Also here i can only read but not write.

0 Kudos
Message 7 of 10
(4,563 Views)

Sounds to me that the instrument is broken

0 Kudos
Message 8 of 10
(4,551 Views)

In the handbook it says after each command there must be a carriage line and linefeed.

 

So how do i have to write that at the end of the command?

 

- \r\n

 

- 1310 (ASCII)


or even

- <CR><LF>

?


I tried all three options but i think the device does not recognize this. I dont know why...

 

0 Kudos
Message 9 of 10
(4,534 Views)

Since you have not shown how you are trying to append the CR and LF, no one has any idea if you are doing it correctly. You have to set the string control/constant for '\' Codes Display in order to use \r and \n. You also have them as constants on the string palette. Your other attempts are not correct.

0 Kudos
Message 10 of 10
(4,515 Views)