10-19-2007 04:04 PM
10-19-2007 04:20 PM
Turn on NI-Spy in MAX and then run the macro. This will give you the commands you need to send to the scope. Or, open the macro and determine from that what commands are being sent to the scope. You could attach the NI-Spy capture or the macro if you need some help interpreting what is there. You don't mention what you want to do with the screen capture. Do you just want to save it or do you want to display it in LabVIEW?
You could also try doing a search of the Instrument Control board for 'screen capture'. This is a fairly common question though I don't remember if this particular model of scope has ever been discussed.
10-22-2007 07:59 AM
10-22-2007 11:33 AM
07-07-2009 08:59 AM
Hello,
I am attempting the exact same setup as you are.
I only used the 2nd part of your code, since I don't need to put the format back to the way it used to be.
I made a string array with the following listing:
[head off; HardCopy:Format PNG;Hardcopy:Layout Landscape;Hardcopy:Compression Off;Hardcopy:Port ETHERNET; HardCopy Start]
i use VISA- write and then i attempt to use VISA read to File. I used the same bytecount, but i end up getting the following error code -1073807339
I don't understand why it would work. I am using LabVIEW 7.1
07-07-2009 09:12 AM
07-07-2009 10:47 AM
07-07-2009 10:58 AM
Well, if you are sending a command that is unsupported, the ERR? query should return with an error code. You should also check the manual.
07-08-2009 07:49 AM
Well I was looking at the manual and the commands are the same. I adjusted the time out event, but the problem seems to appear. I used the error to string subvi provided by the visa toolset, but it didn't help. I also tried using the Excel macro/word provided and loaded NI spy, I can see all the commands going through the ethernet, except the final step before acquisition takes place. (i.e. hardcopy start).
07-08-2009 09:33 AM
I have no idea what error to string subVI is or why something like that could possibly help. What I asked was whether you sent the ERR? command to the scope and what was the response.
Your problem does not seem to be anything related to LabVIEW or any NI hardware. Why don't you ask Tek?