Flowcode 5 features

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
echase
Posts: 429
Joined: Mon Jun 11, 2007 11:55 am
Has thanked: 49 times
Contact:

Flowcode 5 features

Post by echase »

Just spotted that Flowcode Pro 5 is out and interested that virtual networks is mentioned. I have a proposed design that takes two sinewave inputs into one simple PIC. It multiplies the values of those and triggers a second simple PIC based on the multiplied value, which also takes in one of these sinewaves.

Questions are:-

1) Can I simulate both PICs at once?
2) Is there a function generator to simulate the sine waves?
3) If I customise the C code of a component will that be reflected in the simulation? (Usually my changes do not actually change the component’s function but rather just fix limitations that cause the component to not quite work as it should in my application.)
4) If I add freestanding C Code lines will those be simulated?


On Flowcode Pro 3 with a similar one PIC system I had to simulate the sine wave with a slider and also press switches at the zero crossing points, but it is very difficult to time these right and it is very slow.

User avatar
Steve
Matrix Staff
Posts: 3418
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Flowcode 5 features

Post by Steve »

I'm afraid the answer to most of your questions is "no". C code is not simulated, and we don't yet have stimulus on simulation inputs.

The VNET feature has not changed between V4 and V5 and currently only works with CAN, RS232 and pin i/o inter-connections. We plan to expand this in a future release.

echase
Posts: 429
Joined: Mon Jun 11, 2007 11:55 am
Has thanked: 49 times
Contact:

Re: Flowcode 5 features

Post by echase »

Steve wrote:
The VNET feature .........currently only works with ......... pin i/o inter-connections.
That should work as two Os on one PIC drive 2 Is on the other.

Is V3 code importable into v5 with no need some rewriting?

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: Flowcode 5 features

Post by Benj »

Hello,

There shouldn't be any issues with opening a v3 file into v5. Any issues such as component updates/changes should be flagged to you on opening the file.

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

Re: Flowcode 5 features

Post by medelec35 »

Hi echase,
Re 2)
I have posted an article here:
http://www.matrixmultimedia.com/mmforum ... 26&t=10088
That uses a third part software to run a script and operate any key sequence in any order.

You can key map a pot and alter script so pot goes in one direction then the other.
Not sure how fast maximum speed will be, but at least process can be automated as opposed to repeatedly pressing keys or manually adjusting pot.

Not sure if that would help or not?

Martin
Martin

echase
Posts: 429
Joined: Mon Jun 11, 2007 11:55 am
Has thanked: 49 times
Contact:

Re: Flowcode 5 features

Post by echase »

Thanks Martin, that should help. Although it's not a sine wave in my case a square wave is a huge step forward. It's to simulate a 50Hz signal.

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

Re: Flowcode 5 features

Post by medelec35 »

Hi echase,
The script I posted will produce a square wave.
Would you mind letting me know how you get please?

Thanks

Martin
Martin

dsimiyu520
Posts: 1
Joined: Fri May 02, 2014 7:01 am
Contact:

Re: Flowcode 5 features

Post by dsimiyu520 »

My name is Daniel. Planning to build an egg incubator using flowcode and pic 18f4550 c for temperature and humidity controller and automatic motor turn can someone assist in code making thanks
DANIEL
<LINK REMOVED>
Last edited by EtsDriver on Sun Aug 27, 2017 7:55 am, edited 1 time in total.
Reason: Removed link

Post Reply