Test and Measurement Forum

PT-104 Ethernet access in own sofware

Post your .Net discussions here

PT-104 Ethernet access in own sofware

Postby junedfird » Sat Apr 06, 2013 8:30 am

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
junedfird
Newbie
 
Posts: 0
Joined: Thu Jan 03, 2013 11:40 am

Re: PT-104 Ethernet access in own sofware

Postby Martyn » Mon Apr 08, 2013 8:50 am

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 Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2355
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PT-104 Ethernet access in own sofware

Postby junedfird » Tue Apr 09, 2013 2:00 pm

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
junedfird
Newbie
 
Posts: 0
Joined: Thu Jan 03, 2013 11:40 am

Re: PT-104 Ethernet access in own sofware

Postby Martyn » Tue Apr 09, 2013 2:37 pm

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 Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2355
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PT-104 Ethernet access in own sofware

Postby junedfird » Wed Apr 10, 2013 10:44 am

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!
junedfird
Newbie
 
Posts: 0
Joined: Thu Jan 03, 2013 11:40 am

Re: PT-104 Ethernet access in own sofware

Postby Martyn » Wed Apr 10, 2013 12:07 pm

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 Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2355
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PT-104 Ethernet access in own sofware

Postby junedfird » Wed Apr 10, 2013 3:42 pm

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
junedfird
Newbie
 
Posts: 0
Joined: Thu Jan 03, 2013 11:40 am

Re: PT-104 Ethernet access in own sofware

Postby Martyn » Thu Apr 11, 2013 9:34 am

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 Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2355
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PT-104 Ethernet access in own sofware

Postby junedfird » Fri Apr 12, 2013 11:15 am

Martyn,

From where I can get this SDK?

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

Re: PT-104 Ethernet access in own sofware

Postby Martyn » Fri Apr 12, 2013 1:51 pm

From our website at http://www.picotech.com/software.html just make sure you select the correct device at Step 1
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2355
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PT-104 Ethernet access in own sofware

Postby junedfird » Tue Apr 16, 2013 6:08 am

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
Software image.jpg
Impeller Software Image
junedfird
Newbie
 
Posts: 0
Joined: Thu Jan 03, 2013 11:40 am


Return to .Net Languages (C#, VB.Net, .)

Who is online

Users browsing this forum: No registered users and 0 guests