How to wait until everything is attached in VBNET

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

How to wait until everything is attached in VBNET

Post 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
jdecoux
Labview Developer
Posts: 180
Joined: Mon Nov 13, 2017 10:20 am
Contact:

Re: How to wait until everything is attached in VBNET

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests