10-18-2011 05:33 PM
I have a service that starts when the PC starts. The service connect to and configures a USB 1208FS board (measurment computing). Frequently the service is unable to configure the card. This is the statement that fails:
cbDConfigPort( boardNum, FIRSTPORTA, DIGITALOUT );
It returns an error code of 1. "Bad board num". However, the board num is correct because this statement to get the board name does succeed:
cbGetBoardName( boardNum, boardName );
IF I wait a few minutes after startup, then try to manuallt start the service, it always connects to the board. I'm thinking that perhaps the some other window stuff must init before my service can work with the 1208 board. Can anyone provide any clues or sugestions about what may be causing this problem at startup?
BTW, on some PCs the service successfully connects to the 1208 board at startup. All Win XP
Thanks,
Mitch
10-19-2011 04:43 PM
Hi Mitch7,
Has the service been added to startup automatically in services.msc? If so, I would have to agree with you, that Windows likely has this service placed in a certain spot in the startup order. This would explain why the time to access varies on different machines. However, to be sure of what's going on you may want to get in touch with Measurement Computing about the issue.
Best regards,