If you could help me also with this I would be infinitely grateful. In order to read I did this (after opening the port of course): blob rsdata string data rsdata = ole_1.object.input data = string (rsdata) The program runs over the statements and does not give any error message but the variabe is empty. The connected device sends a status back wich is 'ESC + 60' if the drawer is open. That is GREAT!!! Not sure what I did wrong when I tried it but it works!!! Only thing I can't do is read from the port. Here are my steps: Open the New window and go to the 'PB Object' tab Choose Standard Visual and click OK Choose olecontrol and click OK Switch to the Insert Control tab Scroll down and select Microsoft Communications Control Click OK Save the object as u_mscomm32 Place the object on a window with the control name ole_1 'Hans' wrote in message 9:31 น. Did you run regsvr32 on MSCOMM32.ocx? I did this from a new app specifically for trying this out. So the question is, did you and wich ones? Regards Hans On 08:27:18 -0800, in -ocx-activex Hans, 8:31 น. But it comes back with 'invalid external function property for the first command. I put the MSCOMM32.ocx into c: windows system32, put an OLE control on a window (insert->control->ole, created a command button and for that a script with the commands you suggested. Hans -= Posted via the PFCGuide Web Newsreader =- fisher, 1:55 น. If someone could help me with this that would be great. So I did that and created a command button with the code to open the com port and send the string.īut all I get is an error of something like 'invalid access of object property'. Someone suggested to create a window, do insert->control->OLE and select the MScomm32.ocx file. Is there someone here who can give me the required steps to implement and use that ocx in PB? Even better would be a code example. By joining you are opting in to receive e-mail.īut I have difficulties using that ocx file in PB 8. *Tek-Tips's functionality depends on members receiving e-mail. Hi - I'm an engineer working on trying to control a process using electrical resistance as a feedback.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |