06-04-2010 06:09 PM
Thanks. I'm thinking I might have misconfigured the "Use Programmatic Input" parameter.
I will check out these VIs next week.
Thanks again for all your help.
06-07-2010 02:17 PM
Your example does exactly what I have been trying to do.
To summarize - create analog output signal using arbitrary sampling rate
use Statistics Mean step to convert to scalar
add a Generate DAQmx Analog Output (GDAO) with a sampling period = total run time divided by desired number of steps in staircase
wrap these steps in a sweep of the Create Analog Signal Offset (V) from minimum volts to maximum volts in staircase, set iterations from 0 to number of steps in the staircase.
To decrease the voltage step increment, use fewer iterations (steps) and increase the GDAO sampling period proportionally.
My previous version lacked output because I did not understand that I needed to check Use Programmatic Output in the GDAO step, i.e. take voltage from last step as input. With Use Programmatic Input unchecked, I was outputting an arbitrary voltage (in this case Zero).
Many thanks.