When I have a sine or ramp wave, I can easily trigger at a specified threshold, but I cannot do the same for a square wave. For example, if I set the threshold to 2V with a buffer length of 100 with a preTriggerPoints of 50, and postTriggerPoints of 50, I'd expect to find that the buffer(50) should contain the ADC count corresponding close to 2000mv. This is indeed the case for sine and ramp waves. I verify this by drawing a green dot at that location. The dot is centred close to 2V with little vertical movement. When I switch to a square wave, the dot moves vertically with both negative and positive values. The square wave seems to be triggering but the centre index of my buffer does not correspond to the threshold value that I set it to. Is there something I am missing?
On a different note, does anybody know if the "ps4000SetNoOfCaptures" function for rapid block mode was left out of ps4000.dll? It is not listed in the API table of contents section of the programmers manual but it is referred to and defined within the manual.. I get an error with no entry-point for this function.
Thanks in advance,