07-29-2014 10:12 PM
Hello,
I am trying to port a saved scope image on the Tektronix 7000 series scope to a user specified path on the PC using LabVIEW and USB port.
I am successful in saving the image to the scope (can find the file in the local scope hard drive) and port the image to the PC using USB. However, i failed to write the data into binary file.
Please see attached block diagram of my current progress.
Is there a specific command I am missing? Is my method got any mistakes?
Thanks!
07-30-2014 12:39 AM
There are a lot of things that could be going wrong, but you don't know what they are because you are not using your error clusters.
Do you see the data on the input to the binary write? There is also an input to the binary write that specifies whether a byte count will be prepended to the binary data. This needs to be set to false.
Mike...
07-30-2014 12:39 AM
There are a lot of things that could be going wrong, but you don't know what they are because you are not using your error clusters.
Do you see the data on the input to the binary write? There is also an input to the binary write that specifies whether a byte count will be prepended to the binary data. This needs to be set to false.
Mike...
07-30-2014 08:13 PM
Thanks for reply and sorry for reply late. After i add the false to the "prepend array?", it still dnt work, the output of the IVI read is blank. The below are the attachment of the read buffer of READ IVI and the wanted output.
I also got try used VISA READ driver, it also produce blank read buffer. However, when i used VISA READ TO FILE, it succeed to save as png file!! But, in my project, i can only used IVI driver.
Thank you.
Regards,
Chun
07-30-2014 09:21 PM
07-30-2014 10:24 PM
The expected correct input is from the 4000 series oscilloscope using the same method.
The reason why i need to write to file is because i need to save the screenshot in png in pc. Are you have better way to save the png file?
Beside 7000 series, my codes need also work together with other series, so IVI is required.
The below are the connection after cleanning.
Thank you for reply.
Regards,
chun
07-30-2014 10:58 PM
07-31-2014 12:55 AM
The reason why i used IVI driver is because i am building an interchangeble labview GUI for different series of tektronix oscilloscope.
Moreover, IVI driver is unable to used with VISA driver, hence i need to use IVI specific driver for down casting to perform certain functions like sceenshot.
Sorry, there was a bit misleading on my question in the first post. The problem i faced is transfer of screenshot to laptop using SCPI commands with IVI specific driver. The output of read buffer is incomplete/empty as picture below.
The empty output buffer cause the "write to binary file" failed.
Thank you.
Regards,
chun
07-31-2014 06:26 AM
You shouldn't have to save the png to a file on the scope and then transfer it. You can do a direct hardcopy to GPIB or Ethernet and read the data to save it in a PNG file. Here's an example of how I did it with the TDS3000 series scope (commands should be the same):http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Screen-capture-of-Tektronix-MSO4104B-using-La...
07-31-2014 08:59 PM
The codes dnt work for 7000 series oscilloscope. The below are the errors occur if only use hard copy commants.