1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
try{
if(ReadByte(&data)== TRUE)
{
Sleep(100);
dataout[index++] = data;
//cout<<dataout<<"\t";
if(parse_serial_data( &data, 20, &new_packet ))
{
if( new_packet.Address == UM6_ACCEL_RAW_Z)
{
ACC_Z[] = new_packet.data[0];
ACC_Z[1] = new_packet.data[1];
ACC_Z[2] = new_packet.data[2];
ACC_Z[3] = new_packet.data[3];
ACC_Z[4] = new_packet.data[4];
cout<< ACC_Z;
}
}
}
}
catch (BYTE data1){
cout<<"Exception raised: "<<data1<<endl;
}
system("PAUSE");
ClosePort();
return 0;
}
|
but the code stop running and does not show anything. Please help me to out from here.I am stucking here from last 2 weeks.Please Help
Last edited on
Anybody has any sugession..please help!!