07-09-2012 04:40 AM - edited 07-09-2012 04:45 AM
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
07-09-2012 08:41 AM
Why are you assuming that the two instruments have identical command sets?
07-09-2012 09:28 AM
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.
07-09-2012 09:40 AM
@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?
07-09-2012 11:28 AM - edited 07-09-2012 11:30 AM
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!
07-09-2012 12:01 PM - edited 07-09-2012 12:02 PM
HARDCopy: PORT
Sets or returns where to send the hard copy data on the next hard copy command
(i.e. HARDCOPY START command).
07-09-2012 08:52 PM
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.
07-09-2012 09:26 PM
Time to contact Tektronix and have them clarify.
07-10-2012 01:52 AM
well, maybe this is the only way. thank you anyway
06-21-2013 01:38 PM
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