UBTECH Alpha Servos UBT-12HC icon UBTECH Alpha Servos UBT-12HC Control UBTECH Alpha UBT-12HC smart servos via ARC using EZ-B v4/IoTiny UART, assign virtual ports, set baud, custom bits and position mapping. Try it →
Italy
Asked — Edited

Automatically Connect To A Port

Hello.

I would like my Visual Basic program to automatically connect to Ezboard when i launch the program. Ezboard connection is on COM port 3 on my pc, so i have written the code:

Sub Form1 load Ezb_Connect1.Connect(3.0) ...but it does not work

So i have tried Ezb_Connect1.Connect(3) ...but it does not work

Can you help to solve the question, please? Thank you.


ARC Pro

Upgrade to ARC Pro

Take control of your robot's destiny by subscribing to Synthiam ARC Pro, and watch it evolve into a versatile and responsive machine.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#9  

      ezB_Connect1.Port = "com3";
      ezB_Connect1.Connect(false);

When you press the . after the ezb_Connect1, the visual studio will popup a list of options. You can scroll through and read the titles of each one. There is a description for each one:)

Author Avatar
Italy
#10  

Thank you DjSures. Tomorrow i will try to do this.

Author Avatar
Italy
#11  

Hello. I have tested the code and this works very fine! Thank you very very much.