PT-104 Ethernet access in own sofware

Post your .Net discussions here
Post Reply
junedfird
Newbie
Posts: 0
Joined: Thu Jan 03, 2013 11:40 am

PT-104 Ethernet access in own sofware

Post by junedfird »

Martyn,

I wish to access PT-104 using Ethernet option along with USB by giving some condition at the form opening in C#.NET.

How can this be done?

When I am trying to use callwithIP function, it is giving error that "PT-104 unit is closed".

What could be the error?

The code is reading IP address and port, but returning g_handle as 0. This is causing the problem.

A response would be appreciated.

Thanks!

Juned

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

Re: PT-104 Ethernet access in own sofware

Post by Martyn »

We would need to see some code to be able to comment on how you are trying to open the unit, it is probably the way you are declaring and passing the IP Address to the dll that is the problem.
Martyn
Technical Support Manager

junedfird
Newbie
Posts: 0
Joined: Thu Jan 03, 2013 11:40 am

Re: PT-104 Ethernet access in own sofware

Post by junedfird »

Hi Martyn,

I tested it on other laptop and it is working fine.

However, on my laptop, it is saying "PT-104 unit not opened" for the same codes. (g_handle = 0)

Ping is also proper on my laptop for the ip address assigned to the unit.

But, with picolog software, Ethernet is functioning properly on my laptop as well. What could be the issue? I have even checked the firewall and allowed all connections.

Can you please help?

My full software application to evaluate pump efficiency is ready, except the ethernet issue!!!

Thanks!

Juned

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

Re: PT-104 Ethernet access in own sofware

Post by Martyn »

Are both laptops using the same ethernet cable and plugged into the same part of your network ?

Did you successfully disconnect from the working instance of ethernet before trying with the second laptop.
Martyn
Technical Support Manager

junedfird
Newbie
Posts: 0
Joined: Thu Jan 03, 2013 11:40 am

Re: PT-104 Ethernet access in own sofware

Post by junedfird »

Martyn,

Yes, I used same cable for both the laptops and are in the same part of network. In fact, there is no network as such. These are home laptops which are not part of any other network.

Yes, I was able to successfully disconnet from Ethernet from other laptop.

Thanks!

Juned!

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

Re: PT-104 Ethernet access in own sofware

Post by Martyn »

Is that anything different about the laptops

Operating Systems
32bit / 64bit

are you powering the PT104 from a connection to a USB port on the laptops or an external source.
Martyn
Technical Support Manager

junedfird
Newbie
Posts: 0
Joined: Thu Jan 03, 2013 11:40 am

Re: PT-104 Ethernet access in own sofware

Post by junedfird »

Yes, The difference is the OS. My laptop is 64 bit. Is this a problem?

I am powering the PT-104 both ways, but same problem persists.

Juned

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

Re: PT-104 Ethernet access in own sofware

Post by Martyn »

Data types may be an issue between 64 and 32 bit.

Are you using the 64bit drivers available in the latest 10.5.0.11 SDK, or the standard 32bit ones.
Martyn
Technical Support Manager

junedfird
Newbie
Posts: 0
Joined: Thu Jan 03, 2013 11:40 am

Re: PT-104 Ethernet access in own sofware

Post by junedfird »

Martyn,

From where I can get this SDK?

Juned

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

Re: PT-104 Ethernet access in own sofware

Post by Martyn »

From our website at http://www.picotech.com/software.html just make sure you select the correct device at Step 1
Martyn
Technical Support Manager

junedfird
Newbie
Posts: 0
Joined: Thu Jan 03, 2013 11:40 am

Re: PT-104 Ethernet access in own sofware

Post by junedfird »

Thanks Martyn!

I got this.

Please find the final monitor screen of my software. This is how it appears and flashes the readings every 1s or 10s or any other value (configurable timer). Its completely configurable.

Thanks!

Juned
Attachments
Impeller Software Image
Impeller Software Image

Post Reply