So I have been looking all over and this is what I have found I am trying to take the measurement from a scale and output what is given and yes sadly the never ending loop has to be there right now the program is showing that there is information but it is not outputting anything.(this WILL not be the full program)
Current output:
//this is where the weight from the scale should be
In delay
//this is where the weight from the scale should be
In delay
//this is where the weight from the scale should be
In delay
//this is where the weight from the scale should be
In delay
//this is where the weight from the scale should be
a simple test to see if your code is working.
initialize your handle
remove the do while loop.
just do a single write and read after initialization.
then close the port.
i would normally put a delay after write just before read.