Open from multiple processes

C, C++, and Visual C++
Post Reply
Ondrej.Janda
Fresh meat
Posts: 1
Joined: Thu Oct 18, 2018 2:46 am
Contact:

Open from multiple processes

Post by Ondrej.Janda »

Hi,
I was wondering if it is possible (using the VINT hubs) to open and attach channels (let’s say DI) on one physical hardware (DAQ1200_0) from different contexts/processes. Basically each process reading its own DI (different index).
I know it is not possible with the InterfaceKit 8/8/8, probably because the USB is blocked for the first process that asks for it, but I am wondering if anything changed with the VINT.

Thx,
Ondrej
fraser
Engineering
Posts: 138
Joined: Thu Nov 19, 2009 4:41 pm
Contact:

Re: Open from multiple processes

Post by fraser »

I believe this is only possible if you access it over the network.

Since the VINT devices are all accessed through a the VINT hub (which unless you're using a SBC, is a USB device) you wont be able to access it from two processes.
peterpolidoro
Phidgetsian
Posts: 6
Joined: Thu Mar 29, 2018 12:34 pm
Contact:

Re: Open from multiple processes

Post by peterpolidoro »

If there are multiple VINT hubs connected to the host computer, is it possible to use a separate process for each hub? Or is the communication with the devices always limited to a single process, even if each hub is a separate USB device?
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Open from multiple processes

Post by mparadis »

If you have multiple VINT hubs, you can access each one with a different program or process. You can do this by setting the serial number of the channel before opening to match the serial of the desired hub.
User avatar
Patrick
Lead Developer
Posts: 634
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Open from multiple processes

Post by Patrick »

This is one of the main use cases for the Network Server. When connecting locally, latency is less then 1ms compared to a direct USB connection, and this allows you to access the same hardware from multiple processes.

-Patrick
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests