Chriss,
I hope you didn’t think I was being dismissive of your help trying to solve the issues I’m having with my application? Being a ‘Novice’ VFP programmer I very much appreciate the help I receive from you (and others) on this forum. I felt that we had investigated the issue as far as we...
I thought it might be something to do with the order of my code.
I made the alterations to the code as you suggested and the app worked as expected. I was able to change the Transceiver Frequency, able to exit the application and return to the VFP IDE without witnessing any ‘unresponsiveness’...
Chris,
I understand your concept of using a ‘lone’ Form for the ‘Comms Object’, it is the implementation of it that I may struggle with, so please accept my apologies before hand if that should be the case.
I have the following code in MyComm.prg
PUBLIC oComm
DO FORM forms\comms_test...
I created a TEST.PRG with the following code:
_SCREEN.AddObject("oComm","olecontrol","MSCommLib.MSComm.1")
An error message says: Object Class is Invalid for this container.
Hi Tom, Thank you for your reply. My App works ok with the Virtual Port COM 10 with the exception of closing the comm port. I will try using a lower port number and see if that helps.
There lies another problem! When I drag the MsCommLib.MsComm object and drop it on the screen, it disappears off the form but doesn't show on the screen. I have removed SCREEN = OFF from config.fpw but still the same.
Yes, I did and still had the delay.
I'm still thinking on the lines that the issue is something to do with Virtual Port sharing. If I use the same Form and Comms setup on Serial Port COM3 there isn't a problem but as soon as I change to Virtual Serial Port COM 10 and use Virtual Port sharing...
No, the COM Ports (COM10,COM11) are still showing after VFP Closes.
No, I don't think so. I placed the OCX control on the Form with minimal changes.
I've just carried a further some further tests using the test form. I now have 4 Command Buttons.
* Button 1 - check status of Com Port...
I designed a basic form, added an OCX control and a Command Button to close the form. The only thing I changed was the Comm Port to COM 10. I then ran the form and closed it using the Command Button; the Form closed instantaneously. I then ran the form with the Comm Port Open and on closing...
That's correct.
There is no code (Default) in the Destroy Event
I created the Test App to have the bare minimum of Code and Code alterations, but I will do the object counts. I will also carry out some more tests as you suggest.
I will also pay more attention to the 'intellisense information'...
Chris,
Thank you for your reply; I was nearly there, I'd missed the quotes around Transceiver.
When I ran your code it took 60.025 secs to complete.
It's a strange problem because My App runs ok when using a standard Serial Comms Port, the issue only occurs when using a Virtual Serial Port...
Hi Greg,
Having looked at the Properties of VSPE.SCX (see previous post) I'm not sure how to implement RemoveObject() on the ActiveX (ole control) named Transceiver in my case. It's probably me being a bit thick!
My VFP application connects to my Amateur Radio Transceiver (via Serial COM Port 3) for CAT Control. CAT Control is a generic term used to describe how a PC can control the frequency and various other settings of a transceiver. The CAT commands are bi-directional. My application has run for a...
I use VFP for my Amateur Radio application (Logbook Database and Radio Transceiver Control using MSComm) and I am in the process of building an Arduino Application that will also send commands to the Radio Transceiver via the VFP Application (to avoid a COM Port conflict).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.