Helle, sir:
The reason logic gates won't work on the Square Wave vi's is that the output of them is(are) an ARRAY of samples that LOOKS like a square wave..but really isnt. There are two approaches, depending on how fast you need this to operate. You can either, as you suggested, use a comparitor function to generate a T or an F from your wave amplitude, and then use the BOOLEAN functions to do your AND...this is really slow......or you can use the card itself to generate the waveform...much preferred, if you have the right hardware. Alternatively, you can GENERATE a logical square wave using a case structure inside a loop....wire a T and an F inside one of each of the cases, and then take put a Wait until inside the LOOP....this will set your frequency(s)
Let me know how you fare!
ERic
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705