Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to transfer a large file over GPIB

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.

0 Kudos
Message 1 of 3
(4,328 Views)

Hello Leon.x.Chen,

 

What instrument are you using? What is the size of the file you are trying to transfer?


Regards,

Miriam
Field Applications Engineer
NI Colombia
CLD
0 Kudos
Message 2 of 3
(4,315 Views)

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 !

0 Kudos
Message 3 of 3
(4,311 Views)