How to wait until everything is attached in VBNET

Supporting Visual Studio on Windows
danthoskin
Phidgetly
Posts: 35
Joined: Wed Oct 30, 2019 5:44 pm
Contact:

How to wait until everything is attached in VBNET

Postby danthoskin » Wed Jun 17, 2020 2:49 pm

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

jdecoux
Labview Developer
Posts: 124
Joined: Mon Nov 13, 2017 10:20 am
Contact:

Re: How to wait until everything is attached in VBNET

Postby jdecoux » Fri Jun 19, 2020 9:50 am

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.


Return to “VB .NET”

Who is online

Users browsing this forum: No registered users and 1 guest