delays in Flowcode
Posted: Mon Dec 22, 2014 10:37 pm
Hi all,
Sorry for my poor English, I am new Flowcode user.
I need to make a power supply control unit with 4 adc for voltage measurement, lcd display to show voltages and any logic for switcing load to power sources.
ADCs, and lcd works good, but I have problem with any additional functions. They looks as very simple, but I dont know how make it.
Main code have ADCs, voltage calculations, lcd. It works good without any delay.
But I need one more separated loop for control lcd backlight, simply momentary press pushbutton activate output for 10sec.
If I add this code to main program, I have a delay 10sec for all program! It is wrong.
And one more... ADC1 and ADC2 is for batteries. Logic need to test battery with testload, before connecting to normal load. I need to activate one test output wich connect to batery a test load (6 ohms power resistor for 24v battery, 4amps test current) for 4 seconds. And at the same time need to be started second delay 3,5sec and after 3,5sec battery voltage need to be measured by adc (voltage on load) and after 0,5sec logic go to next step...
Problem just how to start two or more separated processes at same time and one of them not need to be delayed by any other.
Thanks all for answers,
Sorry for my poor English, I am new Flowcode user.
I need to make a power supply control unit with 4 adc for voltage measurement, lcd display to show voltages and any logic for switcing load to power sources.
ADCs, and lcd works good, but I have problem with any additional functions. They looks as very simple, but I dont know how make it.
Main code have ADCs, voltage calculations, lcd. It works good without any delay.
But I need one more separated loop for control lcd backlight, simply momentary press pushbutton activate output for 10sec.
If I add this code to main program, I have a delay 10sec for all program! It is wrong.
And one more... ADC1 and ADC2 is for batteries. Logic need to test battery with testload, before connecting to normal load. I need to activate one test output wich connect to batery a test load (6 ohms power resistor for 24v battery, 4amps test current) for 4 seconds. And at the same time need to be started second delay 3,5sec and after 3,5sec battery voltage need to be measured by adc (voltage on load) and after 0,5sec logic go to next step...
Problem just how to start two or more separated processes at same time and one of them not need to be delayed by any other.
Thanks all for answers,