LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DIO Occurences: Error -10601

Hi all,

at the moment I'm experimenting with Digital I-O Occurences with an PCI 6527 Board.
The VI I use is attached, it's just the example which ships with LabVIEW but without the READ commands and with an additional RESET BOARD switch.

It all works well unless you don't press the ABORT EXECUTION button while it's executing.
Then, Error -10601 appears: "The specified ressource has already been configured by a setup-operation"
(roughly translated from German Version)

I only managed to get the VI working by either restarting LabVIEW or by resetting the whole board.
As I don't want to reset the board before calling this VI and as I don't want to exclude aborts, I need some alternatives, please.

Regards,

Andreas
0 Kudos
Message 1 of 4
(2,733 Views)
Hi Andreas,

I don't have the board immediately at hand but I believe I know what is occurring. You will always receive error -10601 when you try to setup an occurrence on a board if it has already been setup. What happens when you hit the abort button is that the board never gets a chance to clear the occurrence. That means that the next time you run the program, it will try to setup the occurrence (but one has already been setup). Therefore you will get the error.

There are a couple things you can do. You can continue with your board reset. You can also clear the board of any occurrences before setting up the next occurrence (clear before create). Anyway, I don't believe there is any other way around this situation. I hope that helps. Have a
good day.

Ron
Message 2 of 4
(2,733 Views)
Thanks, Ron,

the clear before create idea is working, but if I'm using such occurences many times and with different channels: are ALL occurences for ALL channels of the device deleted or only the ones for the channel I use this method with?

Regards,

Andreas
0 Kudos
Message 3 of 4
(2,733 Views)
Hi Andreas,

Unfortunately, all occurrences will be cleared. This is because the clear parameter will indiscriminately clear the occurrence configuration space on the board. There is no way to select a specific occurrence or view a list of occurrences and clear them individually. Anyway, hope that helps. Have a good day.

Ron
0 Kudos
Message 4 of 4
(2,733 Views)