LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issues Receiving Pictures from O-Scopes.

Hey,

 

I have a program that communicates with an o-scope. At one point in the program it saves an image of the o-scope’s screen and then sends that to the computer through the GPIB, it loops through this area a number of times based on user input.

 

So the first time you run through the process it works fine but after that the very first loop in the process breaks and the image that is sent to the computer is either a blank image or just half the screen.

 

I have tried adding in timing nodes to slow the program down a bit, thinking that the first image takes longer to save, but that didn’t fix the issue. I have also tried letting the program run through the first loop and not record anything then act as if the second loop was the first loop and that didn’t work.

 

I am at a loss for what to do now, so any help would be very appreciated.

 

Thanks,

Dominic

0 Kudos
Message 1 of 4
(2,233 Views)

You need to post more specifics. Posting your code that receives the image would be very useful as well as the documentation for your scope that defines how the images are formatted and sent to the host.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 4
(2,225 Views)

Here is the part of the code that save the image to the o-scope then sends it to the PC. We save the images as .jpg

0 Kudos
Message 3 of 4
(2,202 Views)

Since the image data is binary instead of ASCII, you could actually have 0x0A in the data.  If so, then the VISA Read will stop there and you do not get all of your image data.  So turn off the termination character before attempting to read and turn it back on once you get all of the data.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(2,196 Views)