cresh Posted September 16, 2021 Share Posted September 16, 2021 Hello everyone, I am trying to generate a custom signal whose nodes I have stored in a .txt file using the WaveForms software developer kit (sdk) library in Matlab. I am having an issue in doing this because the "FDwfAnalogOutNodeFunctionInfo" function does not recognize the constant "funcCustom". You can find attached below the script I am referring to. Did someone have the same problem? How did you solve it? Any help or advice is welcome. Thanks in advance for the attention. script: calllib('dwf','FDwfAnalogOutNodeFunctionInfo',phdwf,outputChannel,custSam,funcCustom); calllib('dwf','FDwfAnalogOutNodeFunctionSet',phdwf,outputChannel,custSam,1); P.S. the variable custSam is used to take the custom signal nodes from the txt file Link to comment Share on other sites More sharing options...
0 attila Posted September 17, 2021 Share Posted September 17, 2021 Hi @cresh Use the value of funcCustom, which is 30. See the SDK manual or the dwf.h for more info. Link to comment Share on other sites More sharing options...
0 cresh Posted September 17, 2021 Author Share Posted September 17, 2021 Hello @attila thank you very much for your fast and exhaustive response. Do you mind if I ask you where can I get a specific manual for these functions? I was using the WaveForms SDK Reference Manual where I thought that funcCustom is set with value 7: Best regards. Have a great week end! Link to comment Share on other sites More sharing options...
0 JColvin Posted October 13, 2021 Share Posted October 13, 2021 Hi @cresh, I checked the WaveForms SDK documentation that comes installed with WaveForms; the value of 30 for funcCustom is specified in the table associated with FDwfAnalogOutNotNodeFunctionInfo function (page 49 of the manual I am reading in the WaveForms installation path). This is also defined in dwf.h ( ../Digilent/WaveFormsSDK/inc/dwf.h on a Windows machine) which you can find by searching for funcCustom. Let me know if you have any questions. Thanks, JColvin Link to comment Share on other sites More sharing options...
Question
cresh
Hello everyone,
I am trying to generate a custom signal whose nodes I have stored in a .txt file using the WaveForms software developer kit (sdk) library in Matlab.
I am having an issue in doing this because the "FDwfAnalogOutNodeFunctionInfo" function does not recognize the constant "funcCustom".
You can find attached below the script I am referring to.
Did someone have the same problem? How did you solve it?
Any help or advice is welcome.
Thanks in advance for the attention.
script:
calllib('dwf','FDwfAnalogOutNodeFunctionInfo',phdwf,outputChannel,custSam,funcCustom);
calllib('dwf','FDwfAnalogOutNodeFunctionSet',phdwf,outputChannel,custSam,1);
P.S. the variable custSam is used to take the custom signal nodes from the txt file
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now