LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to change the initial value of the shift register.

Solved!
Go to solution

I want to change the initial value of the shift register.
I want to set the initial value as -5, and want to raise it up to 5.
Every time I connect the values, it goes back to that value.
If I don't connect the numbers, it starts from 0.
I want to increase the value by -5, -4, -3, and so on.

It's at the bottom left loop in the attached image.
Please answer me.

0 Kudos
Message 1 of 5
(1,651 Views)
Solution
Accepted by topic author ra621

It sounds like you need another loop around all of your code.  Then you can have a shift register on the outer loop to set the initial value of the shift register in the inner loop.



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
Message 2 of 5
(1,628 Views)

wouldn't adding the difference between initializing values to the indexed 'DBL array out' be easier?

 

the DAQmx write loop could use some timing upgrade

CY (expired CLAD)
Message 3 of 5
(1,571 Views)

@ra621 wrote:

I want to change the initial value of the shift register.
I want to set the initial value as -5, and want to raise it up to 5.
Every time I connect the values, it goes back to that value.
If I don't connect the numbers, it starts from 0.
I want to increase the value by -5, -4, -3, and so on.

It's at the bottom left loop in the attached image.
Please answer me.


Can you describe instead what you'd like to have happen in terms of the combination of the two arrays?

It looks like you want to create a pair of values (displacement and pitch?) but without knowing the values of "number of arrays" (配列数) it's hard to guess the desired outcome.

 

It might be easier to do this with a 2D array, if we know the desired outcome.


GCentral
Message 4 of 5
(1,534 Views)

Resolved.
Thank you for your cooperation!

0 Kudos
Message 5 of 5
(1,528 Views)