07-19-2013 02:51 AM - edited 07-19-2013 02:52 AM
Hi
Im currently working on a showcase unit. Its a generator connected to a crank, so students and other can se and feel how much is needed to produce power.
So, the whole thing is controlled by a NI USB-6008 unit. The signals I get inn are the voltage on the generator and how much current is flowing.
But the problem is that I cant figure out how I can program the calculating of how much energie has been produced by the individual try.
So when someone starts to move the crank, the last energie output is deleted, and it start to calculate the new one and puts it up on the screen.
Best regards
Aksel Hanssen
heres a littel video of how far i have gotten now.
http://www.youtube.com/watch?v=ABj_iDhzH5g
And i have added the my messy program.
07-19-2013 08:20 AM
You say you need you calculate energy but your video shows a display of power (watts). Insantaneous power is simply P=VI. If you then wish to calculate the total energy generated during their attempt, you need to integrate the Power vs Time data (area under curve). Scaling this data will let you report it in terms of kWh (or other units).
Could you repost the code in 2009 version?
07-22-2013 01:41 AM - edited 07-22-2013 01:45 AM
So one of my superiors thought out this sulotion, using a feed back node.
also added the project as a 9.0 version.
07-22-2013 02:52 AM
Hi loyfah,
attaching the LVPROJ file will do no good, it's only a description of all other items collected in the project. Attach VIs or ZIP the whole project...
As a simple advice you should start like that:
(You know LabVIEW2009 already has a "clean up" tool?)