LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculation of Frequency and duty from the .csv file.

Hello,

I want to get the frequency and duty from the .csv file, please suggest me how could i do this.

 

Regards,

Rahul.

0 Kudos
Message 1 of 6
(3,353 Views)

Open the file..

Parse the file..

Do the math...

 

What part is the problem? Post your best attempt.

0 Kudos
Message 2 of 6
(3,349 Views)

Thanks for your support.

please find the attached VI, that i have tried.

Thanks 

Rahul.

 

 

0 Kudos
Message 3 of 6
(3,331 Views)

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…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(3,325 Views)

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

0 Kudos
Message 5 of 6
(3,317 Views)

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)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(3,315 Views)