09-27-2011 07:31 AM
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.
09-27-2011 07:36 AM
So, do you want to randomly generate the inputs between the two ranges?
09-27-2011 07:37 AM
Random works. Ideal would be a sweep from say 0.001 to 0.005 and back.
09-27-2011 08:42 AM
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)
05-22-2014 10:27 AM
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.