04-02-2012 12:19 PM
Hi Guys,
I am struggling with automating the instrument box.
what I am trying to do here is transfer a large file over GPIB. however, it seems the largest file I could transfer is about size of 2.2 MByte. any file larger than that will "timeout" and leave a incomplete file of size 2.2MB on the disk.
I am using public void Write(byte[] data); byte[] contains the SCPI command and the filestream in byte[] format.
could
public IAsyncResult BeginWrite(byte[] buffer, int offset, int count);
public IAsyncResult BeginWrite(string buffer, AsyncCallback callback, object state);
works...I couldn't find any documentation so I am not sure how to use them. Any sample code I can take a look? Appreciated!
Any suggestion?
Thanks.
04-03-2012 03:04 PM
Hello Leon.x.Chen,
What instrument are you using? What is the size of the file you are trying to transfer?
Regards,
04-04-2012 12:27 PM
Thanks for your response.
I am using CMW500. and the file I am trying to transfer now is around 6MBytes. but in future we will transfer file of size up to 1GBytes.
Thanks again !