Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

get a hardcopy from the oscilloscope tds3034b through ethernet

i'd like to use labview to get a hardcopy from my oscilloscope tds3034b through ethernet.
first, i have tds5054b which has a gpib port, and i could get the hardcopy picture through gpib.
so i think it will be easy to do that with ethernet using 3034b.
when i use the ethernet port to control the oscilloscope, i can send commands to the oscilloscope, such as "hardcopy?", and labview can also read its feedback message"PNG;NORM;FILE;LAN;"fd0:/image.PNG";0;0;0
".
now i send these code behind to oscilloscope 3034b:

hardcopy: filename "fd0:/image.png"
hardcopy: format png;
hardcopy: inksaver off;
hardcopy: layout landscape;
hardcopy: file;
hardcopy: port file;
*wai;
hardcopy start;
filesystem: print "fd0:/image.png", ethernet;

but i can not get the hardcopy picture, the visa read function show me the timeout error.
so, obviously, my pc do not receive any data.

i sent similar code to oscilloscope 5054b:

hardcopy: filename "C:\TekScope\Images\test.png";
hardcopy: image normal;
hardcopy: layout landscape;
hardcopy: port file;
*wai;
hardcopy start;
filesystem: print "C:\TekScope\Images\test.png", gpib;

labview could get the hardcopy picture successfully.but if i change the code (i highlight it in green color), and still send it to 5054b:

hardcopy: filename "C:\TekScope\Images\test.png";
hardcopy: image normal;
hardcopy: layout landscape;
hardcopy: port file;
*wai;
hardcopy start;
filesystem: print "C:\TekScope\Images\test.png", ethernet;

i got the same error of timeout.
i don't know why. wish you give me some suggestions, thanks a lot.

 

this is my block diagram for 3034b

block diagram.png

 

Download All
0 Kudos
Message 1 of 13
(6,531 Views)

Why are you assuming that the two instruments have identical command sets?

 

 

0 Kudos
Message 2 of 13
(6,519 Views)

not really, they just have similar commands. you can find some same commands, but others different. because they all belong to SCPI(Standard Commands for Programmable Instruments). but this is not the key point, i just want to know why tds3034b do not send its hardcopy to pc through ethernet like tds5045b send that through gpib port. it should be noticed that tds5045b have the same problem when it send hardcopy through ethernet.

0 Kudos
Message 3 of 13
(6,515 Views)

@Joe_Chao wrote:

 just want to know why tds3034b do not send its hardcopy to pc through ethernet like tds5045b send that through gpib port. it should be noticed that tds5045b have the same problem when it send hardcopy through ethernet.


Perhaps you should read the manual?

0 Kudos
Message 4 of 13
(6,513 Views)

i had read the programmer manual, but there're only simple descriptions about each commands. my commands sent to oscilloscope were writed according to the programmer manual. and i'm sure there should be no more mistakes about the usage of the commands. other manual, just like user manual and so on, is also useless for this problem.

 

thank you for your attention to my topic!

0 Kudos
Message 5 of 13
(6,508 Views)

HARDCopy: PORT
Sets or returns where to send the hard copy data on the next hard copy command
(i.e. HARDCOPY START command). 

0 Kudos
Message 6 of 13
(6,501 Views)

i can understand your meaning.

maybe you think i should try to send "hardcopy:port ethernet" or "hardcopy:port gpib" to my oscilloscope, and then use "hardcopy start" to get the hardcopy directly from the communication port i set. i have had a try before, and there response nothing but a timeout error. at least, there is no response when i use ethernet as the communication port.

 

besides, i found a mistake of my code just now:

 

hardcopy: filename "fd0:/image.png"
hardcopy: format png;
hardcopy: inksaver off;
hardcopy: layout landscape;
hardcopy: file;
hardcopy: port file;
*wai;



hardcopy start;
filesystem: print "fd0:/image.png", ethernet; 

 

 "hardcopy: file" is a wrong command, but this command will not cause an error.

0 Kudos
Message 7 of 13
(6,492 Views)

Time to contact Tektronix and have them clarify.

 

 

0 Kudos
Message 8 of 13
(6,486 Views)

well, maybe this is the only way. thank you anyway

0 Kudos
Message 9 of 13
(6,479 Views)

Hi,

 

I have been trying to do something similar, but I have been unsuccessful.

 

I am looking for a way to get a hardcopy through ethernet or GPIB on Tektronix 3034B.

 

I am able to make a hardcopy to a floppy, but for convieniece, I'd like to be able to port the file directly to the machine that is running the code for the scope.

 

Please let me know if this is even possible.

 

-Daniel

0 Kudos
Message 10 of 13
(6,133 Views)