Data Logger Readings

General discussion on Libstock website & codes posted on this website.
Post Reply
Author
Message
shaun
Posts: 1
Joined: 19 Jun 2013 15:25

Data Logger Readings

#1 Post by shaun » 19 Jun 2013 15:28

Hi

I am creating a datalogger on MikroC and need help with limiting the number of readings from ANO to six, can you help thank

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Data Logger Readings

#2 Post by filip » 25 Jun 2013 15:15

Hi,

You can make a simple counter which increments after each reading and when you reach 6, just stop to read ADC values.

Regards,
Filip.

jayanthd
Posts: 630
Joined: 08 May 2013 18:31
Location: Bangalore

Re: Data Logger Readings

#3 Post by jayanthd » 08 Dec 2013 00:18

Code: Select all

do{
        adcval = ADC_Read(0);

}while(++cnt < 6);
[HW:] EasyPIC v7, mikroProg PIC, AVR, STM32, PSoC, Tiva, 8051
[SW:] mikroC PRO PIC, dsPIC, PIC32, AVR, ARM, 8051
mikroBasic PRO PIC, dsPIC, PIC32, AVR, ARM, 8051
mikroPascal PRO PIC, dsPIC, PIC32, AVR, ARM, 8051
Visual GLCD, Visual TFT

Post Reply

Return to “Libstock Discussion”