Industry Online Support
Technical Forum
11/5/2009 6:24 AM | |
Posts: 173 Rating:
|
A long time ago, I got some help with randomly generating 4 digital outputs that went to a demultiplexer to randomly address 1 of 16 lines. So, part 2 of your problem could use something similar to how these random values are output on 4 digital lines. For part 1, storing up to 16 sequences, I have the following idea. - put each of the INTEGER values of your binary combinations into several MUX blocks (so if your first sequence value is 116, store this value in the V1 of the first MUX, the next INTEGER value of the binary sequence in V2, next in V3, next in V4, then next in V1 of another MUX etc etc i.e. 4 MUXes) - use an up/down counter to increment a 'pointer' from 1 to 16 and then back again to 1 with the necessary reset - convert the pointer to a binary address (similar to part 2 above) - use this binary address to select the correct MUX and V value (sequence integer value) to output as an analog - reference this analog into another piece of code similar to part 2 (I think into the counter) I cannot write such a piece of code myself, I have just thought of how it could be done with building blocks that I have had help with before Hope you can do somethign with this Aaaaarrrgghhh!!??? AttachmentRandom and binary.zip (458 Downloads) |
11/5/2009 2:06 PM | |
Posts: 2 Rating:
|
Thank you very much for your help! I will see how I can use your advise to solve my probleme! I will let you know if I succeed! Thanks again! Rickydou |
11/28/2009 11:27 PM | |
Posts: 5 Rating:
|
Hi there, have you got it, or still need help? Contact me, if so. Good luck!
|
Follow us on