PT-104 USB issues (UsbPt104Enumerate)

Post your LabVIEW discussions here
Post Reply
danacres
Newbie
Posts: 0
Joined: Thu Jan 10, 2013 8:55 am

PT-104 USB issues (UsbPt104Enumerate)

Post by danacres »

I'm trying to use two of these devices in parallel over USB but need to use the UsbPt104Enumerate function to properly address them. One device works fine as an example is provided.

I've tried to follow the programming guide http://www.picotech.com/document/pdf/us ... .en​-2.pdf but frankly I'm not sure what I'm doing.

The result is always either a crash or a blank string.

Has anyone successfully used two of these devices in parallel?

Could someone provide a working example for all the library calls rather than just the basic ones?

Thanks in advance

DA

.

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PT-104 USB issues (UsbPt104Enumerate)

Post by Martyn »

I haven't tried in Labview but have in C so it should work. If you would like to post your vi we can take a look for you.
Martyn
Technical Support Manager

danacres
Newbie
Posts: 0
Joined: Thu Jan 10, 2013 8:55 am

Re: PT-104 USB issues (UsbPt104Enumerate)

Post by danacres »

Thanks for the reply.
I have just got the code working without the UsbPt104Enumerate function

There is a mistake in the example VI for USB comms where the USBPT104Open DLL call has an I32 wired to Serial instead of a proper string constant of the Serial No. This lets me successfully communicate with two devices in parallel when fixed.

As a curiosity when I rearrange the code more tidily in labview (ie put the repeated DLL calls in a loop instead for sequence) I am stuck only being able to read a single device. Even stopping the VI and restarting won't fix that. For some reason the explicit instance of each of the DLL nodes is required to make the thing work properly.

Cheers

DA

Post Reply