Test and Measurement Forum

C# SDK for PT-104 USB

Post your .Net discussions here

C# SDK for PT-104 USB

Postby junedfird » Sun Mar 03, 2013 5:16 am

Hi Peter/Martyn,

Can you please send SDK for C# for PT-104 (USB)?

I need it desperately.

Thanks!

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

Re: C# SDK for PT-104 USB

Postby Martyn » Sun Mar 03, 2013 8:40 am

The SDK can be downloaded from the software tab on the website. I am not sure if there's a C# example so please check.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2350
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: C# SDK for PT-104 USB

Postby junedfird » Sun Mar 03, 2013 9:03 am

Hi Martyn,

No, there is no c# example.

Anyway, we have made the software.

Thanks!

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

Re: C# SDK for PT-104 USB

Postby Martyn » Mon Mar 04, 2013 7:15 am

I have checked and we currently don't have C# for the PT104, and as yet I haven't put together a sample for anyone. However we do have code for the CM3 which uses the same driver model so check out the sdk for that device and you may find some useful code.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2350
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: C# SDK for PT-104 USB

Postby junedfird » Sat Mar 23, 2013 6:36 am

Dear Peter/Martyn,

We have developed a full software for reading the four channels of PT-104.

Ch1 and 2 will be used for Temperature logging. We have inserted a lookup table of the PRTs for temperature lookup from resistance. This is working absolutely fine.

Ch3 and 4 will be used for pressure logging. This is giving problem.
Please see the attached file, highlighted reading of Ch4 (Discharge Pressure). Every few seconds, it is giving faulty readings. Similarly, Ch3 is also giving faulty reading.

The maximum voltage which PT104 can sense is 2.5V, but it is returning a value of 42.5xxxxxx Volts, because of which, the pressure is getting calculated wrongly.

I am using pressure transmitter which has linear relationship between pressure (bar) and Voltage. (P = m * V + C)
Is there any problem in the SDK for voltage reading? Your help would be appreciated.

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

Re: C# SDK for PT-104 USB

Postby Martyn » Mon Mar 25, 2013 7:27 am

Have you used the correct values in UsbPt104SetChannel there are four voltage types.

"Single or Differential" and "115mV or 2500mV"

and 42.5 looks like a value you would read with the wrong setting.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2350
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: C# SDK for PT-104 USB

Postby junedfird » Mon Mar 25, 2013 7:53 am

Hi MArtyn!

Thanks for the response.

Yes, we have selected it properly. We have selected 6 as detailed in your manual. No. 6 is for 2500mV voltage selection.

Still we are getting higher voltage value. This is not coming continously but after every 4-5 reading.

A quick response would be appreciated as I am working with the developer right now.

Thanks!

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

Re: C# SDK for PT-104 USB

Postby Martyn » Mon Mar 25, 2013 8:11 am

Can you post your project so that I can look at the code.

The previous attachment was also missing
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2350
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: C# SDK for PT-104 USB

Postby junedfird » Mon Mar 25, 2013 8:46 am

Martyn,

Can you please provide your personal/official mail ID?

I will post the code on it.

I hope you will understand as I cannot post it here in public.

Thanks!

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

Re: C# SDK for PT-104 USB

Postby Martyn » Mon Mar 25, 2013 8:47 am

That's fine - support@picotech.com
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2350
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: C# SDK for PT-104 USB

Postby junedfird » Mon Mar 25, 2013 9:46 am

Hi Martyn,

I have just sent you email with attachment on support ID.

I am using 4-20mA pressure transmitter through conditioner. This conditioner converts 4-20mA signal to 0-2.5V output which is fed to the PT-104.

When i physically change the pins at PT-104, the problem shifts from Ch4 to Ch3.

Hoping to get a resolution at the earliest.

Thanks!

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

Re: C# SDK for PT-104 USB

Postby junedfird » Mon Mar 25, 2013 11:10 am

Martyn,

It is to be noted that I am not getting faulty voltages in any channel in Picolog Recorder. I am only getting faulty readings when using my own software.

Thanks!

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

Re: C# SDK for PT-104 USB

Postby junedfird » Mon Mar 25, 2013 11:39 am

Martyn,

I have send a link to you on support as well your personal ID.

Please download the program from there.

Thanks!

Juned
Attachments
UsbPt104 ( Pressure Reading )1.rar
Pressure measurement
(41.74 KiB) Downloaded 210 times
junedfird
Newbie
 
Posts: 0
Joined: Thu Jan 03, 2013 11:40 am

Re: C# SDK for PT-104 USB

Postby Martyn » Mon Mar 25, 2013 12:57 pm

When you get the strange readings can you check what the return code is from the UsbPt104GetValue function call as this may give an indication of the problem.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2350
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: C# SDK for PT-104 USB

Postby junedfird » Mon Mar 25, 2013 3:11 pm

Hi Martyn,

Will do so.

However, what are your comments on the files I have sent?

Thanks!

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

Next

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

Who is online

Users browsing this forum: No registered users and 0 guests