Can the 'setfreq' command be used with the 'start0... ' series of commands

Tyro

Member
If the 'setfreq' command is at the beginning of the program an error massage ' Start0 must be at the start of the program'.
If the 'setfreq' command is inserted inside the 'Start0' routine another error message appears 'setfreq not allowed in multitask program'.
I also cannot use the very useful '#no_data' command that halves the programing time.
 

hippy

Technical Support
Staff member
As the second error states; "setfreq not allowed in multi task program". You cannot use it at all in a multi tasking program, before or after the START0: label, or even if it is missing.

The #NO_DATA directive worked as expected when I tried it. Perhaps post your full code, details of which PICAXE you are using, its firmware version, and which software and version you using to program the PICAXE.
 

Tyro

Member
Thanks for the swift reply.
It will be Friday before I can get the info and post it.
I have a requirement using multiple threads and was just learning how to use them with a slightly expanded version of the sample in manual 2. I have written no code yet. Baby steps!
 
Top