- Community Home
- :
- Discussion Forums
- :
- Most Active Software Boards
- :
- DIAdem
- :
- How to compute active and reactive power from current and voltage waveforms in script?

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

03-28-2019 06:33 AM

Options

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hello,

I have a file containing the current and corresponding voltage waveforms of several appliances (TDMS). I need to compute in DIADem the relative active and reactive powers using the simple formulas : P=U*I*cos(phi) ; Q=U*I*sin(phi)

Can you help?

03-28-2019 12:10 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Yes, in DIAdem you can multiply whole channels together and perform math functions like sine and cosine on them. Here is an example code that can get you started:

Call Calculate("ch(""Results/P"") = ch(""Raw Data/U"") * ch(""Raw Data/I"") * cos(Pi)") Call Calculate("ch(""Results/Q"") = ch(""Raw Data/U"") * ch(""Raw Data/I"") * sin(Pi)")

Also, you can use the channel calculator to do those calculations manually (or to record them into script):

03-29-2019 08:37 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Thank you! that works!