07-20-2022 05:20 AM
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.
Solved! Go to Solution.
07-20-2022 06:29 AM
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.
07-26-2022 12:04 AM
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
07-26-2022 11:40 PM - edited 07-26-2022 11:44 PM
@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.
07-26-2022 11:45 PM
Resolved.
Thank you for your cooperation!