LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A problem with hp 33120a

Hello
I've got a big problem with my hp 33120a generator. I'm using a library downloaded from ni developer zone to communicate PC with my generator. And now I can send an arbitrary weveform from txt file to my generator. But the problem is, that I can't send a waveform longer than 4000 points, because the program gives an error. I've check in the Users guide specifications and that generator can make an arbitrary waveform long for 16.000 points. So I dont know why I can send onlu 4000 points ??

The error wchich generator send is:

-420 Query UNTERMINATED
The function generator was addressed to talk (i.e., to send data over the
interface) but a command has not been received which sends data to the
output buffer. For example, you may have executed an APPLy command
(which does not generate data) and then attempted an ENTER statement
to read data from the remote interface.

I'm using zzz.vi file from that library.

If somebody can help me  I will be grateful.

Message Edited by marek12 on 04-12-2007 03:44 PM

0 Kudos
Message 1 of 7
(5,416 Views)
Nobody knows that 😞

I think the reason why i've got a error it that, more than 4000 points are going to the generator to slow and the program is going too fast. So the program wants an answer from generator when the points are still uploaded to the generator.
So I thint that the best way will be to make the program going slower, so that all of my point will upload to generator.
But how to do that ?
0 Kudos
Message 2 of 7
(5,377 Views)
I have uploaded 16000 points to an Agilent generator. It was a while back and the final version of the program used much smaller datasets, so I am not sure I will be able to help much. Looking at the picture I wonder if it is not a timing issue. Make sure the VISA timeout is set to a long enough value to allow the entire dataset to be sent. I recall that it is not fast. Perhaps waiting until the download is complete before sending the FREE? query might be worth trying.

I will look at my old project and see if there is anything useful in there.

Lynn
0 Kudos
Message 3 of 7
(5,373 Views)
Thanks for trying to help. I will check If it's working with your adwices.

If you have got any other ideas I will be greatefull.
0 Kudos
Message 4 of 7
(5,364 Views)
I found a VI which writes about 16000 "0" values to the generator, along with a few non-zero values. After the write, I included a 100 ms wait before reading the response. I do not recall how well it worked and I do not have access to the instrument to retest it. This did not become a part of the final program, so it may not be very robust. The way it is set up, it will keep retrying. The test VISA HP Clear Errors.vi was intended to be used to clear the error buffer not as a write then read function. I have no idea why I used that. I recall that I had to do a lot of testing to see if the generator would do what we wanted. I think this was one of the things we discarded.

Lynn
Download All
0 Kudos
Message 5 of 7
(5,352 Views)

Hi,

 

I know it has been for a while since this is posted. But I am facing the same problem. No more than 4000 points can be written. I am using the latest version of the driver that supports LV7.1. There is a newer version but only has 8.0 support. I am using 7.1 so have no way to verify if it works. Anyway, is there any get-around for this issue?

 

The attached are the error messages.

 

Thanks!

 

 

Download All
0 Kudos
Message 6 of 7
(4,796 Views)

As I mentioned in the post above, I no longer have access to the instrument.  I think that one of the issues was that loading 16000 points took longer than the default timeout.  SInce you got a timeout error message, the first thing I would try is increasing the timeout to a larger value.  The VIs I posted were used in LV 7.1 so they should work for testing.

 

Lynn 

0 Kudos
Message 7 of 7
(4,781 Views)