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

Post your C and C++ discussions here
Post Reply
thomas
Newbie
Posts: 0
Joined: Wed Nov 10, 2010 2:32 pm

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

Post by thomas »

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.

Chris
Site Admin
Site Admin
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

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

Post by Chris »

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

Post Reply