I have a function which send a serial message to an usb device. The device answers back with a value (say122.22) this value must be the return value of that function.
public double aksingFunction()
Your question requires more work than to be done for free. You can submit it as an assignment to our control panel set the deadline and our programmers will assist you.