PROCEDURES

OPTIMIZING READINGS

Using Using the buffered Output channel ON command (page 6-64),even faster meas-

Buffered urement speeds can be achieved. By using the ON command instead of the O

Requests command x number of times, extra processing is removed, resulting in improved speed.

NOTE

Using FAST mode here will not increase the speed as this mode only works when asking for one measurement at a time (i.e., the ‘O’ command only.)

C code example:

/* Reset unit and ask for 200 buffered readings n channel 1 */ Send(0, 13, “*RST; ON 1, 200”, 15L, NLend);

/* use a large buffer size (4K for 200 readings) */ Receive(0, 13, buffer, 4096, STOPend);

Settling (%)

Power Level (dBm)

Readings/Second

 

 

 

0.1

0

216

 

 

 

0.1

–30

202

 

 

 

Changing By changing the sensor measurement mode to Custom, the ML2430A Series can

measurement modes be precisely configured to meet the needs of the specific application.

In this example, the Trigger Gate Width (page 6-79)has been reduced to 1 ms,

Channel 1 is set to Sensor A, and Channel 2 is off.

C code example:

/* reset unit. Custom measurement mode, 1 ms TRGGW */ /* Auto averaging Sensor A Channel 2 off*/

/* Use FAST mode*/

Send(0, 13, “*RST; FAST ON; SENMM A, CUSTOM; TRGGW 1ms”, 51L, NLend);

Receivesetup(0,13);

/* Fast mode, therefore do not send ‘O 1’ for data, just read.*/ for(i=0; i<10; i++)

RcvRespMsg(0,buffer,STOPend);

Power Level (dBm)

Readings/Second

 

 

0

240

 

 

–30

240

 

 

ML2430A OM

5-23

 

 

Page 86
Image 86
Anritsu ML2430A operation manual 216