Test and Measurement Forum

labwindows/CVi prg to read a temp from pico data log (rs232)

Post your C and C++ discussions here

labwindows/CVi prg to read a temp from pico data log (rs232)

Postby thomas » Wed Nov 10, 2010 2:53 pm

Hi all,

i try to communicate to a pico data logger trough rs232. I write a labwindows/CVi programm including a pt104.lib and all links to activate line commands and functions.


if I check that I activate the pt-104-open-unit (1) (TRUE response) and pt104-set-channel (,,,), I have a trouble to get simply the pt 104 temperature value from the pt104-gat-value(&data,1,1,4) and a SetCtrlVal function to read the address. The return is always 0 (FALSE) and I do not see the problem. Definitions of types and variables seems to be ok. Do I have to write a count++ sequence before reading or something else to do ?

Is anybody has a simple program C labwindows/CVI to activate the driver and read the temperature or any idea to simply solve the trouble.
thomas
Newbie
 
Posts: 0
Joined: Wed Nov 10, 2010 2:32 pm

Re: labwindows/CVi prg to read a temp from pico data log (rs

Postby Chris » Tue Nov 16, 2010 9:44 am

Hi Thomas

Thre is a LabView example in the SDK that can be downloaded from the PicoTech website


http://www.picotech.com/software.html


Select PT-104 PT100 (RS232) in step 1 (select the product)

Select Software Development kit in step 2
Chris
Site Admin
Site Admin
 
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests