I'm having some issues with the gain and offset input parameters to the niFGen function generator. These parameters do not appear to be working as they are documented, and I want to check to make sure that I'm not overlooking anything.
The Gain parameter is supposed to scale the input signal. The input signal is constrained to be between +1 and -1 V. So by using a gain parameter of 1, the output should be +1, -1. Gain of 2 give +2, -2 (V), and so on... however, I am getting output waveform voltage of +/- 1V with a Gain parameter of .5. If I use a Gain parameter of 1, I get an output waveform of +/-2 V. This does not appear to be opperating correctly.
In addition to this issue, the Offset parameter seems constrained to be less than or equal to half of the value of the gain parameter. If I stay within those boundaries for the offset parameter, the output waveform is offset by the correct amount. If I make the offset to be greater than half the gain parameter, I get an error in niTclk and the signal is not generated.
These problems are preventing me from creating a TTL output waveform. I'm using LEDs to transmit wireless signals and I need to drive them with a waveform between 0 to 5V which I cannot achieve due to the above problems/constraints of these parameters.
Any thoughts on what I might be able to try to overcome these issues?
Thanks,
Matt