10-16-2006 12:49 PM
10-16-2006 01:04 PM
10-16-2006 01:43 PM - edited 10-16-2006 01:43 PM
There's a lot of different ways to do this. If you go with numeric increment, you'll also have to clear it periodically if you only want to check the last 4 out of 6. One way is with a shift register. If you drag the shift register on the left side down, you get previous iterations. Then it's just matter of counting how many of the previous iterations and current are true. Here's an example.
Message Edited by Dennis Knutson on 10-16-2006 12:44 PM
10-18-2006 10:40 AM
10-18-2006 11:00 AM
10-19-2006 09:24 AM
10-19-2006 09:39 AM
Sure there other ways. You can create a queue of 6 elements and each iteration dequeue all of them. You can create an array with only 6 elements and discard the oldest. I think the shift register is about the most straight forward to implement and it's pretty obvious what is going on by just looking at the diagram.
Look at the 'Action' options in the Express VI. If you've chosen the save it to one file, you can also select 'Use next available file name'. You can also select 'Append to File' so that you have one file with multiple results. The other option is 'Save to series of files'. Click the hlpe button for further information. You can also wire something up to the File Name input of the Express VI if you want to do some file name creation in your VI.
10-20-2006 08:05 AM - edited 10-20-2006 08:05 AM
Message Edited by DFGray on 10-20-2006 08:06 AM