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+];
Содержание HASCP
Страница 26: ...26 Figure 15 Firmware Tab in the RTI HASCP software...
Страница 68: ...68 8 Cable Wiring Diagrams This section outlines the HASCP communication cable wiring...
Страница 73: ...73 10 Mechanical Drawings and Assembly Figure 23 Outline drawing of the HASCP unit MCBH 10M...
Страница 74: ...74 Figure 24 Location of transducer beams in the HASCP unit...
Страница 76: ...76 Figure 26 Exploded view of the HASCP unit showing the details of the hardware used...
Страница 78: ...78 Figure 28 HASCP mounted on a pole used for internal testing at RTI...