Contact an Expert

Thread: Set IO error: not enought memory (VISA COM)


Permlink Replies: 3 - Pages: 1 - Last Post: Mar 15, 2012 1:34 PM Last Post By: Nik_Henri Threads: [ Previous | Next ]
Nik_Henri

Posts: 3
Registered: 03/12/12
Set IO error: not enought memory (VISA COM)
Posted: Mar 12, 2012 2:13 PM
Click to report abuse...   Click to reply to this thread Reply
Hi,
I using Excel to get data from my oscilloscope. It work fine with 500 pts but if i want 1000pts i got a Set IO error: not enought memory.

I try the same command on 'interactive IO' and it work fine.

How can i correct the error ? (I tried IFormattedIO488.SetBufferSize but it doesn't help)

Thx
changmeikuan

Posts: 210
Registered: 08/07/09
Re: Set IO error: not enought memory (VISA COM)
Posted: Mar 12, 2012 8:09 PM   in response to: Nik_Henri in response to: Nik_Henri
Click to report abuse...   Click to reply to this thread Reply
Hi,

You may want to check if the buffer is being set correctly. I would recommend to use GetBuffer size to double check, or use IO Monitor in Agilent IO Libraries Suite to find out. If you are using NI VISA then it will be NI Spy.

If that still doesn't work, I will try both commands in VEE and Interactive IO, and compare the IO traces in IO Monitor.

Hope this helps.
-mk

Edited by: changmeikuan on Mar 12, 2012 8:09 PM
Nik_Henri

Posts: 3
Registered: 03/12/12
Re: Set IO error: not enought memory (VISA COM)
Posted: Mar 15, 2012 12:32 PM   in response to: Nik_Henri in response to: Nik_Henri
Click to report abuse...   Click to reply to this thread Reply
I try the same command on VISA assistant and Interactive IO and it's working. I'm not able to find the Getbuffer you'r talking about. Here my code(Excel):

Set mgr = New AgilentRMLib.SRMCls
Set DMM = New VisaComLib.FormattedIO488
Set DMM.IO = mgr.Open(ioAddress)
DMM.SetBufferSize IO_OUT_BUF, 10000000
Nik_Henri

Posts: 3
Registered: 03/12/12
Re: Set IO error: not enought memory (VISA COM)
Posted: Mar 15, 2012 1:34 PM   in response to: Nik_Henri in response to: Nik_Henri
Click to report abuse...   Click to reply to this thread Reply
I found the answer, the problem was that i put to much caracter in a single cell
Cells(5, 7).Value = .ReadString

thx for the help

Nik

Point your RSS reader here for a feed of the latest messages in all forums