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
Help
Moderator: Benj
-
wayne millard
- Posts: 234
- Joined: Thu May 31, 2007 2:18 pm
- Has thanked: 7 times
- Been thanked: 12 times
Help
- 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.
-
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
On both simulation and real hardware, both stop and start will occur at the same time.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.
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
