LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

auto frequency increase of simulate signal vi

Solved!
Go to solution

Hi everyone. I am pretty new to labview. I want to increase the frequency to a simulate signal vi using array of numbers. the for loop should step through the array and output a frequency that will serve as input to the simulate signal vi every 5s changing the frequency from 10hz to 20hz, to 30hz and so forth until bout 1khz.

attached is a vi i have written but something seem not to be accurate

 

0 Kudos
Message 1 of 6
(2,697 Views)
Solution
Accepted by topic author marco73

Hi marco,

 

in general this question boils down to: THINK DATAFLOW!

 

What's the purpose of that inner FOR loop?

Why not use just one loop at all?

 

Maybe like this:

Frequency Simulator_BD.png

Best regards,
GerdW


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

@GerdW,

Thanks so much for the quick response. the loop works fine.

I am only trying to figure out how to include the conditional button to the stop, i mean the red dot that is wired to the stop. in the for loop, it goes away leaving broken wires.

 

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

Hello marco73

 

The red dot is the conditional terminal.

You need to enable it for your for loop.

To enable the conditional terminal, right click on the for loop and select "Conditional Terminal"

Derick Mathew
0 Kudos
Message 4 of 6
(2,637 Views)

Hi Marco,

 

the FOR loop and its abilities is explained in the LabVIEW help (continue to read at "create a for loop"!). Did you care to read the help?

Best regards,
GerdW


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

Thanks for all your contributions

0 Kudos
Message 6 of 6
(2,580 Views)