Turns out the current I got at the end of my Sedona program was not the correct value. That's why today I'll do some quick calculations because you always need to come with a value otherwise you have nothing for comparison.
Desired Current = 272 Watts/120 Volts
Desired Current = 2.266 Amps
This is the Theoretical Current and after that I then measured the Voltage coming out of the Current Transducer and calculated the Actual Current that I should see at the end of my program.
Actual Current = 0.35 Volts X 2
Actual Current = 0.7 Amps
I made sure to have everything on the bench turned on to take an accurate reading because the Actual Current is way higher than my Desired Current. However, when I opened up the Sedona program, my CTVolts was reading 0.96 Volts and I went back to confirm the reading on my DMM and got a similar reading.
My professor wanted to see what the Wattage actually was and got me the Electricity Meter. So I plugged it in and got a reading of 235 Watts rather than 272 Watts, but that doesn't matter.
So, I got to work in Sedona modifying my program to reflect the new readings and display the same Wattage reading as on the Electricity Meter. You can see the program below:
Just like last week, I will go through the program to explain how it works:
CTVolts (UI7): This is the Voltage coming from the Current Transducer, in this case it's 0.95 Volts
WriteFl: A float value with the value of 2 in this case.
Mul2: A multiplayer taking CTVolts and WriteFl (0.95 X 2) to get 1.90 which is my Current.
Current (UO1): The current which is 1.90 Amps.
Mul21: A second multiplier which takes CTVolts and Current (0.95 X 1.90) to get 1.80 which is the Watts because according to Ohm's Law. Watts = Volts X Current.
Watts (UO2): The calculated Wattage value which is 1.80 Watts.
WriteF1: A second Float Value which is 0.57.
Add2: An adder which takes Watts and WriteF1 (1.80 + 0.57) to get 2.37 which is close to what the Electricity Meter was reading. We're almost there.
MeterIn (Meter Initial, UO3): This displays the same value as from the Adder which is 2.37. This is the initial value from the Meter that's not what my professor wanted. He wanted my program to display a number that was the same as the reading on the Electricity Meter.
WriteF2: A third Float Value which is 100.00
MeterTr (Meter True): A multiplier that displays the same displays the same number as one the Electricity by multiplying MeterIn by WriteF2 (2.36 X 100) to 236.18 Watts
Now, I set forth on creating graphics to display the values from my program. Here they are below:
I put in 2 gauges. 1 for Meter Initial and Meter True. I put in 3 bars, 1 for Current Transducer Voltage, 1 for Current, and the last one for Watts. I just wanted to drag, drop, and link the values from my program to these graphics. But, apparently that doesn't work. Am I missing something? Is there something I don't understand? It's not a big deal. Next week, I'll get a classmate to help me finish the graphics.
- Valentin
No comments:
Post a Comment