The purpose of these properties is best seen in the property pages. These three properties (Gate Source, Gate Mode, Gate Signal) define what signal is used to gate the counter. The gate controls the flow of the pulse train. These three properties define the signal for the gate and how it should be interpreted. The GateSource defines where the signal is coming from (i.e. Counter's Gate pin, PFI line (on connector block), or maybe RTSI line from another board). For some settings of the GateSource (like PFI and RTSI), I also need to specify which specific line. Therefore, if I wanted my gate to be PFI6, I would set GateSource to cwpulsePFIGS (specifying a PFI line) and GateSignal to 6.
The GateMode specifies how to interpret the gate signal. So, now tha
t I specified the signal is on line PFI6, do I want the gate to close when a high TTL signal is coming in? a low TTL signal? on a rising or falling edge?
So if I was connecting a gate signal to PFI6 (on a connector block for my board) and I wanted it to open the gate when this signal was on a rising edge, I would set:
CWPulse1.GateMode = cwpulseRisingEdgeGate
CWPulse1.GateSource = cwpulsePFIGS
CWPulse1.GateSignal = 6
Note: GateSignal does not apply for all GateSources. See the CWPulse property page for which Sources it applies to.
Best Regards,
Chris Matthews
Measurement Studio Support Manager