I had exactly the same problem and tried several things.
In V5 it worked fine on all PWM outputs... In V6 only on RA3 and 4.
Thanks to you all. Such a forum is a great thing!
Best Regards
Jef
Search found 5 matches
- Sun Sep 18, 2016 2:45 pm
- Forum: Flowcode V6
- Topic: Compiler/Programmer Options
- Replies: 8
- Views: 21551
- Thu May 23, 2013 4:15 pm
- Forum: Flowcode V5
- Topic: Sending string to ECIO40
- Replies: 1
- Views: 2105
Sending string to ECIO40
Dear all,
I'm trying to send a string with max. length of 100*8=800 characters to an ECIO40 ?
Is this (because of the length) realistic?
Shall I do this by sending a text file with Hyperterminal via the USB-serial component?
Any suggestions are welcome.
Thanks for your help.
Jef
I'm trying to send a string with max. length of 100*8=800 characters to an ECIO40 ?
Is this (because of the length) realistic?
Shall I do this by sending a text file with Hyperterminal via the USB-serial component?
Any suggestions are welcome.
Thanks for your help.
Jef
- Tue May 22, 2012 7:18 pm
- Forum: Flowcode V4
- Topic: random() function
- Replies: 4
- Views: 4990
Re: random() function
Hi Jef
Have a look at this post.
It has a flowcode program with an example of using the random function.
http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=26&t=8025&p=25967#p22091
Edit:
Dont forget to put the following statement in the supplimentary code box
#include <rand.h ...
Have a look at this post.
It has a flowcode program with an example of using the random function.
http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=26&t=8025&p=25967#p22091
Edit:
Dont forget to put the following statement in the supplimentary code box
#include <rand.h ...
- Tue May 22, 2012 7:16 pm
- Forum: Flowcode V4
- Topic: random() function
- Replies: 4
- Views: 4990
Re: random() function
Hi,
I'm not sure about Flowcode, but most programming languages expect a "seed" value to be used.
So, try to use random(256) instead of random.
This would mean a random value between 0 and 256 -1 will be returned.
Regards,
Ivan
Hello Ivan,
Thanks for your input. I tried this but Flowcode does ...
I'm not sure about Flowcode, but most programming languages expect a "seed" value to be used.
So, try to use random(256) instead of random.
This would mean a random value between 0 and 256 -1 will be returned.
Regards,
Ivan
Hello Ivan,
Thanks for your input. I tried this but Flowcode does ...
- Mon May 21, 2012 8:40 pm
- Forum: Flowcode V4
- Topic: random() function
- Replies: 4
- Views: 4990
random() function
Hi,
I'm trying to get a random number on a led array. In a calculation I'm using output = random(). This works fine in the simulation.
Boostc translates this into the operand rand() but when translating into asm the following errors appear:
error: invalid operand 'rand()'
error: failed to ...
I'm trying to get a random number on a led array. In a calculation I'm using output = random(). This works fine in the simulation.
Boostc translates this into the operand rand() but when translating into asm the following errors appear:
error: invalid operand 'rand()'
error: failed to ...