Serial Communications in VDFby Andrew Kennard
I've made this program up from one of my applications by cutting and pasting. So there are probably quite a few variables that are declared but never used etc so hope these don't throw you too much !
This self contained .src file 'should' just compile through the dfcompiler direct (ie just copy into an existing workspace) The basic object structure of this simple example is :-
The StartButton (at the end of the code) contains an OnClick procedure that sends "Hello from master" out of Com1 and sits and awaits "slave" to be read from the port. To test:-
This program source is provided as a 'thanks' to the DAW newsgroups and VDF-GUIDANCE for all it's help on various problems I have had. If you have any questions regarding this source you can email me mailto:andrew@wordsbureau.co.uk and I will try and help. I'm not an expert in this field and have donated the code to help others as opposed to something I wish to "support" in a "big way" Tests have shown that the program appears to be compatible -without source changes- with at least VDF6.2, VDF7.3 and VDF8.2 We advice you however to test carefuly if the code works on all the deployed platforms as it has been reported that this would not always work on the windows 2000 platform. If anyone is capable of fixing this we would encourage them to send the results back to us. |
|||||||||||
Copyright © 1999 - 2025 VDF-GUIdance on all material published, for details see our Disclaimer. |