this produces a DC voltage for a short time. With the idle function the value should be kept alive, even when I go into the wait or done state. I think, this is preferable against a DAC running for ever.
Is this the right way to do, or is there a much simpler method?
Especially, the funcDC parameter seems to be foreseen for such a case .. but haven't found any documentation about.
Question
tutu
Hi everybody,
I want to create a DC output voltage as simple as possible. In the end I came up with this
ch = c_int(0) ## first DAC channel nd = dig.AnalogOutNodeCarrier dwf.FDwfAnalogOutNodeEnableSet (hdwf, ch, nd, c_bool(True)) dwf.FDwfAnalogOutNodeFunctionSet (hdwf, ch, nd, funcCustom) #dwf.FDwfAnalogOutNodeFunctionSet (hdwf, ch, nd, funcDC) dwf.FDwfAnalogOutNodeAmplitudeSet(hdwf, ch, nd, c_double(1)) cdata = (c_double*1)(*[1.0]) dwf.FDwfAnalogOutNodeDataSet (hdwf, ch, nd, cdata , c_int(1)) dwf.FDwfAnalogOutRunSet (hdwf, ch, c_double(1e-6)) dwf.FDwfAnalogOutIdleSet (hdwf, ch, c_int(2)) ## go to initial value dwf.FDwfAnalogOutConfigure(hdwf, ch, c_bool(True))
this produces a DC voltage for a short time. With the idle function the value should be kept alive, even when I go into the wait or done state. I think, this is preferable against a DAC running for ever.
Is this the right way to do, or is there a much simpler method?
Especially, the funcDC parameter seems to be foreseen for such a case .. but haven't found any documentation about.
best regards and thanks in advance
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.