LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create 4 bit lfsr in labview

My previous post told you exactly what was to the left of the loop. 
 
If you can't figure out the difference between a FOR loop and a WHILE loop you have much bigger problems than designing a LFSR.  The attachment  http://courses.ece.uiuc.edu/ece463/SP08/labs/LVtraining/LVtutorial.htm  in your previous post even identifies which is which.
0 Kudos
Message 11 of 23
(2,399 Views)
Yes i have found out that it is a FOR loop.I am now trying to locate the 8bit integer and the boolean array...how do i navigate to these features. Also when i added the 4 shift registers on the left hand side, they came up on the right hand side as well. How do i obtain just one shift register on the right hand side of the for loop as shown on your diagram. Thanks.
0 Kudos
Message 12 of 23
(2,385 Views)
One shift register. On left side right click and Add Element.
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 13 of 23
(2,381 Views)

TwGomez, i know how to add shift registers. My problem is when i add four on the left hand side, four will appear on the right. What i am trying to do is get four on the left and then one on the right, the full diagram i am trying to achieve is in the link below.

http://forums.ni.com/attachments/ni/170/315341/1/4%20bit%20LFSR.PNG

0 Kudos
Message 14 of 23
(2,378 Views)
Read more carfeully, I'll re-explain it...
Add one shift register (which you know how to do).
Right click on the left side of the shift register and select "Add Element" and that will do what you want....
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 15 of 23
(2,374 Views)
Or you could read this NI document on loops and shift registers.  http://zone.ni.com/reference/en-XX/help/371361D-01/lvconcepts/for_loop_and_while_loop_structures/
0 Kudos
Message 16 of 23
(2,368 Views)

Thanks TWGomez your're a lifesaver! Now how do you navigate to the 8bit integer and boolean array? They are situated to the left of the shift registers. The link is posted below. Anyone can help if they want to as well, thanks.

http://forums.ni.com/attachments/ni/170/315341/1/4%20bit%20LFSR.PNG

0 Kudos
Message 17 of 23
(2,359 Views)
thanks guys i got it working !!! YESSSSSSSSSSSSSS Smiley Very Happy. I am now wondering whether you guys could help me on another question....:manwink:.
  1. Show, using LabVIEW, how a BILBO can be used as a pseudo-random pattern generator.

Can you guys help????????????????

0 Kudos
Message 18 of 23
(2,339 Views)
Is this a homework assignment?
Dn't you have rules against using forums for help with homework?
Anywho you already have the answer...
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 19 of 23
(2,336 Views)
Well i already had the info, and i just needed a little help putting it all together. Besides it was  a research assignment and we were allowed to use the internet. The fact is i've learnt a lot thanks to you guys.
 
Anyways, you say i have the answerr?  I know the circuilt can be used as a BILBO, but i thought you had to add extra bits into it?????? Please tell me if this is the case..or not.... Thanks
0 Kudos
Message 20 of 23
(2,332 Views)