I can’t immediately see which sketch you are using, so I shall tell you how to find out what the format is for using emonLib.
First, look at your sketch. Somewhere near the top, and certainly above setup( ), you’ll see a line like
EnergyMonitor ct1, ct2, ct3, ct4;
This defines instances of the class “EnergyMonitor”, calling them “ct1”, “ct2”, etc.
Now the class has “methods” (in reality functions, that do things), and variables; these are defined in the emonLib header file emonLib.h. You may only use those declared as “public”.
To set up and initialise the class instance (ct1 in this case), in setup( ) you do
ct1.current(1, Ical1); and
ct1.voltage(0, Vcal, phase_shift);
and then in loop( ), to calculate the rms and average values of those inputs you defined in the initialisation, you do
ct1.calcVI(no_of_half_wavelengths,timeout);
When you’ve done that, all 5 variables listed as “public” are available to you: realPower, apparentPower, powerFactor, Vrms & Irms, and you access them as you say with the syntax
ct1.Irms
(But it’s not a “call” to a method/function/subroutine, you’re simply accessing the variable.)
Therefore, “ct1” specifies the instance that you associated with c.t. channel 1 in the initialisation, and “Irms” picks out the variable associated with that instance.
You can do “ct3.apparentPower”, “ct4.powerFactor”, or if you called the class instances Tom, Dick and Harry, you could have Harry.Vrms & Tom.realPower.