EZB Connection icon EZB Connection Connects EZ-B I/O controllers to ARC via COM or IP (5 connections). Supports init scripts, battery monitoring, TCP/EZ-Script server and serial/I2C. 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

ARC Pro is your passport to a world of endless possibilities in robot programming, waiting for you to explore.

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.