LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

varying constants in a loop

I have a VI that drives two servo motors with a sinusoidal input. Currently these inputs have a constant frequency. Is it possible for me to have the inputs vary within a range of two different values for as long as the loop is running?

 

Thank you.

0 Kudos
Message 1 of 5
(2,455 Views)

So, do you want to randomly generate the inputs between the two ranges?

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 5
(2,452 Views)

Random works. Ideal would be a sweep from say 0.001 to 0.005 and back.

0 Kudos
Message 3 of 5
(2,450 Views)

And you're initializing the COM port twice in the loop because... ?

 

Generate your array of values using the Ramp Pattern VI. In your loop pick out the required element as a function of the loop iteration modulus the size of your array.

 

NOTE: Do not have the VISA Configure Serial port inside of loops. Initialize once outside the loop, do your communication inside the loop, and then close (once)

Message 4 of 5
(2,437 Views)

Hi!!

I have to create simulation of biology system and now i'm stucked with the case of changing the value of the constant. I mean I want that the program will change the constant automaticaly to run the relative simulation to study the influence of the parameter variation on the system dynamics.

 

 

0 Kudos
Message 5 of 5
(2,400 Views)