Page 1 of 1

How to wait until everything is attached in VBNET

Posted: Wed Jun 17, 2020 2:49 pm
by danthoskin
Hi,

I have a project with 5 VINT wireless hubs connected via ethernet with a ton of assorted Phidgets connected. Any suggestions on how I can have the program pause (I'll put a progress bar or something up) until everything is attached before continuing?
This is only an issue when I am trying to 'home' a stepper motor and the 16x Digital Input that reads it's limit switch doesn't attach in time to do it's job.
I want to make sure everything is attached because there is a lot of components that depend on each others conditions to work properly and I am stumped on how to do it.
Thanks,
Dan

Re: How to wait until everything is attached in VBNET

Posted: Fri Jun 19, 2020 9:50 am
by jdecoux
You can use the Attached property of your Phidgets to determine whether they are attached.

Code: Select all

ch.Attached
From there, you can write a loop that holds your program until all channels are attached.