11-14-2007 07:50 PM
11-15-2007 01:08 PM
11-15-2007 01:54 PM
11-18-2007 09:26 PM
11-26-2007 06:40 PM
11-26-2007 08:21 PM
11-27-2007 02:15 PM
11-27-2007 07:06 PM
I'm not sure why the digital output line would be going low after you call exit(0). This is not the behavior that I would expect. What version of the driver does the old DOS code use? In addition, I'm curious how you are doing your test. How are you able to run the old version (which requires Dos) to set the line high and then run the new version? Are you doing this all within Windows XP? I would also like to add that performing a device reset will set the lines back to a low power up state. Are you doing anything in between running the old program and the new that might be resetting the device?
According to the comments in Nidaq.h, the old version is using di-daq DOS 4.8.0.
I run the old version by opening a DOS window in XP and running the old .exe file. The DAQPAD stays on even after closing the DOS window. I then run the XP console application immediately afterwards
I tried the example, DoOnePort and got the same behavior: the LED would turn on when DIG_Port_Config is called and go off when the program quit.
Also, when I commented out all the function calls in DoOnePort and ran it after turning on the DAQPAD with the old version of my software the DAQPAD would remain on but when I uncommented the very first function call (DIG_Prt_Config) and ran it, as soon as the program started running, before DIG_Prt_Config was even called the DAQPad output would go low. This is similar to the behavior of my new application and really doesn't make any sense to me.
11-27-2007 07:50 PM
Also, I was informed by our technician and our Electrical engineer that unplugging the DAQPad from the parallel port before the program quits is a bad idea, that something could get damaged. Is this true?
Thanks,
Greg
11-28-2007 07:38 PM