GPIB instrument Screen Capture in Definite Length Block format

Need help for a person wanting to convert to LabView!
I need to do a screen capture of an Agilent spectrum analyzer (Model 4408B) and this SA will output an image in JPEG in 488.2 Definite Length Block format. This means the JPEG file will have a header that starts with a "#", is followed by a single digit that gives the length of a following count field, and then the count field, which gives the length of data being sent. For example, to send a block of 1024 bytes, the header would have the form "#41024".
We do a lot a screen captures in our testing, so we have a many programs in Agilent VEE to do this on a routine basis. In VEE, there is a function called Read BINBLOCK which reads the image data and strips of the header mentioned above before we write the data to a file.
I started to port this program to Labview to see if we can speed up our testing (in general, not for screen capture). So with Labview 6, I use the "GPIB Read" function to read the image data from the GPIB bus, then write the data into a file. But using a probe, I found that header mentioned above is still there and any image program wouldn't read the image file at all (Can't Open or Can't Determine Type). Furthermore, the "Write File" function in Labview adds some additional header before the "#41024"-type header mentioned above.
By the way, I tried the GPIB function "RECEIVE" instead of the "GPIB Read" function above and got exactly the same result.
So the problem has 2 parts:
1. Is there a way to read, or receive, Definite Length Block data from the GPIB bus (similar to VEE's Read BINBLOCK function).
2. Is there a way to prevent Labview's "Write File" function not to add some other header of its own to the saved file.
NOTE: In the "Write File" function, I experimented with using a Pos_Offset value ranging from 1 to 8, in order to get rid of the header caused by part 1 above. But anytime the Pos_Offset value is greater than zero, the saved file will be empty!
I appreciate any help from the Labview community for this seemingly simple problem.

Ray K., you are a scholar and a gentleman! I appreciate your extremely helpful suggestion.
I tried your suggested VI to strip off the header portion added by the 488.2 Definite Length Block format, and with a little modification, it works like a charm. The only thing is that I have to use the "RECEIVE" function (the "GPIB Read" function wouldn't work). But "RECEIVE" works beautifully, and that's what counts.
The only minor issue is that you have to set the Byte Count of the "RECEIVE" function to tell it the size of the file being received. If Byte Count is not wired, no data will be recieved, even if you set the mode to 1 or 2 to detect the end of file. If Byte Count is set to a number greater than the actual file size, it will work OK. In this case,
I know the file size so I can set Byte Count correctly. But is there a way for the "RECEIVE" function to detect automatically the End of File so that I don't have to fumble around with Byte Count? As I said, I set Mode value to to 1, 2, or other values but that wouldn't work either.
Both the "Write File" function (with Header set to False, which is the default) and the "Write Characters to File" VI work perfectly as you pointed out.
My only remaining question is why "GPIB Read" wouldn't work (with any value of Mode setting and Byte Count) while "RECEIVE" function works. "GPIB Read" did receive the GIF file, but it can't be opened.
Thank you for your great help.

Similar Messages

  • Screen capture and PNG format?

    Hi,
    When I use the screen capture feature (SHIFT  4) I always get a *.PNG file. Is there a way to setup the screen capture to a JPG file format as default?
    Thanks

    I dont think so. I know that the Grab utility can save as TIFF, but I am not aware of it being able to save as JPEG.
    However I believe that you can use Preview to export the screen image to a JPEG file. However this is not exactly what you want.
    I know OSX has some frustrating features, and in some areas and ways I miss OS 9. But then again screen capture to JPEG was not available in OS 9 without third party software.

  • Screen Capture File Format

    Does anyone know a way to change the default file format in the Mac OS screen capture utility to a different format other than PNG? Thanks.

    cbenham wrote:
    Does anyone know a way to change the default file format in the Mac OS screen capture utility to a different format other than PNG? Thanks.
    There are two default screen capture mechanisms in Leopard:
    The direct ⌘ shortcut, and the application, grab.
    I presume you are referring to the ⌘ shortcuts since the default for grab is tiff
    ⌘-Shift-3 = Screen
    ⌘-Shift-4 = Selection
    ⌘-Shift-4 + Spacebar = Window
    To change the format, in a terminal enter
    defaults write com.apple.screencapture type image_format
    where "image_format" can be
    tiff
    jpg
    pdf
    and possibly others.
    When using the terminal, you are on your own and if you are unfamiliar with it, be very careful.
    Message was edited by: nerowolfe

  • How can I create a PNG or JPG screen capture or screenshot of the entire length of a long email message?

    Hi all,
    I need to create screenshots of emails, but I need to image the entire length of those emails. Can I using Mail or any other email application? Here is what I have tried so far ...
    I can only do a screen capture of the portion of the email that shows up on my 27" Mac. I can reduce the size of the emails somewhat, but usually not enough to capture their entire length.
    I tried going through Gmail using Firefox + Awesome Screenshots plugin, but couldn't get Gmail to open entire page so as to capture it. Normally I view this Gmail account using Apple Mail.
    "Printing" to a PDF is not an acceptable solution for my needs, because that changes the native formatting to fit the print / pdf format. I need to show the exact email layout as thought it were an actual email.
    Any ideas? Thaks for your help.
    Marco
    27" iMac
    Mountain Lion OS X 10.8.5 (12F45)
    3.4 GHz Intel Core i7
    4 GB 1333 MHz DDR3
    AMD Radeon HD 6970M 1024 MB

    Installed ScreenGrab add-on to Firefox and, sorry, it still only captures the window to the extent that it is open, and there is no way that I know to open an email window in Gmail so as to show the netire lengthof a long email message.
    So, ScreenGrab helped me get more screen capture of an email, but still not yet the entire email. I used Save>Complete Page/Frame, but still no more than what is visible.
    I'll keep looking. And thanks for your suggestion Sabatica.

  • What is the recommended length of the cable in between the GPIB instrument and GPIB-USB card.

    hi,
    we are planning to use GPIB-USB Controller in our application by replacing the existing GPIB-PCI controller. Our GPIB instrument doesn't have the standard IEEE GPIB Connector. So, we will have to connect one more cable in between GPIB-USB controller and the GPIB Instrument. I just want to know what is the recommended lenth of the cable that can be connected in between the GPIB instrument and the GPIB-USB card. Could anybody please help me?
    Thanks,
    Rajaram

    Page 730 in the 2001 catalog gives detailed cabling requirements for the GPIB bus. It's usually best to keep the length 2meters or less.
    Randy Solomonson
    Application Engineer
    National instruments

  • Importing a high definition clip, fps 25, from Koyote screen capture, becomes bad in Elements

    Hi,
    I am running Adobe Elements 11 and have one irritating problem. I make a perfect on screen recording but when I import the .avi to elements some things just become poor. For example when I scroll a window while recording it just becomes a weird buzz and laggy. The raw file is flawless but when imported this happens.
    Thankful for any help,
    Arash

    Screen capture software sometimes/often/??? uses ODD information in the video file that causes problems when trying to edit
    First, Exactly what is INSIDE the video you are editing?
    Codec & Format information, with 2 links inside for you to read http://forums.adobe.com/thread/1270588
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30 for screen shot instructions
    Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download
    Second, some links I've saved about screen capture... not the program you are using, but the information MAY help
    NOTE - do NOT use a Variable Frame Rate capture setting !!!
    Free Open Source software http://camstudio.org/
    -use with Lossless Lagarith http://forums.adobe.com/thread/875797
    http://www.pixelmetrics.com/
    Some of these notes are for Premiere Elements, but may help with PPro
    Fraps & Elements http://forums.adobe.com/thread/967201
    -and Elements preset http://forums.adobe.com/thread/943772
    -and more Elements http://forums.adobe.com/thread/871095
    Camtasia http://forums.adobe.com/thread/836800
    -and Lagarith Codec http://forums.adobe.com/thread/1287577
    -and http://forums.adobe.com/thread/775288
    -and http://forums.adobe.com/thread/453044
    -and http://forums.adobe.com/message/3202148
    Techsmith codec http://forums.adobe.com/message/3692768
    -and http://forums.adobe.com/thread/1046914?tstart=0
    BB Flashback http://forums.adobe.com/thread/1074014
    XSplit recorder http://forums.adobe.com/thread/1160940
    Elgato http://forums.adobe.com/thread/1163126 w/picture
    Dxtory http://forums.adobe.com/message/5172056
    Bandicam read #10 http://forums.adobe.com/thread/954394
    Hauppauge MPEG-2 TS http://forums.adobe.com/thread/1285168
    -and http://forums.adobe.com/thread/1289304 for MANY links

  • Help transferri​ng a screen capture file (.gif) of an Agilent E4443A to a PC over GPIB???

    I'm currently using an Agilent PSA Series Spectrum Analyzer E4443A which has an internal HD, but not accessible via LAN like the newer Window based Analyzers. I've read the programmer's manual and tried the examples, but no luck. I'm able to send the command in Labview to capture the screen using ":mmem:stor:scr 'C:mal.gif' " and that work's fine. I'm having trouble with using the " :mmem:data? 'C:mal.gif' " Not sure how to handle VISA read calls to get the data to a file. Example attached.
    Mal G.
    Test Engineering
    Empower RF Systems Inc.
    Attachments:
    mal_g_gif.vi ‏13 KB

    smercurio_fc wrote:
    雪飘人间and梅 wrote:
    I have the same problem with Agilent E4447.
    With the command "MMEMTOR:C\111.GIF", I can store the .gif file to the E4447 C Drive, but how to transfer the picture to my PC?
    See here: http://forums.ni.com/t5/LabVIEW/Agilent-E440x-Spec​trum-Analyzer-screen-capture/m-p/361469
    I want remote command for save screen shot in .gif and tranfered to local PC means Remote PC. I am using C#.NET for remote accessing.
     I dont want use any Drivers,lib.
    Thank you in Adavance

  • Semaphors to synchronize several GPIB instruments?

    Hello,
    I have to develop a programm to diplay three different GPIB instruments on screen. The instruments should also be switchable between different modes. Thus, I have write and read access from time to time (of course read dominates to capture data).
    I managed to program every single instrument with open/read/write/close VISA quite well, but when I first tried to implement two instruments in a block diagramm, I got error messages which disappeared when I switched to the slow highlighted execution. So I think there´s a problem with read an write access to the GPIB.
    I now implemented semaphors to encapsulate every read and write access and it works.
    Now, eventually, my question:
    Is it common to use semaphor
    s with GPIB access?
    Should everything work without semaphors, which means that the architecture of GPIB should prevent such errors?
    If you need additional information please let me know...
    Thanks for any answer,
    Andreas

    Andreas:
    Needing synchronization is a very common issue because if one area of code writes a query, and then another section of code comes along and does a query, there are a couple of issues:
    1) In most 488.2 instruments, the response to the second query will overwrite the response to the first query. Only one of the two pieces of code (depending on which runs next) will get that response.
    2) Even if the instrument generates two responses, it is possible the pieces of code will be interleaved, generating strange results. For example, write A1, (context switch), write A2, (context switch), read A1, (context switch), read A2.
    There are several solutions. You can use LabVIEW semaphores, which you have done. You can also use VISA locks, which do p
    retty much the same thing, as long as each section of code has its own session. If you use the same session in both pieces of code, then VISA locks wouldn't help you.
    So since your solution works as is, keep it. It's good, it's needed in your case, and it's the right thing to do.
    Dan Mondrik
    National Instruments

  • Desperate user need help. My GPIB instrument get stuck with my labview program frequently

    Hello to all labview users,
    i am a beginner in using labview. I am currently writting a labview program to automatically control a digital control rotator HD201e and a network analyzer 8720a to work with the anechoic chamber. The program receives an initial position, amount of increment and # of steps. My program will then ask the controller to rotate to the initial position and at the meantime, the program will monitor the position of the rotator to ensure the requested position is reached. After that, at the position, the program will ask the NA to perform a reading of the measurement. Once the reading is done, the program will ask the controller to rotate to the next position and does a reading of the measurement and so on.
    My program seems to be able to perform the tasks; however, the dig.controller part seems to get stuck around 50% of the time when running the program. Sometimes, even the controller receives the requested position (can be seen from the lcd screen of the controller), the rotator just simply would not rotate; also, sometimes, the controller just simply does not respond when sending the command of moving a position, as in the debug mode (the one with a lightbulb), i see that i got "ok" on all the blocks in the writing portion ofthe program, but the controller just doesnt seem to receive the position (as seen no new position received from the lcd screen) and the cursor on the lcd screen blinks weirdly, due to that problem, my program will then get stuck in an infinite loop.....
    Usually, that problem occurs after few positions have been reached.....
    so, when that happens, i have to stop my program and re-run it. that means the program will have to re-do the measurement that were read previously....
    sometimes i have to stop and re-run my program several times to get all the measurement of all the positions done.....so...that bug renders that program to be an unefficient program.
    I have been trying to resolve that bug for weeks...but no success....i have tried to put some wait time between each block....result is not much different...
    I have also tried putting "clear" block before and after the "write" block.....same problem.....
    I have heard that the serial GPIB "flush" block may help...but i tried..but it seems the controller doesnt recognize/accept flush....
    i have also tried using the "Visa open" and "Visa close" block to see if ithat reduces the stucking thing....but seems that the controller can still get stuck....
    i have also even tried using "lock asyn" and "unlock asyn" block...but didnt seem to work....
    Has anyone experienced such problem.? Is it a known problem with some gpib instrument?
    Is there any discrepancy or bugs in my program that i am unaware of that causes this problem?
    Any advice and or opinion would be greatly appreciated....
    PS: i attached the controller part of my program and the overall program
    desperate happyguy......
    Happy guy
    ~ currently final year undergraduate in Electrical Engr. Graduating soon! Yes!
    ~ currently looking for jobs : any position related to engineering, labview, programming, tech support would be great.
    ~ humber learner of LabVIEW lvl: beginner-intermediate
    Attachments:
    HD201_Controld.jpg ‏231 KB
    AChamber_Measurements_v1d.jpg ‏857 KB
    AChamber_Measurements_v1d3.jpg ‏463 KB

    hi xseadog
    i got what you meant about the gpib reference
    actually, that final frame works because the gpib reference is already done inside that subvi.
    but my problem doesnt arise from that. most of the time ive seen, it arises between the writing frame and the while loop frame. as i mentionned, sometimes. the controller just simply doesnt rotate even i can see the requested position display on the controller lcd screen; also sometimes, just the controller is stuck without acknowledging the write position command. but in labview...while in debug mode. it is shown ok on the block.
    Happy guy
    ~ currently final year undergraduate in Electrical Engr. Graduating soon! Yes!
    ~ currently looking for jobs : any position related to engineering, labview, programming, tech support would be great.
    ~ humber learner of LabVIEW lvl: beginner-intermediate
    Attachments:
    HD-201 RPosd.jpg ‏39 KB

  • Getting time expired error in labview while getting screen capture

    Hello,
    I have to capture a screen shot for Agilent's Spectrum analyzer, ESA series. But Whenever i run the program i always get time expired before operation is completed. I am attaching the program and also screen-shot of program. If anyone can solve this problem i would be very glad.
    Thanking you all...
    Pals
    Solved!
    Go to Solution.
    Attachments:
    PSA Screen Capture via GPIB.jpg ‏39 KB
    VISA Read Binary Block Data to File.jpg ‏48 KB
    PSA Screen Capture via GPIB.llb ‏91 KB

    Hi, 
    I tried to increase the time out but it didnt work. i am trying to read 1 byte at a time... So is it ok?
    Thanks so much....
    Attachments:
    PSA Screen Capture via GPIB.jpg ‏39 KB
    VISA Read Binary Block Data to File.jpg ‏48 KB

  • Mavericks Screen Capture causes spinning beach ball

    Trained by experience never to install a brand new operating system on top of a perfectly functioning one (unless I want to risk many wasting times and losing productivity), to test out the new Mac OS, I installed Mavericks on an external FireWire drive by upgrading a fresh install of Snow  Leopard, updated to its maximum version. Nothing else was on the volume, for I had used Disk Utility to securely erase and content and overwrite the volume with zeros.
    Immediately after the Mavericks, I looked at the System Profile, taking some screen captures of selected windows. While Mavericks successfully captured the screens, it failed to display them when I selected one and hit the space bar. Instead, mavericks presented a perpetually spinning beach ball that prevented me from doing anything else on the Mac. I was forced to shut down.
    Upon restart back into Mavericks, I encountered the same problem. I had to force power off again.
    After rebooting into Mountain Lion on my internal hard drive, I ran a complete series of hard drive maintenance utilities involving all the tools I have, including Disk Utility, Drive Genius, Disk Warrior, and Tech Tool Pro. All ran successfully and reported no problems. I then capped things by running iDefrag to eliminate file fragmentation and to optimize the volume. With several hours of labor invested in preparing the external hard disk, downloading Mavericks' installer, running the Mavericks installer, performing all the pertinent maintenance routines I could think of, and finally optimizing the volume, which has no other software on it besides the new Apple operating system, I restarted the Mavericks volume. I then took a fresh screen capture, selected it, pressed the space bar, and I still got that infernal spinning beach ball.
    I let it run for at least half an hour as I returned to watching a football game, hoping things would finally get cleared up. They did not. The ball still spun. I could not even get to the Finder to peek into the Force Quit command under the Apple icon. So, as originally condemned, I was compelled to hold down the power button to regain control of my computer, which this new, appropriately named operating system had wrested from me.
    Anyone having a similar problem? Anyone aware of a sure-fire solution, other than to avoid relying on this new operating system, which must be my policy until such glitches get fixed?
    At least you know now why I consider it unwise to install a brand new OS atop of one that has served you well.

    OK, it’s Wednesday now, late afternoon, following a long yesterday, spent exclusively on getting Mavericks installed, a day which continued well into night, approaching the sun rise, until I collapsed. No one can tell me that the Mavericks installation is without errors! Your mileage may differ, if you’re lucky. But if you had to go through what I just did, you’ll long for the days of System 7, when all you had to do was shove a half-dozen floppy disks into a floppy drive to get your Mac up and running without such angst.
    SHORT ANSWER:
    After many twists and turns that Apple should have foreseen and not inflicted upon customers, I finally managed to get Mavericks installed on my external Firewire hard drive.
    I did follow your lead, Baltwo, that the nature of the problem might lay in corrupt preferences files on the primary Account, but, as I attempted a couple of days, I modified your suggestion that I cherry-pick which plist files might be good vs. which might be corrupt, by deleting the whole **** account. A couple of days ago, my intuition told me that doing that was the wiser way to proceed;  today I felt compelled to do exactly that, because I had no other choice.
    The reasons I had to do that is elaborated upon below.
    LONGER EXPLANATION and DETAILS:
    As I explained in the message I composed on Tuesday morning, I felt so insecure that I did not obtain a well-functioning operating system that I had decided to start the installation all over from scratch.
    It took all day Monday to again use Disk Utility to securely erase the volume and prepare it for the new installation. When I tried to short-cut the process by doing a Quick Erase, the volume refused to accept the installation of Snow Leopard 10.6.3 from the DVD. On top of that, I again encountered difficulties in installing Snow Leopard from the DVD, because the installer just could not close the deal. The gauge runs up to the 99% mark, and it hangs there saying that it is “Moving items into place.” Sure, it is!
    I’m a patient guy, so I let the installer do its thing for about four hours while I watched the World Series game. (Yeah, Red Sox!) But by the time the game was over, so was my patience. I had to Force Power Off the Mac and restart it.
    Since I have no confidence in an operating system whose installer failed to do its job properly, I felt that I had to do more. Before I did that, though, I did a Google search to find out if my experience was unique. It is not! The forums are full of people who have complained about this very same hanging problem ever since the Snow Leopard DVD was released. Great, I thought. Now what do I do?
    I decided to the Apple support site and download the 1.x GB combo updater to Snow Leopard 10.6.8 in the hopes that the upgrade process would cure whatever issues cropped up during the incomplete installation by the DVD. After downloading that combo disk image, installing 10.6.8, restarting the Mac under 10.6.8, and getting all the software updates applicable to that version, a few tests, supplemented by a running a whole barrage of maintenance utilizes to fix permissions, repair the disk, rebuilt the directory, seemed to indicate that I did finally achieve a solid installation of Snow Leopard 10.6.8 and all its trimming.
    To save myself any future agony of having to go through this kind of winding road installation again, I used SuperDuper to create a disk image of the entire volume.  That disk image is stored on another Firewire volume, ready to burned at some future date onto a BluRay disc for safe-keeping and backup.
    With Snow Leopard safely installed on the volume and sporting one user Account, I was ready to use the Mavericks installer package that I had downloaded last Saturday, when I first began this process, to upgrade to Apple’s latest and greatest OS. Unfortunately, the installation process failed in the same way that the Snow Leopard installer failed. The installer just could not get over the hump of closing the deal. Once I got the installer started, I went to bed.
    Four hours later, the installer still had not completed its job, again getting to the 99% mark, and just hanging there. Again, I had to Power Off the Mac. Upon restarting with the Option held down, I elected to start up using the built-in Recovery feature.
    That seemed to work, but only sort of. I was able to get a Mavericks desktop, but the User account had absolutely no privileges to do a **** thing. It could not open its own Home folder to see what was in it. It could not complete the screen capture process, because I had no permission to save the picture anywhere, like on the Desktop.
    In System Preferences, I tried to increase the size of the cursor, but that failed. In Finder preferences, I tried to make the hard drives show up on the desktop, but that failed, too. I ran permissions in Disk Utility; that did no good. Nothing worked! I could not even change anything related to my User account, because I had no permission to do so. Imagine that: my only account was an Administer account to which I had no access. I would not have thought such a thing could be possible.
    I was caught in a loop, stranded on a Mobius Strip, walking on the wild side, surfing the waves of a brand new operating system corrupted by its own installation process.
    Not a good thing at all.
    Since the first installment had also resulted in a bizarre set of user accounts ending up with QuickLooks being declared the winner of a new account the system decided to create for me, I think it is reasonably safe to conclude that there is some kind of a bug, or flaw, in the Apple upgrade / installation procedure that needs some attention by Apple system engineers. None of this kind of stuff I have delineated at some length should be happening to anyone who owns a Mac.
    And, Baltwo, even though I had kept uppermost in my mind your suggestion about creating a new account merely to ferret out which preference files might be corrupt and which might be OK, I decided that I did not want to take any chances at all with this extremely messed User account, which had worked fine in Snow Leopard, but had somehow got corrupted during the upgrade. So, as before, I decided to (1) create a brand new Administrator account; (2) log out from the useless User account in which I had no privileges whatsoever; (3) log in with the brand new Adminstrator; and (4) delete that useless User account entirely, completely, and forever.
    At first, I was a little hesitant about deleting the first Administrator account that existed in my Users and Groups pane. I did not even know if such a thing could be done. So, I referred to my David Pogue reference books, and I did a Google search for “Delete Home User Mac” to see what others knew about this. Everyone described the standard way to delete an account; no one even mentioned any prohibition about deleting the original User account. So, I went ahead and deleted it, without encountering the slightest problem in doing so. I even followed up with before and after Terminal commands to see if that useless User account was truly gone, and it definitely went poof. Since I lacked permissions to create any documents at all within that former Home folder, getting rid of it was easy. I think that the System was just as glad to trash it as I was.
    Hopefully, whatever corruption occurred during the Mavericks installation and upgrade process was restricted to the preference files associated with that messed-up, original Administrator account so that I can begin exploring Mavericks with a perfectly pristine operating system. Before I start tweaking it or adding stuff to it, my next step will be to use SuperDuper to create a disk image of the entire volume, so that, in the future, I will have a clean set of system of file to install on this external Firewire volume, or on any other internal hard drive I choose to install Mavericks later on. A Bluray disc will contain that disc image for safekeeping when it’s time to remove it from the destination volume where it gets created.
    As to the tardiness of my reply, it is caused by the exorbitant amount of time—four days!—it took me to trek along this twisting, winding path of installing Mavericks, as well as a glitch in the mismatch of similarly looking User Names associated with similarly looking Apple ID accounts and similarly looking User Names associated with nearly identical Email Addresses that do not convert from one to the other, as, for example, mac.com does to me.com.
    As I learned from Apple Staff who responded to my report that I was being locked out of the Apple Discussions community, there are four pieces of information that must match up for each Apple ID account, and my data had slipped out of sync. Now I know why, during Apple’s changeover in the formatting of the Apple Discussions section, I lost all those “points” I had accumulated in helping others, not that I track such things, and I could not find where my previous discussions were.
    That’s also why I may be able to award anyone points for helping me in this thread, but I’m dialing in under the “other” Apple ID, not the one I used to create this topic. Close readers will observe the slight difference.
    Thanks a lot, Baltwo. You get the credit for pointing me in the right direction.

  • Agilent E440x Spectrum Analyzer screen capture?

    Does anyone have a LabView VI to do a screen capture of an Agilent E440x Spectrum Analyzer.  I would like to capture a .gif or .jpg of the exact SA screen image.  I did not see a command in Agilent's manual to do this directly - I can save to the SA hard drive but want to save to the PC.

    jm-sc wrote:
     did not have any luck wiring the byte count output of the VISA write to the VISA read byte count input.
    Thanks Dennis,
    I think old age is catching up to me!!     I missed that part of the sentence earlier...  sorry about the confusion.  I agree that wiring the output of the VISA Write to input of VISA read would not worked.. 
    My interest with this thread is the fact that we were unsuccessful (~2001) to achieve this.  I'm curious in a solution that works.  From what I recall, it was possible to control the instrument to get a screen capture, but was not possible to transfer it over GPIB.
    It's always good to learn new tricks. 
    JLV

  • Robot screen capture problem on Mac os 10

    Dear all,
    I perform a screen capture with jframe size.The background capture is ok but i have a line border around the rectangle determined by the capture and a shadow in capture background..
    How to remove the line border of capture, and suppress the shadow on mac ....
    Thanks in advance for all helps..
    package nomadsland.splashWindow;
    import java.awt.AWTException;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Rectangle;
    import java.awt.Robot;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.image.BufferedImage;
    import java.awt.image.ConvolveOp;
    import java.awt.image.Kernel;
    import java.io.IOException;
    import javax.imageio.ImageIO;
    import javax.swing.JWindow;
    import javax.swing.Timer;
    public class ShadowedWindow extends JWindow {
        private BufferedImage splash = null;
        public ShadowedWindow(BufferedImage image) {
            createShadowPicture(image);
        public void paint(Graphics g) {
            if (splash != null) {
                g.drawImage(splash, 0, 0, null);
        private void createShadowPicture(BufferedImage image) {
            int width = image.getWidth();
            int height = image.getHeight();
            int extra = 14;
            setSize(new Dimension(width + extra, height + extra));
            setLocationRelativeTo(null);
            Rectangle windowRect = getBounds();
            splash = new BufferedImage(width + extra, height + extra, BufferedImage.TYPE_INT_ARGB);
            Graphics2D g2 = (Graphics2D) splash.getGraphics();
            try {
                Robot robot = new Robot(getGraphicsConfiguration().getDevice());
                BufferedImage capture = robot.createScreenCapture(new Rectangle(windowRect.x, windowRect.y, windowRect.width + extra, windowRect.height + extra));
                g2.drawImage(capture, null, 0, 0);
            } catch (AWTException e) { }
            BufferedImage shadow = new BufferedImage(width + extra, height + extra, BufferedImage.TYPE_INT_ARGB);
            Graphics g = shadow.getGraphics();
            g.setColor(new Color(0.0f, 0.0f, 0.0f, 0.3f));
            g.fillRoundRect(6, 6, width, height, 12, 12);
            g2.drawImage(shadow, getBlurOp(7), 0, 0);
            g2.drawImage(image, 0, 0, this);
        private ConvolveOp getBlurOp(int size) {
            float[] data = new float[size * size];
            float value = 1 / (float) (size * size);
            for (int i = 0; i < data.length; i++) {
                data[i] = value;
            return new ConvolveOp(new Kernel(size, size, data));
        public static void main(String[] args) {
            try {
                 BufferedImage image = ImageIO.read(ShadowedWindow.class.getResourceAsStream("loginPanelGeneric.png"));
                ShadowedWindow window = new ShadowedWindow(image);
                window.setVisible(true);
                Timer timer = new Timer(5000, new ActionListener() {
                    public void actionPerformed(ActionEvent evt) {
                        System.exit(0);
                timer.start();
            } catch (IOException e) {
                e.printStackTrace();
    }Thanks you in advance for any help...

    Dear all,
    I perform a screen capture with jframe size.The background capture is ok but i have a line border around the rectangle determined by the capture and a shadow in capture background..
    How to remove the line border of capture, and suppress the shadow on mac ....
    Thanks in advance for all helps..
    package nomadsland.splashWindow;
    import java.awt.AWTException;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Rectangle;
    import java.awt.Robot;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.image.BufferedImage;
    import java.awt.image.ConvolveOp;
    import java.awt.image.Kernel;
    import java.io.IOException;
    import javax.imageio.ImageIO;
    import javax.swing.JWindow;
    import javax.swing.Timer;
    public class ShadowedWindow extends JWindow {
        private BufferedImage splash = null;
        public ShadowedWindow(BufferedImage image) {
            createShadowPicture(image);
        public void paint(Graphics g) {
            if (splash != null) {
                g.drawImage(splash, 0, 0, null);
        private void createShadowPicture(BufferedImage image) {
            int width = image.getWidth();
            int height = image.getHeight();
            int extra = 14;
            setSize(new Dimension(width + extra, height + extra));
            setLocationRelativeTo(null);
            Rectangle windowRect = getBounds();
            splash = new BufferedImage(width + extra, height + extra, BufferedImage.TYPE_INT_ARGB);
            Graphics2D g2 = (Graphics2D) splash.getGraphics();
            try {
                Robot robot = new Robot(getGraphicsConfiguration().getDevice());
                BufferedImage capture = robot.createScreenCapture(new Rectangle(windowRect.x, windowRect.y, windowRect.width + extra, windowRect.height + extra));
                g2.drawImage(capture, null, 0, 0);
            } catch (AWTException e) { }
            BufferedImage shadow = new BufferedImage(width + extra, height + extra, BufferedImage.TYPE_INT_ARGB);
            Graphics g = shadow.getGraphics();
            g.setColor(new Color(0.0f, 0.0f, 0.0f, 0.3f));
            g.fillRoundRect(6, 6, width, height, 12, 12);
            g2.drawImage(shadow, getBlurOp(7), 0, 0);
            g2.drawImage(image, 0, 0, this);
        private ConvolveOp getBlurOp(int size) {
            float[] data = new float[size * size];
            float value = 1 / (float) (size * size);
            for (int i = 0; i < data.length; i++) {
                data[i] = value;
            return new ConvolveOp(new Kernel(size, size, data));
        public static void main(String[] args) {
            try {
                 BufferedImage image = ImageIO.read(ShadowedWindow.class.getResourceAsStream("loginPanelGeneric.png"));
                ShadowedWindow window = new ShadowedWindow(image);
                window.setVisible(true);
                Timer timer = new Timer(5000, new ActionListener() {
                    public void actionPerformed(ActionEvent evt) {
                        System.exit(0);
                timer.start();
            } catch (IOException e) {
                e.printStackTrace();
    }Thanks you in advance for any help...

  • Premiere shows artifacts in screen-captured footage

    Hi,
    I get artifacts in my screen-captured footage (camstudio, lossless codec) that doesnt seem to appear on other peoples systems. tried different framerate-settings in camstudio, but always get premiere displaying it faulty.
    Premiere also tells me that there are several empty frames in my footage, although AfterEffects and the win media player preview it without problems.
    Export from AE gives the same results though..
    I record at 1024x768 with 30fps and also use these settings for my project. i also set square pixels, progressive-scan, 30fps-timecode, videoforwindows and no compression (same prob w lossless codec)
    im definitely a newbie so don't hesitate to point out the most obvious mistakes one could possibly make :) thanks for your time!

    Well, in general this seems to work.
    one more question though: I foolishly captured some footage at 200fps which I will hardly be able to shoot again. now when i let VDub revamp it to 30fps it just seems to play my 200fps footage at a 30fps rate,which is of course too slow. is that what the video>framerate option in VDub actually does, just stretch the footage?
    I figured, i'd just take the original 200fps footage to AP and let it export to a 30fps clip. seems to work if i use the indeo compression.
    recapitulating (for who ever cares):
    - original capture: 1024x768 at up to 200fps...
    - taking it to VirtualDub for recompression to huffyuv, to get rid of artifacts
    - exporting from AP at 30fps with Indeo codec
    awesome so far. any tips on improvement? thanks for now anyway!

  • How to display PSA screen capture on Front Panel

    Any one know how to display screen capture of PSA series specturm analyzer on front panel. I can save the JPEG file in the C drive, but I can't display on the front pannel. Please see my labview code.
    Solved!
    Go to Solution.
    Attachments:
    Capture screen E4446A.vi ‏21 KB
    reading and writing binary number.vi ‏22 KB
    yumg.jpg ‏20 KB

    Do you actually need to save the front panel image?  Or do you want to save a graph of the signal (spectrum) that you acquired?  If the latter will do the trick, you can simply read the waveform over GPIB (or whichever means you control the analyzer) into an array that is plotted to a waveform graph in LabVIEW.  You then save the image of the waveform graph as an image.
    Since you have all the data, you can even save the data which can be viewed later (and not only by LabVIEW).

Maybe you are looking for

  • How to reposition an image in Pages 5.0?

    I have to say that the new Pages 5.0 UI takes some getting used to. Familiar features are in a different location and sometimes don't work the way I expect them to. "Object" support is particularly perplexing. I had no problem positioning images (pri

  • Company code and form 16

    Hi all, Once the employee is transferred from one company code to another company code intra company transfer , will i get 2 form 16 or only one form 16. Please can anyone tell me how  the amounts will display in form 16. Regards janhavi

  • Simulate absence BAPI in ECC 6.0

    Hi, Can anyone tell the equivalent BAPI for BAPI_HR_PA_SIMULATE_ABSENCE (ECC 5.0)   in ECC 6.0? How do i search for the equivalent BAPI's of ECC 5.0 in ECC 6.0

  • Image processor error - original photos gone!

    I am running CS5 64bit version 12.0.1 on a windows machine. When I select a bunch of photos to be re-sized in bridge (version 4.0.2.1) the script runs, but at each photo, it asks what level of jpeg compression to save it as.  Then, when the script ap

  • Zen v plus 2GB free

    <font face="Courier New" size="4" color="#ff3399">My zen v plus 2GB frooze. I reset it and when I turn it back on it freezes agin with in a couple of seconds. wut can i do 2 fix it's