Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Unrecognized or unlisted error

I try to use finite buffer counting in a Borland C++ Builder application; for each point in a loop, I set the counter operation(single buffer event counting) and after finishing the counting the counter is reset. However, after a number of points the application crashes with the message 'Unrecognized or unlisted error'. This is followed by a computer crash. Sometimes this happens without any error message. Apparently it seems to occur randomly, without any dependence on the number of times the counting operation is repeated.
I checked for eventual conflicts in the resources tab from the device manager, but there isn't any. Everything seems to be normal.
The OS is Windows 2000, on a Pentium 4 computer, and I use Borland C++ Builder 5.

I would appreciate any help on this issue.
0 Kudos
Message 1 of 3
(3,352 Views)
Hello;

I don;t think this problem is related to any resource conflict but to the way the code was written. I don't know exactly how you programmed the board, but it seems like you are changing the counter parameters, for each point your buffered acquisition acquires. That can't work properly since the buffered acquisition is hardware timed and the counter reconfiguration is Software timed. That means you will acquire way more points than your code is able to reconfigure the counter. I believe that's why the error seems to be randon. You will need to find another strategy to program the device and accomplish what your application requires.

Regards
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,352 Views)
Hello,
thank you for the reply. I think I wasn't so clear in the previous message. I don't configure the card while counting. I just configure and start a buffered acquisition, then wait to finish, reset the card - this process is repeated for a certain number of times.
I was thinking it might be a interrupt problem - the same program works well on some other computers.
This specific computer gives IRQ #20 to the card, while the others use #11 or #9.
Do you think that might be a problem ?
Regards,
Julian
0 Kudos
Message 3 of 3
(3,352 Views)