Test and Measurement Forum

ADC11 and C++

Post your C and C++ discussions here

ADC11 and C++

Postby Tim Toftgaard Jensen » Thu Nov 27, 2003 5:50 pm

I have some problems getting the right measurements from ADC11 to C++.

I measure temperature with af termistor within the rage of 0 - 700 mV

When I see the recording in the picorecorder the mV increases steady in a secure and fine way, but when I see the mV in my C++ programme its start fine when the rise in temperature is high, but when the rise i slowly the mV i jumping up and down (f.ex mV: 522, 527, 518, 529,535, 528 .....). When the picorecorder is measuring at the same time, it wil steady increase, whitout jumping up and down (f.ex. V: 0.522, 0.527, 0.529, 0.529, 0.535, 0.538 ....).
I looks like I am not getting the right signal ???
Tim Toftgaard Jensen
 

Postby markspencer » Fri Nov 28, 2003 9:03 am

Hi,

The driver that you are using for your C++ program and the driver that is being used with Picolog ar one and the same. Check that you are using the same version, this can be done via the date time properties.

When you are collecting the readings with you own application are you collecting it at the same time interval in Picolog. Check whether you have it set to 'single' or 'take as many samples as possible', this can be found in the 'Sampling Rate' window.

Since both are using the same drivers and functions, there is no reason that one would retrun correct values and the other incorrect, I would also not recommend having both applications open at the same time.

Best regards,
Regards,

Mark Spencer
User avatar
markspencer
Site Admin
Site Admin
 
Posts: 598
Joined: Wed May 07, 2003 9:45 am

Postby Guest » Sat Nov 29, 2003 8:56 am

Date time properties ? What is that - how can I check it ?

Tim
Guest
 

Postby markspencer » Mon Dec 01, 2003 8:18 am

Hi,

If you use the mouse and place it over the files Icon then right click and select properties, the Date Time stamp is displayed.

Best regards,
Regards,

Mark Spencer
User avatar
markspencer
Site Admin
Site Admin
 
Posts: 598
Joined: Wed May 07, 2003 9:45 am

Postby Guest » Sat Dec 06, 2003 3:24 pm

It is the same drivers, but still the samme problem.

Which code do I need to read on the picolog and use measurements every second in my C++ ?

Tim
Guest
 

Postby markspencer » Mon Dec 08, 2003 9:04 am

Hi,

To get readings back with the ADC-11 you will need to open the unit. If you what to get just one sample back use the ADC11_get_time_and_value.

To get more than one value back use the set_interval, and the get_times_and_values.

All this can be found in the ADC-11's manual, under 'Writeing your own software'.

Best regards,
Regards,

Mark Spencer
User avatar
markspencer
Site Admin
Site Admin
 
Posts: 598
Joined: Wed May 07, 2003 9:45 am


Return to C and C++

Who is online

Users browsing this forum: No registered users and 2 guests