Click here to Skip to main content
15,911,896 members

Comments by Member 11075997 (Top 4 by date)

Member 11075997 15-Sep-14 15:16pm View    
unfortunately my accel data is Change in time very fast and i dont know receive what number of bytes its gonna be like 12.234... 123... -1234... its what i receive in my serial terminal and when i do it :

int strRecieve = serialPort1.ReadByte();

it receive anything exist in serial port ! i use this while loop for separate but its crashhed :

while(strReceive != ">")
{
strRecieve = serialPort1.ReadByte();
}

"": i use this ">" for knows when i Reach to the end of my axis data !
is this a good way for what i want ?
im really confused !
i find something like union method but it so complex ! i dont get it what i must do :(
http://stackoverflow.com/questions/8827649/fastest-way-to-convert-int-to-4-bytes-in-c-sharp
Member 11075997 15-Sep-14 14:44pm View    
thx for your reply ! i know how to work with serialport and i can receive data ! my problem is how can i separate data for any axis ?
Member 11075997 12-Sep-14 13:53pm View    
isnt any suggestion guys ????? !
Member 11075997 12-Sep-14 9:23am View    
thx for your reply !
i do the same thing u said ! i use begininvoke instead invoke ! and add that line after i open the port ! but it doesnt work :'(
unfortunately this app doesnt work for me too :( ! it find my port name but i still cant receive anything :( ! i dont know how is going on here... why my source work good with another standard terminal app but in c# i have this problem ? :( !