• 0
kdumont

WaveForms SDK Documentation Mistake

Question

There appears to be a mistake in the WaveForms SDK Reference Manual supplied with the SDK. 

The document says:

Quote

FDwfAnalogIOChannelNodeName(
HDWF hdwf, int idxChannel, char szNodeName[32], char szUnits[16])

But the function actually requires the idxChannel AND idxNode, like this:

Quote

FDwfAnalogIOChannelNodeName(
HDWF hdwf, int idxChannel, int idxNode, char szNodeName[32], char szUnits[16])

I'm running the following code segment to get the different node options:

num_channels = c_int()
dwf.FDwfAnalogIOChannelCount(hdwf, byref(num_channels))
print(num_channels.value, "channels")
for i in range(0, num_channels.value):
    print("Channel", i)
    channel_name = create_string_buffer(32)
    channel_label = create_string_buffer(16)
    dwf.FDwfAnalogIOChannelName(hdwf, c_int(i), channel_name, channel_label)
    print(str(channel_name.value), str(channel_label.value))

    num_nodes = c_int()
    dwf.FDwfAnalogIOChannelInfo(hdwf, c_int(i), byref(num_nodes))
    for n in range(0, num_nodes.value):
        node_name = create_string_buffer(32)
        node_label = create_string_buffer(16)
        dwf.FDwfAnalogIOChannelNodeName(hdwf, c_int(i), c_int(n), node_name, node_label)
        print("  ", str(node_name.value), str(node_label.value))

 

Edited by kdumont

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 1

Hi @kdumont,

I moved your forum thread to a better section so the more experience engineers with WaveForms SDK will see your post.

cheers,

Jon

Share this post


Link to post
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