Functions > di_burst_rate

Syntax 

The di_burst_rate function sets the rate at which your device will sample data. The Burst Rate is device dependent.

Note: You should not directly call di_burst_rate when using di_maximum_rate and di_sample_rate. You MUST call di_burst_rate when sampling different channels at different rates

Syntax 

int di_burst_rate(count);

unsigned count;

Parameters

count

Determine the Burst Rate using count. count is used differently for each device.

DI-145, DI-194, DI-154, DI-195B
DI-149, DI-155
DI-148, DI-158
DI-71x
DI-400, DI-401, DI-410, DI-500, DI-510, DI-720, DI-730, DI-78x, and DI-5001
DI-220, DI-221TC, and DI-222
DI-700

Return Value

DI_NO_ERR No error
DI_OPENED_ERR Device not opened
DI_COMM_ERR Communication error
DI_BURST_ERR Burst Rate error

Dependencies

di_open

Remarks

Additional consideration must be given to burst rate when performing multiple tasks. The following charts show the fastest sampling speeds that can be expected (and the count required to deliver that speed) when performing the indicated tasks simultaneously.

Note: ONLY the instruments shown here support multiple tasks.

DI-220, DI-221TC, and DI-222*
DI-400, DI-401, DI-410*
DI-500, DI-510, DI-720, DI-730, and DI-5001 Printer Port Devices*
DI-500, DI-510, DI-720, DI-78x, and DI-5001 Ethernet and USB devices
DI-730 Ethernet and USB devices
DI-722 Ethernet and USB devices

Sample Code

#include "200sdk.h"

int errcode;

unsigned rate;

char errstr[255];

main()

{

int i;

if(errcode = di_open()){

/* open the device for comm */

di_strerr(errcode,errstr);

printf("%s",errstr);

}

else

printf("Device installed successfully.....\n");

count = 193;

/* init rate */

if(errcode = di_burst_rate(count)){

/* stop scanning */

di_strerr(errcode,errstr);

printf("%s",errstr);

}

else

printf("Burst rate set.....\n");

di_close();

}

 

Copyright © DATAQ Instruments, Inc.