Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with reading waveform from TDS 3052 scope via AD007 adapter

Hi,

 

I'm trying to read waveform from TDS 3052 via AD007 GPIB-ENET converter. I'm setting VISA Open timeout to 50, Timeout to 2000, buffer size using VISA Set I/O Buffer Size to 48, TCP KeepAlive as true and all this tricks do not work. I can't read waveform from scope. I'm getting an error nr -1073807339.

It's strange that setting of parameteres works correctly (like setting type of acquisition or trigger level).

I tried setting bigger timeout and it didn't work. I suppose that the reason is to big size of read waveform.

I have no ideas what to do.

 

Thanks for your ideas,

Paweł Kowalski

 

0 Kudos
Message 1 of 9
(4,644 Views)

-1073807339 == BFFF015 and means timeout error. The scope is not responding. Does the scope respond to an *IDN? query ? How do you setup the scope before querying the waveform data ? Is it triggered ?

0 Kudos
Message 2 of 9
(4,610 Views)

Thanks for replying and sorry for responding so late.

 

Scope respond to an *IDN? query. There is a simple .vi with configuration in attachments which I use to read data from scope. Do you have any idea what may be wrong?

0 Kudos
Message 3 of 9
(4,524 Views)

You mentioned setting type of acquisition and trigger level but none of that is in your code. Nor is there an initiate function to start an acquisition. You can't read what is not there. Have you run any of the examples that come with the driver?

0 Kudos
Message 4 of 9
(4,519 Views)

Setting of type of acquisition and trigger level I had in another program. I modified .vi and added this functions. Initialization of scope doesn't help or I just do it wrong. I'm beginner. 

 

There is waveform saved in REF1 channel. 

 

In screenshot attached to post you can see bahavior of my .vi.

 

I will look at examples more carefully. Thanks.

Download All
0 Kudos
Message 5 of 9
(4,508 Views)

I didn't say initialize - I said initiate.

 

I've been using that scope every day for the last couple of days without a problem though I'm not reading a reference. All the code is on my other pc though, and I can't look at the details of yours right now.

 

Yes, try the simple single channel acquisition.

0 Kudos
Message 6 of 9
(4,505 Views)

Hi flukson,

 

Did You manage to solve this issue so far? Did You try to read just limited amount of data (i.e. one channel and just few samples)?

 

Best Regards,

Wojciech Sommer.

National Instruments

Applications Engineer

0 Kudos
Message 7 of 9
(4,432 Views)

 


@wojciechsommer wrote:

Hi flukson,

 

Did You manage to solve this issue so far? Did You try to read just limited amount of data (i.e. one channel and just few samples)?

 

Best Regards,

Wojciech Sommer.

National Instruments

Applications Engineer


 

I think I have a related problem.

I am trying to control this same model (TDS 3052B) connected via an ethernet port. It pings but when I run the Initialize.vi I got the same timeout error. To solve this I tried reducing the number of bytes the VISA Read read during the ID query.  Now it returns "f    " which does not match what the VISA read vi tries to compare it to so ID query fails.

 

Do you know what I can do to solve this?

0 Kudos
Message 8 of 9
(4,206 Views)

@notimperial wrote:

 


@wojciechsommer wrote:

Hi flukson,

 

Did You manage to solve this issue so far? Did You try to read just limited amount of data (i.e. one channel and just few samples)?

 

Best Regards,

Wojciech Sommer.

National Instruments

Applications Engineer


 

I think I have a related problem.

I am trying to control this same model (TDS 3052B) connected via an ethernet port. It pings but when I run the Initialize.vi I got the same timeout error. To solve this I tried reducing the number of bytes the VISA Read read during the ID query.  Now it returns "f    " which does not match what the VISA read vi tries to compare it to so ID query fails.

 

Do you know what I can do to solve this?


question moved to here: http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/How-to-control-Tektronix-TDS3052B/m-p/1612114

0 Kudos
Message 9 of 9
(4,192 Views)