LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Large number of USB connections

I have a potential project (not currently mine, so I don't know all the details) where there are >50 BK precisions with USB outputs.  These USB outputs are ganged together into hubs, so that the number of physical PC inputs are reduced, but each instrument will still need controlled independently.  I think the measurement is likely easy (apply bias, measure current), but I have not controlled this many devices before.  How could this be managed?   Could I cycle through ports with a For Loop, taking the measurement for each device?  Any examples of this?

0 Kudos
Message 1 of 10
(3,231 Views)

Hubs don't reduce the number of devices on a Bus, they increase it.

 

Although USB theoretically supports up to 128 devices on a single port (Hubs count as devices too) you've generally well off staying well below the limit of 64 per port.

 

Try to spread the devices over as many hardware ports as possible.

 

I would have a loop to start each measurement and then a following loop to record the results.  That wa you should get good throughput.

 

i.e. for 50 devices, 50x "Start", followed by 50x"Read" instead of 50x "Start"-"Read"

0 Kudos
Message 2 of 10
(3,221 Views)

Thanks for the reply. 

 

Will I essentially have 50+ independent VISA sessions?

0 Kudos
Message 3 of 10
(3,206 Views)

You can extract the current wanting VISA. Will you need multiple VISA all the time or one at a time?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 4 of 10
(3,163 Views)

@JBrew wrote:

Thanks for the reply. 

 

Will I essentially have 50+ independent VISA sessions?


Yes, you will have as many VISA sessions as you have USB devices if you're using VISA for the measurements.

 

You don't have a driver for the devices?

0 Kudos
Message 5 of 10
(3,158 Views)

I'm guessing I could cycle through them one at a time, not knowing the requirements for sure. 

0 Kudos
Message 6 of 10
(3,129 Views)

I'm sure there are drivers. 

0 Kudos
Message 7 of 10
(3,126 Views)

Well then if there are drivers, don't use VISA.

 

Use the drivers instead.  How you cope with multiple devices depends ont he driver.

 

Shane.

0 Kudos
Message 8 of 10
(3,110 Views)

@Intaris wrote:

Well then if there are drivers, don't use VISA.

 

Use the drivers instead.  How you cope with multiple devices depends ont he driver.

 

Shane.


I would add a caveat here.  Some supplied drivers are absolute cr*p, especially if they are from small companies.  Check out the drivers to make sure they make sense.  You can't do anything about a buggy dll, but maybe you can avoid some obvious LabVIEW stupidity.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 9 of 10
(3,096 Views)

Actually I was "able to do something about a buggy dll", browbeat them into opening up the hood and letting me see that their dll was just a wrapper around the USB chip hardware dll from the USB chip manufacturer. I wrote LabVIEW to call this "lower level" dll directly, fixed my crashes. As mentioned, a lot of "drivers" supplied by smaller equipment makers is less than useful. I cringe when starting a project where the hardware has be already ordered when I'm told "don't worry, there are LabVIEW drivers for it!"   Yikes!

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 10 of 10
(3,075 Views)