Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

limitation in the buffer allocation in visa set buffer VI in for the Virtual port if EKI-1524

Solved!
Go to solution

HI all. 

I build test setup that contains network to serial server EKI-1524 from advantech and equipment coneected to it such as Scope, AC source and electronic load. 

Instrument driver of the scope for the downloading the screenshot allocates the receiving buffer for 1050000 bytes.

in this mode i receive the error  0xBFFF003C - insuficinet system recources.

I have checked this driver with USB to serial converter and with direct USB connection of scope - always work with no errors.

Checking the EKI-1524  virtual comport directly in max VISA TEST PANEL ( without instrument driver of scope  ) shows that maximum allocated buffer size is the 12288 bytes. 

Attempt to set the recevinig buffer size tp 12289 byte cause same error.

 

Please suggest how can i  fix this problem. 

 

 

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

dynaco,

 

The buffer errors are reasonable, as you cannot create a larger buffer than allowed. The first buffer size you mention is over 1 GB; could that have been read incorrectly? I would recommend getting basic serial commands through the device validated before trying to capture the screenshots from your scope. Have you successfully communicated to any of the serial devices connected to the 1524? Also, do the different serial ports on the device show up as individual VISA resources in MAX?

0 Kudos
Message 2 of 3
(4,307 Views)
Solution
Accepted by dynaco
You could also modify the driver to take multiple reads.
Message 3 of 3
(4,304 Views)