Posted Thu, 23 Mar 2023 00:54:32 GMT by Wu, Penny
Can I save screen capture to my PC by writing C# program?<br> I've checked some discussions before and the command &quot;HARDCOPY:PORT...&quot; is not supported and neither are others.<br> Where can I find some examples to get the png file in my MSO64B?<br> Thank you.
Posted Thu, 23 Mar 2023 17:11:27 GMT by Teles, Afonso
Hi Penny,<br> &#160; <div class="linenums prettyprint">First of all, if all you wish to do is get a screen capture, I would suggest the free community-made <a href="https://forum.tek.com/viewtopic.php?t=140451">TekScope Utility.</a><br> <br> If you wish to write your own program, then you can start with the following examples: <a href="https://forum.tek.com/viewtopic.php?f=580&amp;t=133570">https://forum.tek.com/viewtopic.php?f=580&amp;t=133570</a><br> For the MSO6, the <code>hardcopy</code> command has indeed been deprecated, the new way to do it is to use&#160; <code>save:image</code> followed by <code>filesystem:readfile </code>to transfer that file.</div>
Posted Mon, 27 Mar 2023 02:10:52 GMT by Wu, Penny
Thank you for answering.<br> I still have some problems. <pre class="linenums prettyprint">1. Can<code> usb connection be workable for save:image</code> and <code>filesystem:readfile ? </code> 2. I read https://forum.tek.com/viewtopic.php?t=139957 . and this one </pre> <pre><code>GetLocalManager() </code></pre> is not available in current version.<br> and plus<br> &#160; <pre><code>HardCopy() is also deprecated. So now I have to use only two commmands, including save:image and filesystem:readfile to save files in my PC? I have an enormous number of images needed to be transferred to PC. Thank you so much.</code> </pre>
Posted Mon, 27 Mar 2023 21:45:18 GMT by Teles, Afonso
Hi Penny,<br> <br> Yes, the USB device port on the back of the instrument can be used for remote control.<br> <br> That example you posted uses NI-VISA libraries, which I do not use or support.<br> <br> And yes, you have to use two commands to transfers an image to your PC.<br> <br> I have written an example Python3 program to transfer images from MSO2/4/5/6, please find it attached with this post.
Posted Tue, 02 Jul 2024 07:33:01 GMT by 罗伊
Hi Afonso,  I also encountered the same problem as Penny, but I didn't see your attachment, so I would like to ask again. If you see it, could you reply me? Thank you very much.

You must be signed in to post in this forum.