11-23-2011 10:40 AM - edited 11-23-2011 10:41 AM
Actually that would be really simple to do. Just leave the Power calculation in there, and instead of writing it to an indicator write it to a new graph the same way you did originally.
You'll need to right click on the node leaving the while loop and select "Enable Indexing," Then add a "bundle" block, and run voltage to the upper input and the output of that new index node into the lower input. Finally add in a new XY graph and attach the bundle to the graph.
Try that on your own, if you have trouble I can write another example for you
Here is how that code should look:
11-23-2011 11:03 AM
Hi zach, i tried to do it, see attachment. See if its good. By the way, the graph is not looking too good. Can u pls scale both X-axis & Y-axis for both graphs according like it should be usually. This is a photovoltaic system model.
11-23-2011 11:55 AM
It looks like you got it right.
I'm not sure how you want the graphs to be scaled. Formatting those graphs is pretty straight forward. Just right click on the graph and select properties. It's like excel. You'll want to play around with the scale tab. You may also want to shrink the legend on the second graph because there is no second function being graphed. Just resize it and it should make the second label go away. You can also change any labels you want.
11-23-2011 12:09 PM
🙂 Thanks dear. & What if we want to calculate the fill factor and efficieny from the vi and display the values on the front panel ? ? ?
The equations are: [see attachments]
11-23-2011 12:23 PM
Well, so far in the program we've got an array of power. We can find the max power from that array, but I'm not sure where the other variables are going to come from.
For the fill factor, we'll need to find the open circuit voltage or the short circuit current. Are those parameter that you know? or do those also need to be dynamically calculated?
For the effciency, I'm not sure what power is being put in. Any thoughts?
11-23-2011 12:26 PM
can u give me your example concerning the power vs voltage. I mean can u upload the vi.
11-23-2011 12:30 PM - edited 11-23-2011 12:32 PM
This is the last one I made changes too. It looks pretty much the same as what you posted.
Actually that pic I posted can be drug into LabVIEW and work as a VI too. It's a .png file.
11-23-2011 12:40 PM
for the power vs voltage graph, how can we remove the negative axis ?
11-23-2011 01:04 PM
Just set the minimun of the scale to be zero in the graph properties. Go back to the scale tab and un-check the autoscale box. Then set the min & max manually to what you want.
11-24-2011 10:06 AM
Hello Zach, how u doing. If we want to draw the block diagram of this equation, how will it be done? [see image]. Can we add it to the original vi [see attachment]