Accumulating timer/counter.

Started by flooby4life in BasicX11 years ago 1 reply

I am prototyping a museum exhibit that has the visitor perform a task in a perceived amount of time and then press a button to see how much time...

I am prototyping a museum exhibit that has the visitor perform a task in a perceived amount of time and then press a button to see how much time it actually took. Does the BasicX have a function that would time an interval and then send that data to a display when prompted? The display will be a digital LED type. I am new to controllers and programming but will have the help of some of my...


Push and Hold Timer

Started by Don Kirby in BasicX12 years ago 11 replies

OK, I'm out of RAM, and the application just keeps getting bigger... This is going to be interesting.. As I look for ways to reduce RAM...

OK, I'm out of RAM, and the application just keeps getting bigger... This is going to be interesting.. As I look for ways to reduce RAM usage, I am open to suggestions for the following: Sub Main is running a Do Loop in which a few different things are going on. At some point during the loop, the user can push a button, which normally doesn't do anything. However, if the user presses ...


Noob needs help with timed tasks

Started by davelcohen2000 in BasicX13 years ago 2 replies

I need to execute a particular task at regular intervals, about every 100 milliseconds, or thereabouts. I have no additional inputs to ...

I need to execute a particular task at regular intervals, about every 100 milliseconds, or thereabouts. I have no additional inputs to accomodate an external timer. Other tasks will be locked when this one runs. My question: How do you execute a task on a regular interval? I did search the archives, but could not find anything appropria


conflict of timer1

Started by Ashwin Sathyanarayanan in BasicX12 years ago

Dear all, I am using a LCD display using pins 5,6,7 & 9 to display on my LCD. And i a= m Using the input capture pin to measure display the...

Dear all, I am using a LCD display using pins 5,6,7 & 9 to display on my LCD. And i a= m Using the input capture pin to measure display the freq. I was wondering = if there is a conflict of the timer 1 by any chnace in these 2 functions. B= ecause i am not able to disply the required frequency on the LCD. Cab any o= ne please hwlp me out on this front. Thanks in advace. Regards, Ashwin O...


Timer, button, Time on delay

Started by mechatronicsccc in BasicX11 years ago

Hello, I also program AB PLCs and try to experment using what I know with programing PLC in RS logic to the microcontrolers. I am working on...

Hello, I also program AB PLCs and try to experment using what I know with programing PLC in RS logic to the microcontrolers. I am working on what would be a time on delay Relay with an enable bit. Or when I press button on pin 12 pin 19 goes high output pin 20 comes on 1 second later The code is below. My Question is: Is there another way to do this or is this it???? Or a bette...


CPUSleep and Watchdog?

Started by Tom Becker in BasicX12 years ago 7 replies

A current project sleeps (CPUSleep) after a period of inactivity. After satisfying myself that the device code is stable, I added a...

A current project sleeps (CPUSleep) after a period of inactivity. After satisfying myself that the device code is stable, I added a watchdog. The watchdog naturally wakes the device up as soon as it sleeps, defeating the low power mode. There appears to be no way to disable the watchdog timer once it's started, so using the watchdog while active _and_


Long wires

Started by erikhunsaker in BasicX7 years ago 3 replies

Hello Group I am building a timer and am using long wires to connect the finish lanes to the Basicx (Max 1000' of Cat5). Nothing but problems...

Hello Group I am building a timer and am using long wires to connect the finish lanes to the Basicx (Max 1000' of Cat5). Nothing but problems so far. With short wires the system works fine. Long wires cause one lane to trigger the other lane. Does anyone know how get the Basicx to work with long wires? ------------------------------------


Protocol for measuring execution time of commands on the 24p

Started by spillikinaerospace in BasicX11 years ago 9 replies

here's a problem for somebody who's smarter than me: i wanted to know how long it takes for the basicx 24p to execute a certain routine that i...

here's a problem for somebody who's smarter than me: i wanted to know how long it takes for the basicx 24p to execute a certain routine that i wrote, so i wrote a program that would make a measurement of the routine in question. i thought it was a real simple thing. by using the 24p's built in timer/counter, the program would mark the time, then do the test routine, then mark the time ag...