Help

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
wayne millard
Posts: 234
Joined: Thu May 31, 2007 2:18 pm
Has thanked: 7 times
Been thanked: 12 times

Help

Post by wayne millard »

Hi Team,

Can anybody please see what im doing wrong.
if you enter a baselenth of 1m press enter.
Then select velocity of 1000m/s then press enter. then press fire it should generate a 1ms start stop time/

Thanks
Wayne M
Attachments
TEST SET.fcf
(31.63 KiB) Downloaded 281 times
Last edited by wayne millard on Wed Feb 16, 2011 7:15 pm, edited 1 time in total.

User avatar
Dan81
Valued Contributor
Valued Contributor
Posts: 268
Joined: Sun Jan 15, 2006 4:07 pm
Location: Albi France
Been thanked: 60 times
Contact:

Re: Help

Post by Dan81 »

Hello Wayne

Can you tell us what you are getting as pulse duration ?

Do you test it in "real" life or is it a simulation ?

Daniel

wayne millard
Posts: 234
Joined: Thu May 31, 2007 2:18 pm
Has thanked: 7 times
Been thanked: 12 times

Re: Help

Post by wayne millard »

Hi,
The simulation seems to work but not when programmed in to the pic and using a oscilloscope both the start and the stop happen at the same time.

Thanks
wayne m

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Help

Post by medelec35 »

wayne millard wrote:Hi,
The simulation seems to work but not when programmed in to the pic and using a oscilloscope both the start and the stop happen at the same time.
On both simulation and real hardware, both stop and start will occur at the same time.
The reason it happens is because just before stop_flag decision icon, you have port c set at 1 since this is masked it will only affect bit 0.
then if stop_flag = 1 then you have got port c1 set at 2, this is also masked, so will not change the state of bit0 to 0 so both C0 and C1 will be at logic 1
For each shot count, do you want start led to go form on to off, then when goes off you want the stop led to go on for a brief time, then back off etc?
If you can explain step by step what events you want to occur e.g. Start led on, after 1ms start led off , stop led on for 500 us etc.
Then debugging will be easier.
In the mean time, see if this one is any better. Not tested on hardware.
Attachments
TEST SET_modified.fcf
(31.63 KiB) Downloaded 279 times
Martin

wayne millard
Posts: 234
Joined: Thu May 31, 2007 2:18 pm
Has thanked: 7 times
Been thanked: 12 times

Re: Help

Post by wayne millard »

Hi medelec35,

Thanks for getting back to me. i will try it in the morning.

Wayne

Post Reply