Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5566

I'd like to improve the ibrd speed.

$
0
0

Hello!!!!

I'm South Korean 

Pleaseunderstand that I am not good at English.


I amcurrentlyimplementing a GPIBcommunicationprogram with controller and noncontroller.

The problem is, when the controller is ibrd
<SourceCode1>
IntGPIB::recv_data (string&v)
{
    vector_charbufv(BUFSIZ, 0);
    ibrd(device_, &bufv[0], bufv.size());
    v=&bufv[0];
    returnibsta&ERR ? -1:0;
}
If I use a largesize like above, the speed of ibrd is tooslow.

However, It willimprove ibrd speed if I create it as below.
<SourceCode2>
IntGPIB::recv_data (string& v, uint32_tdata_size)
{
    vector_charbufv(BUFSIZ, 0);
    ibrd (device_, &bufv[0], datasize);
    v=&bufv[0];
    returnibsta&ERR ? -1:0;
}

Is there anyway to improvespeedusing the samemethod as SourceCode1?

The size of the bufv to be read is variable.

Help me


Viewing all articles
Browse latest Browse all 5566

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>