From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-21-2014 10:24 PM
hello!When I use the shift register,A problem occur!what I want to use is the serial in shift register function,But found only use parallel shift register,someone can give me any suggestions?(The best way has an example of a serial shift register),thanks!!!
Solved! Go to Solution.
07-21-2014 10:36 PM
@gthydrtyed wrote:
hello!When I use the shift register,A problem occur!what I want to use is the serial in shift register function,But found only use parallel shift register,someone can give me any suggestions?(The best way has an example of a serial shift register),thanks!!!
Sorry, I have no idea what a "parallel" or "serial" shift register is. Could you elaborate on what it is you are trying to do?
Thanks! 🙂
07-21-2014 10:47 PM
Are you talking about extending the length or "history" of the shift register? You can drag the node down to expose a shift register buffer for more than one element.
07-22-2014 12:49 AM
thank your reply! what my meaning is just like I have an array of input of the shift register 1,2,3,4,5,6,7;In the calculation process, I would like to achieve in a row :after 1 finish the calculation ,2 begins,later 3,4,5,6,7,this is Serial;but in labview is Direct the entire array operation,this is
07-22-2014 12:58 AM
Are you using the shift register in while loop? Try using it in for loop, I believe you are looking for "Auto indexing" operation.
If I didn't understand your problem correctly, please attach the code you have developed.
07-22-2014 01:20 AM
I want to achieve :Each element of the array in the shift register Compare with 5,If less than 5, the output is 1, otherwise 0;but as you can see the vi is wrong ;Error reason is because of the shift register only for computing the entire array but not Single element,any suggestion?
07-22-2014 01:26 AM
better to use for loop with auto indexing enabled ( by default ) for input array.
you will get array values one by one.
then compare it with desired value and you can use bollean to 0,1 to get the out array of 0 and 1s.
07-22-2014 01:32 AM
thank you!!
07-22-2014 01:33 AM
thank you!
07-22-2014 01:33 AM
thank you!