more instances

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Brian
Posts: 2
Joined: Mon Feb 25, 2008 11:25 pm

more instances

Post by Brian »

Is it possible to edit and simulate flowchart with more instances? Typically SPI or CAN need it.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: more instances

Post by Benj »

Hello Brian

More instances?
Sorry but not sure I understand your question.

Brian
Posts: 2
Joined: Mon Feb 25, 2008 11:25 pm

Re: more instances

Post by Brian »

I mean two PIC for example which are connected to each other through SPI.
It is not clear how you simulate CAN in one chart because CAN assumes more than one device.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: more instances

Post by Benj »

Hello Brian

I see what you mean now. Yes this is a problem with the current simulation technique. We are thinking about overhauling this for Flowcode V4.

At the moment the best way to test and troubleshoot your comms programs are by sending the programs to the chips and using debugging LCD or LED messages to show how the programs are functioning.

The CAN analyser supplied with our CAN solution is also very handy for doing this as you can monitor the messages and also inject messages onto the bus.

Generally its a good idea to start simple and work your way up. So check that the comms is working for one message before designing your full system.

This also goes for SPI. Eg if you are reading an EEPROM then write a value, read it back and display it on a LCD or LEDs to ensure it is correct.

Post Reply