53
public
static
int
ByteArrayToInt(
byte
[] packet)
{
ByteArrayToNumber.A = packet[Packet+];
ByteArrayToNumber.B = packet[Packet+];
ByteArrayToNumber.C = packet[Packet+];
ByteArrayToNumber.D = packet[Packet+];
return
ByteArrayToNumber.Int;
}
public
static
short
ByteArrayToShort(
byte
[] packet)
{
ByteArrayToNumber.A = packet[Packet+];
ByteArrayToNumber.B = packet[Packet+];
return
ByteArrayToNumber.Short;
}
public
static
long
ByteArrayToLong(
byte
[] packet)
{
ByteArrayToNumber.A = packet[Packet+];
ByteArrayToNumber.B = packet[Packet+];
ByteArrayToNumber.C = packet[Packet+];
ByteArrayToNumber.D = packet[Packet+];
ByteArrayToNumber.E = packet[Packet+];
ByteArrayToNumber.F = packet[Packet+];
ByteArrayToNumber.G = packet[Packet+];
ByteArrayToNumber.H = packet[Packet+];
return
ByteArrayToNumber.Long;
}
public
static
string
ByteArrayToString(
byte
[] packet,
int
len)
{
string
s =
""
;
int
i;
for
(i = 0; i < len; i++)
{
s += (
char
)packet[Packet+];
}
return
s;
}
public
static
float
ByteArrayToFloat(
byte
[] packet)
{
ByteArrayToNumber.A = packet[Packet+];
ByteArrayToNumber.B = packet[Packet+];
ByteArrayToNumber.C = packet[Packet+];
ByteArrayToNumber.D = packet[Packet+];
return
ByteArrayToNumber.Float;
}
public
static
double
ByteArrayToDouble(
byte
[] packet)
{
ByteArrayToNumber.A = packet[Packet+];
ByteArrayToNumber.B = packet[Packet+];
ByteArrayToNumber.C = packet[Packet+];
ByteArrayToNumber.D = packet[Packet+];
ByteArrayToNumber.E = packet[Packet+];
ByteArrayToNumber.F = packet[Packet+];
ByteArrayToNumber.G = packet[Packet+];
Summary of Contents for HASCP
Page 26: ...26 Figure 15 Firmware Tab in the RTI HASCP software...
Page 68: ...68 8 Cable Wiring Diagrams This section outlines the HASCP communication cable wiring...
Page 73: ...73 10 Mechanical Drawings and Assembly Figure 23 Outline drawing of the HASCP unit MCBH 10M...
Page 74: ...74 Figure 24 Location of transducer beams in the HASCP unit...
Page 76: ...76 Figure 26 Exploded view of the HASCP unit showing the details of the hardware used...
Page 78: ...78 Figure 28 HASCP mounted on a pole used for internal testing at RTI...