JuanThePawn Posted August 9 Share Posted August 9 I'm trying to set the drive strength of an AD3 DIO with FDwfDigitalIODriveSet(), e.g.: + int slew = 0; + double amp = 0.008; + FDwfDigitalIODriveSet(dev, 0, amp, slew); + FDwfDigitalIODriveGet(dev, 0, &, &slew); + printf("amp: %f slew %d\n", amp, slew); .. but Get() gives no indication that my setting took effect: amp: 0.000000 slew 0 Am I using the API properly? (I also tried specifying amp = 8.0, just in case the method expects mA, not A). Link to comment Share on other sites More sharing options...
1 attila Posted August 9 Share Posted August 9 Hi @JuanThePawn I can confirm it is Set correctly as amps, for example 0.008 is fine. The problem is with the Get function, which truncates the returned value. Fixed for the next sw version. Thank you for the observation. Link to comment Share on other sites More sharing options...
Question
JuanThePawn
I'm trying to set the drive strength of an AD3 DIO with FDwfDigitalIODriveSet(), e.g.:
+ int slew = 0;
+ double amp = 0.008;
+ FDwfDigitalIODriveSet(dev, 0, amp, slew);
+ FDwfDigitalIODriveGet(dev, 0, &, &slew);
+ printf("amp: %f slew %d\n", amp, slew);
.. but Get() gives no indication that my setting took effect:
amp: 0.000000 slew 0
Am I using the API properly? (I also tried specifying amp = 8.0, just in case the method expects mA, not A).
Link to comment
Share on other sites
1 answer 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