I have made a wireless modem.
I communicate with it via RS232.
The computer has to send to this modem package of data, which starts
with the address byte. Next byte is a number of data, which will be sent
to the modem. After that there is a data block.
What I have to do is to build a program (labview) which sends the data
through RS232 in this way.
Everythings works fine.
My problem is that when I finish the labview program, the transmission stops
in the middle of the package.
The modem waits for the data but they doesn't come.
Then when I start the program again it sends a address byte but the modem
expects the data so
everything is unsynchronised.
To resolve this problem I have to know when there is no data on output
buffer.
I know that for the input buffer there is a function which gives this
information (VISA Bytes at serial port).
Is there anything similar for the output buffer?
Thanks for help
Greatings