2620A/2625A

Users Manual

/*

-* decode(): Decode LOG_BIN? response string into raw byte stream

**

**Decoding is done on multiples of four input bytes:

**

543210

543210

543210

543210

(bit number in ASCII bytes)

**+--------+--------+--------+--------+

**

src[0] src[1] src[2] src[3]

ASCII string input

**+--------+--------+--------+--------+

**

765432

 

107654

321076

543210

(bit number in raw bytes)

**

/

 

/

/

 

 

**

/

 

/

/

 

 

**

 

/

/

 

 

**

/

 

/

 

 

**

 

/

 

 

**

 

/

 

 

**

 

 

 

**

76543210

76543210 76543210

 

(bit number in raw bytes)

**+--------+--------+--------+

**

dst[0] dst[1] dst[2]

Raw data output

**+--------+--------+--------+

**Inputs:

**

dst

Destination for binary data (must have enough space

**allocated; the maximum needed is 6 timestamp bytes + 3

**bytes for temp units, measurement rate, and digital I/O

**+ 4 bytes/float * 22 floating point values = 97 bytes).

**

src

Source

ASCII string

(null

terminated)

**

 

 

 

 

 

** Outputs:

 

 

 

 

**

dst

Set to

binary data,

based

on ASCII string

**

 

 

 

 

 

**Returns:

**Number of bytes placed in destination buffer

*/

int

decode(dst, src) unsigned char *dst; char *src;

{

/* src

to dst xlate */

 

 

static

struct nibtab_s

{

 

int lindex;

 

 

 

int lmask;

 

 

 

int lshift;

 

 

 

int rindex;

 

 

 

int rmask;

 

 

 

int rshift;

 

 

 

} nibtab[3] = {

 

 

 

/*

left

 

right */

 

0,

0x3f, 2,

1,

0x30, 4,

/* dst[0] from src[0] and src[1] */

1,

0x0f, 4,

2,

0x3c, 2,

/* dst[1] from src[1] and src[2] */

2,

0x03, 6,

3,

0x3f, 0,

/* dst[2] from src[2] and src[3] */

};

 

 

 

 

auto unsigned char n; auto struct nibtab_s *t; auto unsigned char tmpsrc[4]; auto int dst_bytes;

/* Number of bytes created */ dst_bytes = 0;

/* Process src in chunks of four */ while (*src) {

/* Copy source, filing "holes" at end with zeros */ for (n = 0; n < 4; n++) {

if (*src)

tmpsrc[n] = *src++ - ’0’;

else

tmpsrc[n] = 0;

}

/* Mung source into destination */

for (t = nibtab; t < &nibtab[3]; t++) {

*dst = (tmpsrc[t->lindex] & t->lmask) << t->lshift; *dst = (tmpsrc[t->rindex] & t->rmask) >> t->rshift;

dst++;

dst_bytes++;

}

}

return (dst_bytes);

}

Figure E-1. ASCII String Decoding

E-2

Page 182
Image 182
Fluke 2625A, 2620A user manual Figure E-1. Ascii String Decoding

2625A, 2620A specifications

The Fluke 2625A is a sophisticated data logger designed for a wide range of industrial and laboratory applications. This versatile instrument excels in capturing and monitoring temperature and voltage measurements with precision and reliability. One of its standout features is its ability to record data from various sensors, making it ideal for environments where comprehensive data acquisition is critical.

Equipped with a large LCD display, the Fluke 2625A provides clear and user-friendly access to real-time measurement data. Its graphical interface allows users to visualize trends and monitor readings easily, which significantly enhances usability. The device supports a variety of input types and can connect to thermocouples, RTDs, and other sensors, offering great flexibility for various measurement tasks.

The Fluke 2625A employs advanced measurement technologies that ensure accuracy in data logging. With a high sampling rate, it captures fast-changing signals while maintaining data integrity. The device features a built-in memory that allows for extensive logging, accommodating long-term monitoring tasks without requiring constant oversight. Users can set it to log data at specified intervals, offering customizable solutions for different monitoring needs.

Another significant characteristic of the Fluke 2625A is its robust communication capabilities. The device supports USB and RS-232 interfaces for easy connectivity with computers and other devices, making data transfer and analysis seamless. This feature is especially beneficial for users who need to compile or analyze large sets of data quickly.

Furthermore, the Fluke 2625A is designed with durability in mind. Its rugged construction makes it suitable for challenging environments, including those with high levels of vibration, dust, or moisture. This reliability ensures that the device can withstand the rigors of fieldwork while still delivering accurate measurements.

In summary, the Fluke 2625A is a powerful data logger that combines versatility, accuracy, and reliability. Its user-friendly interface, advanced measurement technologies, and robust design make it an essential tool for professionals in various industries, from manufacturing and HVAC to research and development. Whether monitoring temperature changes in a laboratory or assessing voltage levels in an industrial setting, the Fluke 2625A stands out as a trusted solution for effective data logging and analysis.