LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cycle counter in a wave

Hi.

I wonder how I can do to put a cycle counter in a wave that is constantly simulating and which will change the frequency, amplitude, initial force and samples / sec.
 
Thanks.
 
medium.jpg
0 Kudos
Message 1 of 11
(3,398 Views)
The input parameters to this signal generator define how many cycles will be generated. Is that what you are looking for?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 11
(3,375 Views)
Hi Mike.
Yeah so I'm looking for but this wave will be continually changing parameters such as sample rate and this must be taken into account.
I want to know the cycles that do the wave while each wave has different parameters.
 
I explained well?

thanks
0 Kudos
Message 3 of 11
(3,353 Views)
Each time the VI is called you calculate the number of cycles generated. Total those values and you get a total number of cycles.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 11
(3,343 Views)

How do I calculate the number of cycles generated?

0 Kudos
Message 5 of 11
(3,328 Views)

Hi,

 

If you want to generate waves continually, you can add while or for loop.

 

And use parameter "i" inside the loop, and you can know what cycles in your program.

 

 

Patrick 

Certified LabVIEW Developer
0 Kudos
Message 6 of 11
(3,321 Views)

Hi Patrick 

 

I think with the parameter "i" know I can program cycles but not the cycles of the waveform.

 

Thanks.

0 Kudos
Message 7 of 11
(3,306 Views)

Because the counter restarts all the time?

 

Thanks

 

 

 

1.JPG

0 Kudos
Message 8 of 11
(3,258 Views)

Use another Shift Register on the outer loop to hold the count as well.  Right now, the count will be reset each time you run this check (shift register is being initialized to 0 each time the FOR loop is started).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 11
(3,245 Views)

Hello.
Can I have it I can explain graphically? I have little experience in labview.
Sorry.

0 Kudos
Message 10 of 11
(3,234 Views)