I want a test fixture that has 12 Picolog 1216 connected with USB.
I only want to address and use one at a time.
Looking at the driver pl1000OpenUnit I assume that handle is the identifier for an individual logger. How do I determine each handle for all 12 individual loggers?
Using OpenUnit to open a unit and get the handle, and then use GetUnitInfo to get the serial number, would be the only way to identify a device to a handle for the PicoLog 1216.
Does each device have a unique static handle? Once I have all the handles for each device I use that as the input for a particular device with OpenUnit?
I am not sure that the OpenUnit function will allow you to specify the handle, and I am out of the offcie until next week so will not be able to check this.
Are you not able to open all units, and then just address and use them one at a time ?
If you open all units each will have a unique handle, if you know which serial number relates to which handle you can then operate on each unit using it's unique handle.
I'm still not sure on how to address an individual device. Tell me if the following is correct.
Example
Device1: After connecting usb to only this device and issuing OpenUnit the handle returned is 16384
Device2: After connecting usb to only this device and issuing OpenUnit the handle returned is 16385
Now I connect both devices to usb on the same PC.
I perform OpenUnit. It returns 16384. But I want to GetUnitInfo from 16385.
I ignore 16384 that OpenUnit returned and perform GetUnitInfo using 16385 as the handle?
===============
I'm looking for detailed information on exactly what OpenUnit is doing. All the LabVIEW VI examples I have seen show an input = 0. Does OpenUnit do anything with this input?
then in a loop you need to call open unit to retrieve a handle, then call getunitinfo to identify the serial number, then compare this with the serial numbers in your array and assign the handle to the correct device. Repeat this four times and you will now have something like
When I perform this loop will I be able to get the handle for all devices as shown in Windows OS Device Manager? Or is there a limit to the number of devices OpenUnit can handle?
I the test setup I am considering I would need 12 Pico 1216 connected to the PC.