C# SDK for PT-104 USB

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

C# SDK for PT-104 USB

Post by junedfird »

Hi Peter/Martyn,

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

I need it desperately.

Thanks!

Juned

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

Re: C# SDK for PT-104 USB

Post by Martyn »

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 Support Manager

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

Re: C# SDK for PT-104 USB

Post by junedfird »

Hi Martyn,

No, there is no c# example.

Anyway, we have made the software.

Thanks!

Juned

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

Re: C# SDK for PT-104 USB

Post by Martyn »

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 Support Manager

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

Re: C# SDK for PT-104 USB

Post by junedfird »

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

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

Re: C# SDK for PT-104 USB

Post by Martyn »

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 Support Manager

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

Re: C# SDK for PT-104 USB

Post by junedfird »

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

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

Re: C# SDK for PT-104 USB

Post by Martyn »

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

The previous attachment was also missing
Martyn
Technical Support Manager

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

Re: C# SDK for PT-104 USB

Post by junedfird »

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

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

Re: C# SDK for PT-104 USB

Post by Martyn »

That's fine - support@picotech.com
Martyn
Technical Support Manager

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

Re: C# SDK for PT-104 USB

Post by junedfird »

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

Post by junedfird »

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

Post by junedfird »

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 674 times

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

Re: C# SDK for PT-104 USB

Post by Martyn »

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 Support Manager

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

Re: C# SDK for PT-104 USB

Post by junedfird »

Hi Martyn,

Will do so.

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

Thanks!

Juned

Post Reply