11-17-2015 07:16 PM
im trying to plot the phase angle from the build wave form function into Polar Graph, I have tryed to use the AMP-FREQ function but wont take it also used fundemental vector function to get complex roots and then convert to polar then to a cluster but still nothing. Would greatly appreciate some advice. atttached is code snippet.
11-17-2015 07:38 PM
I do not have the Electrical Power addon so I cannot run your VI.
It would be helpful if you include some typical data. When Array, Numeric, and Time Stamp have typical data, stop the VI. From the Edit menu select Make Current Values Default. Then save the VI. Post that VI so that we can work with your data.
All the overlapping controls and indicators on the front panel make it difficult to see what is happening. Move them around and give them meaningful names like "dt" for Numeric.
I do not see a polar plot graph on your VI.
All of the subVIs you use generate a single data point out which represents some characteristic of all the data in Array. To get a plot you need an array of data. How are you planning to use this VI? Will it be a subVI which is called each time a new array of data is available? If so, the phase for each set of data can be accumulated into an array in the loop which contains this VI as subVI and the polar plot would be in that calling VI.
Lynn
11-17-2015 10:31 PM
Open LabVIEW. See the menu item called "Help"? Click it, choose LabVIEW Help, go to Index, and type "polar". Is that so difficult? You can learn a lot by using the built-in Help ... There are also built-in Examples.
Bob Schor
11-18-2015 11:11 AM
Hello thanks for your comment. I should of been clearer this is serial data that uses a producer-consumer loop, the overlapping you see is just the values sent to a cluster to be uploaded into a database. Also yes its just a subvi vi that calculates the phase angle relative to time as the data is sample . Im not to sure what you mean by this
"the phase for each set of data can be accumulated into an array in the loop which contains this VI as subVI and the polar plot would be in that calling VI."
if i am using the amp-frequecy to get the phase as the data is being sampled and the phase is always changing then why couldnt i just have a polar graph to show angle at that time each time. Iam not using the polar graph cause it wont connect thats why.
I attached better screen shot of VI,
11-18-2015 11:33 AM
Please do not attach pictures of your code, but rather attach the code (i.e. the VI) itself. Not only can we not "run" a Picture, but in order to try out the "fix" we would suggest, we'd have to expend considerable unpaid effort to duplicate your code from the picture (and, if the code involves a Case Statement, we'd have to "guess" at the other cases).
Did you see my previous note? There is even example code to make polar plots. If all you want to do is to plot phase as a function of time, that's even easier ...
Bob Schor