Jump to content
  • 0

Waveforms SDK wavegen question


Juan Castillo

Question

Hi at all,

I need generate a custom signal from an array. If the values in the array are bellow 1, the signal was generated correctly, but if the values in the array are beyond 1v, the generator truncates the output to 1v. The same happend with negative values. Whats happend? here is the code:
 

# signal_array contains custom values between -3 and 3, but the generator truncs to -1 and 1

  1. dwf.FDwfAnalogOutNodeEnableSet(hdwf, c_int(0), AnalogOutNodeCarrier, c_int(1))  
  2. dwf.FDwfAnalogOutNodeFunctionSet(hdwf, c_int(0), AnalogOutNodeCarrier, funcCustom)
  3. dwf.FDwfAnalogOutNodeDataSet(hdwf, c_int(0), AnalogOutNodeCarrier, signal_array, c_int(len(signal_array)))
  4.  dwf.FDwfAnalogOutConfigure(hdwf, c_int(0), c_int(1))  
  5. Thank you very much

 

Regards

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...