Test and Measurement Forum

UsbPt104OpenUnitViaIp

Post your VB and VBA discussions here

UsbPt104OpenUnitViaIp

Postby sscthj89 » Tue Dec 06, 2016 10:04 pm

I am currently attempting to create an application that uses a unit that is connected via Ethernet. I am able to ping the unit and the unit has been working correctly with the PicoLog software supplied. To connect using my application I have turned off the PicoLog and am trying to use the excel spreadsheet application for verification that the connect works. I have already gone through the tasks of ensuring the driver api file is correct and am now at the point in the code where the function 'UsbPt104OpenUnitViaIP' is failing and returning 3 which is unit not found. Again, the unit pings. Any help would be greatly appreciated.
sscthj89
Newbie
 
Posts: 0
Joined: Tue Dec 06, 2016 9:46 pm

Re: UsbPt104OpenUnitViaIp

Postby sscthj89 » Wed Dec 07, 2016 6:13 pm

Actually, I found my problem. I was not using the port in the IPAddress string.
sscthj89
Newbie
 
Posts: 0
Joined: Tue Dec 06, 2016 9:46 pm

Re: UsbPt104OpenUnitViaIp

Postby Martyn » Thu Dec 08, 2016 7:17 am

Good to hear that you have found the issue :)
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2585
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to VB and VBA (Excel, Access)

Who is online

Users browsing this forum: No registered users and 0 guests