Page 1 of 1

pid Calculations

Posted: Sun Apr 17, 2011 11:07 pm
by cvanhal
Dear,

I have tried to implement an PID alogrithm, in the attached Flow..

Somewhere it is not correct but i cant find it...

Somebody how have an idea to help me in the good direction..

Thx.
pid-ATMEGA.fcf_avr
(11 KiB) Downloaded 606 times

Re: pid Calculations

Posted: Sun Apr 17, 2011 11:29 pm
by Spanish_dude
You could take a look at this article made by Ben : http://www.matrixmultimedia.com/article.php?a=56

Hope this helps.

Re: pid Calculations

Posted: Mon Apr 18, 2011 8:03 am
by cvanhal
Thx. for Reply.

I tried the examples but the will not import in my AVR Flow V4..

I says i ned an program that is not installed on my computer, could not find out what it is so not lucky for me to look at it..

May be someone can post the Flow with the Calculations so i may put it in AVR flow Code..

Else can someone look to my post and see what i did wrong..

Thx

Re: pid Calculations

Posted: Mon Apr 18, 2011 8:26 am
by Steve
What version of Flowcode for AVR are you using and where did you get it from? These examples import fine to my version.

Re: pid Calculations

Posted: Mon Apr 18, 2011 9:12 am
by medelec35
Hi cvanhal,
Did you try to import by 1st running Flowcode, then use File/import.. menu?
Note: you will need to select type of file or select all files in the new open window.
cvanhal wrote: I says i ned an program that is not installed on my computer, could not find out what it is so not lucky for me to look at it..
This suggests you tried to load the Flowchart that is meant for a different Flowcode version by double clicking on the file.

If you have one type of Flowcode e.g Flowcode for AVRs, and you want to load a different type of flowchart e.g Flowcode for PIC, then only way to load it is via File/import.. method.

Re: pid Calculations

Posted: Mon Apr 18, 2011 9:29 am
by cvanhal
I have V 4.6.61

Flowcodefor AVR.. I did with Import option sootherPIC files will load..

this is protesting anyway..

Thx

Re: pid Calculations

Posted: Mon Apr 18, 2011 10:07 am
by cvanhal
I Impoted the files here the fault enouncenets the flow code gives..

greetings.
fout flowcode-1.jpg
(121.04 KiB) Downloaded 2545 times

Re: pid Calculations

Posted: Mon Apr 18, 2011 10:43 am
by Benj
Hello,

First of all you must make sure you are importing the file. Eg File -> Import and not File -> Open.

I have not been able to replicate the problem you are describing here but I have found a reason why the simulation of the PID example is crashing Flowcode.

Basically the gLCD component resource file is slightly older then the PIC version and this is causing the crash. I have attached an updated set of AVR gLCD component files which can be copied into the Flowcode AVR V4/Components directory before starting Flowcode. Hopefully this should fix your problem.

Re: pid Calculations

Posted: Mon Apr 18, 2011 12:17 pm
by cvanhal
Ben,

what i did was as follow.

Unziped your files and replaced them in Flowcode, to make sure it is well don i got the mesage that the files allready exist and i had to replace them..

when i did this and checked the creation date and that was to day so the files are replaced correctly..

unfotunatly the problem still exist see here is the fault report..

I have no idea what could be the problem..

Iam sorry but can you guys not post an AVR file that is saved in FLOW V4 AVR???... to see if i can open that file without problems..

Thx..
fout2_001.png
fault report
(105.31 KiB) Downloaded 2524 times

Re: pid Calculations

Posted: Mon Apr 18, 2011 12:19 pm
by cvanhal
i use windows 7 have no other OS available as maybe that caus the isue??..

Thx all to try and solve this issue

Re: pid Calculations

Posted: Tue Apr 19, 2011 4:12 pm
by Benj
Hello,

The source of the import problem has now been found and resolved. The AVR versions of the files are now available from here.

http://www.matrixmultimedia.com/mmforum ... 278#p24087