Jump to content
  • 0

How to generate custom signal from txt file using WaveForms sdk


cresh

Question

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

  • 0

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:

 

immagine.png.17801b4ca1b1cdbd41640667b3fa5147.png

 

Best regards.

Have a great week end!

Link to comment
Share on other sites

  • 0

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

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...