04-24-2015 05:57 PM
Divide the voltage waveform by the current waveform, then take the average.
04-24-2015 06:17 PM
I have done the calculations and presented them to the teacher. He wants the program to do the calculations. And for me to show him this. Is this possible?
04-24-2015 06:22 PM
@studentproject wrote:
I have done the calculations and presented them to the teacher. He wants the program to do the calculations. And for me to show him this. Is this possible?
Yes. Just do the math with the wavefoms just like you did on paper. If you know the equations, just code those up.
04-25-2015 04:03 AM
@studentproject wrote:
I have done the calculations and presented them to the teacher. He wants the program to do the calculations. And for me to show him this. Is this possible?
Of course it is possible. Anything a calculator can do, LabVIEW can do. Now what calculation are you trying to perform?
What calcuations did you present to your teacher? - that sounds like a good place to start your requirement specification. Maybe you could give a summary in your next post or take a picture of the calculation or otherwise present us with the same information you presented your teacher.
And, what form are your inputs in? The different LabVIEW vis measure and output waveforms in different formats (arrays of doubles, waveform types, dynamic data types) - a snippet of the code you already have would also be useful.
You mentioned phase angle before. That is a completely different approach to the simple R=V/I previously mentioned. Are you measureing the phase angle in your program? Are you trying to give an answer in terms of complex impedence?
Once you learn to clearly state exactly what you want and exactly what you have already, then you stand a chance of getting what you want. Vague questions will just get you vague answers.
04-27-2015 08:38 AM
my teacher wants me to show a complex impedance, using the phase angle difference between the voltage and current waveforms in labview in order to calculate this. I understand the calculations behind impedance to do them by hand but I do not know how to get the values for them in labview, I was told there is a tool I can use in order to pull the array of values off the waveform and plug them in as inputs in the calculations. I currently do not have a proper code as I was originally just showing the waveforms and doing the calculations by hand but this idea was rejected. Is there a way to pull the magnitude values from the waveforms in order to get a complex impedance? I am required to show impedance and phase angle if this is at all possible. I was shown LabView for the sake of 2 classes two years ago so I am just trying to learn what is needed for the program to get the calculations to work properly.
04-27-2015 08:52 AM
this might help
Extract Single Tone Information VI
I'm guessing that with amplitude and phase information you can start doing some calculations.
04-27-2015 09:05 AM
yes that seems like it should help, do you know what tools I could use in order to give it an input of my measured analog waves?
04-27-2015 09:11 AM
Like I said in an earlier post, that depends on what form your waveforms take. Where do they come from, and what data type are they?
Posting the code you already have will get you better answers than vague questions.
04-27-2015 09:12 AM
@studentproject wrote:
yes that seems like it should help, do you know what tools I could use in order to give it an input of my measured analog waves?
That completely depends on how the waveforms are saved. Can you supply the files and how you are reading them?
04-27-2015 09:20 AM
using a test VI from UltimaSerial in order to get my device working. I'm using a DI-149 data logger from DataQ, I am measuring the real time waveform through a little RC circuit I put together to measure the voltage and current. I need to find out how I can get the amplitude values from the wave forms in order to perform the calculation for a complex impedance in LabView. Again I don't have any code for the calculations yet, I have been doing them on paper up to this point, I do not know how to extract the amplitude values off the waveform itself