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