Priority between Multiple ReadFromPipeOut


#1

Hi,
Little Question : assuming one would have 2 WIN32 threads with equal priority, each reading data from a PipeOut (eg 0xa1 and 0xa2)

How is the bandwith shared among the 2 data transfers ?

I have the feeling that the first initiated transfer must be terminated first before the second one can begin.


#2

Simple answer is that you just can’t do this. They will end up stomping on each other. Per device, there MUST be only one accessor.

If you need multiple-access to a device, you will need to create a thread or process that channels access through ONE instance of the API. Then all other threads/processes would communicate with that “FrontPanel Thread” for access to the device.

Two separate instances of the API bound to two separate devices cause no problem whatsoever.