06-28-2019 06:25 AM
Hello,
I want to get the frequency and duty from the .csv file, please suggest me how could i do this.
Regards,
Rahul.
06-28-2019 06:32 AM
Open the file..
Parse the file..
Do the math...
What part is the problem? Post your best attempt.
06-28-2019 07:34 AM
Thanks for your support.
please find the attached VI, that i have tried.
Thanks
Rahul.
06-28-2019 07:51 AM
Hi Rahul,
I want to get the frequency and duty from the .csv file,
You load the file and display both columns in a graph - ok so far.
Then you search for a certain value in the 2nd column to pick the corresponding value from 1st column.
Then you calculate some frequency with a formula I don't understand…
Which "frequency" are you looking for? Which "duty cycle" are you looking for?
Can you describe both items with respect to that data file?
(Once you do this you should be able to provide correct formulas for both values…)
06-28-2019 08:16 AM
Hi
My csv file has two column time and voltage, the second column starts with high 14v so i searched for the 0V and then i got the index, i have found the same index in time column and multiplied it by 2 as my waveform having duty of 50%. Then i put the formula of frequency 1/ t. So i get the frequency. And by the same process i will get the duty also.
But if the duty is not 50% then it would be a problem.
Can you please suggest.
Thanks in advance
Rahul
06-28-2019 08:22 AM
Hi Rahul,
multiplied it by 2 as my waveform having duty of 50%. And by the same process i will get the duty also.
So you know the duty, but you still want to calculate it?
Hint: Usually "duty" is the relation of (pulse HIGH time) to (pulse HIGH+LOW time)…