05-03-2006 02:55 PM
05-04-2006 07:23 AM
I thought I would add to the above after doing some more work and investigation into my vi.
I found that one of my problems was that the wait function that I was using was actually a RT module and therefore when using several of these the whole vi was being delayed by the sum of all the wait functions.
However, now that I have solved this I have hit another problem. I have managed to produce a shift register within a while loop which dumps the total correlations contained within it if more than one input is detected within the shift register. This appears to work as I would like it to but requires the use of 64 shift registers which are then bundled into a cluster. My first query is if anyone knows of a more efficient way of doing this, maybe through the use of an array?
In addition to this I also want to dump the value contained within the shift register at a predetermined delay after the input signal has been detected. I am unsure how to do this as I have attempted simply adding a wait function but this then means any inputs received during this wait time go undetected.
I have attached a doc containing the circuit which I am trying to create, it is the long delay strobe which I am now struggling with.
Regards,
Nigel
05-04-2006 11:27 AM
05-07-2006 03:59 AM
Here is my current vi - the one that is not working correctly, plus a screen shot of it.
As mentioned previously I have managed to get the R+A shift register working correctly but am now struggling with the delayed strobe part which should take the input signal and delay it by a set time then use it as the strobe to dumpthe contents of the SR - the problem I dont seemto be able to get around is by delaying the signal I throw away any inpuut signals recieved during the time period of the delay! Therefore I think a second shift register is required but due to the delay needing to be considerably longer then the length of the initial shift register this would make the second SR very large >1000 entries!!!
Any help is greatly apreciated.
Cheers
Nigel
05-08-2006 04:40 AM
05-09-2006 03:54 AM
Many thanks for the reply nayisoe that has really helped to simplify my vi.
Although now that I am using an array is there an easy way to sum all the elements in the array together, i.e. if I have a 10 elements array with 3 elements being equal to 1 and all the others being 0 how can I get the resulting sum (3) out of this array. Sorry if this is a stupid question but I am still very new to all this.
Many thanks again,
Nigel
05-09-2006 03:59 AM
Hi Nige K
Use Add Array Elements found in the Numeric Palette
David
06-21-2006 05:36 AM
06-23-2006 03:30 AM
Hello again,
I am still struggling with the above but do believe that it should be possible if I can substitute the arrays for FIFOs? Does anyone know if this is correct and is so is there an example of a FIFO vi which replicates the operation of a large shift register?
Thanks again for any help,
Nigel
06-26-2006 09:10 AM
The secondary question asked in this forum relating to substitution the arrays by FIFOs is duplicated on the following forum:
http://forums.ni.com/ni/board/message?board.id=170&message.id=191687
Could any further discussion relating to this be continued on the other forum string to avoid complicating this thread.
It's makes information more easily accessible if each thread only contains a single disscussion and ensures other looking for the same information can find it.
Many Thanks
Emma Rogulska
NI UK & Ireland