Jump to content
  • 0

CreateDaqDevice resetting output pins


Ian McCutcheon
 Share

Question

I have a .Net program that is using the UL to program a USB-1208FS-Plus.  I configure port A to be an output port.  I set some of the pins output to high and some to low. If I then exit the program and start it up again I notice that when I call CreateDaqDevice the pins all go high momentarily.  Is there a way to leave the state of all of the pins alone so I don't have this transient when restarting the program?

Thanks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hello @Ian McCutcheon.

With the USB-1208FS-Plus, all digital I/O lines are pulled high to USB +5 V with a 47 kΩ resistor by default.  The configurable state of the digital I/O's, in a software application, are not saved when you exit the application.

Also, the power ON and reset state of the digital I/O lines defaults to 'inputs'.

https://www.mccdaq.com/pdfs/manuals/USB-1208FS-Plus.pdf

Regards,

Fausto

Link to comment
Share on other sites

  • 0

Fausto, Thanks for the reply.  I guess that I was hoping that there would be a way to create a daq instance without resetting the device when my program restarts. I gather that calling CreateDaqDevice resets the state of all of the digitial io lines to inputs?  What is interesting is that if I then set them back to outputs the state of the pins when I exited the program is restored.  Hence I was hoping I could somehow eliminate this "glitch".

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
 Share

×
×
  • Create New...