Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't access more than counters 0 & 1 on my 6602 board

When I use the Count Events or Time.vi at the "easy" counter level on the functions palette I can use counters 0 & 1 but when I try counters 2 through 7 I get the error message -10020 occurred at CTR Mode Config. : Timebase is invalid. When I dig down into the vi I see that it uses subvis associated with AM9513. I thought I read somewhere that those vis can only read the lowest two counters on a TIO board. Is that right or should I be able to access the other counters with the Count Events or Time.vi?

Since this is a NIO counter I tried a TIO counter example from the ni site called Buffered Event Counting(8).vi (this is a LV 6.0 vi for TIO counters)and I immediately get the error -10242 occurred at Counter Group Config.: The specified function is not located in the driver. I let the parameters as default except device number which for us is 2 and the PFI line to 39 (source counter 0).

I need to do event counting with eight counters. Do you have any suggestions?

I am using LabVIEW 6.0 & NI-DAQ 6.6.1 on a Mac G4 using OS9.2.2
0 Kudos
Message 1 of 8
(4,938 Views)

Hi Laue,

Thank you for posting on National Instruments discussion forums.

Please check the following knowledge base and let me know if it solves your problem.

 

Regards,

Faris A

Bueller
0 Kudos
Message 2 of 8
(4,919 Views)
Hi Faris A,
Thank you for your reply. We have already updated our NI-DAQ and have the libraries from the LabVIEW 6i llbs.sit file in our LabVIEW folder already so this doesn't fix my problem. The example vi we've used will run until it gets to the Counter Group Config.vi (found in the advanced counter vi's on the function palette). Then it gives the error message that "The specified function is not located in the driver.

I'd really appreciate any further ideas you have on this.

Cheers, Laue
0 Kudos
Message 3 of 8
(4,910 Views)

Hi Laue,

Is there a specific error code you are geting? Have you tried resetting the device?

Finally, it would be a good idea to check the AM9513 Examples

 

cheers

Faris A

Bueller
0 Kudos
Message 4 of 8
(4,887 Views)
Hi Farris,
If I use the examples for counting events for AM9513, for example Count Event-Easy (9513).vi, the vi runs fine if the counter is 0 or 1 but not if it is anything higher I get the error code -10020 (as I described in my original posting). I have also tried using the Count Events-Int(9513) example vi and get the same behavior.

I found a library called multi-countervis.llb that seems like it would have what I want but I don't have the multi-counter subvis. I found this library in http://joule.ni.com/nidu/cds/view/p/id/807/lang/en a document about updating the Counter Palette. However, this only works for the Windows OS. Is there something for the Mac 9 OS.

Also, I don't understand why I can't use the TIO counter vis on my 6602 board. Whenever I run one of these example vis I get -10242 indicating that I don't have the drivers even though I've downloaded the ones you sent me in your first reply.

Thanks,
Laue
0 Kudos
Message 5 of 8
(4,853 Views)
On further investigation , I found out that the AM9513 will only allow you to access counters 0 & 1 . You need to use the NI-TIO to access all the counters.
I recommend checking the following example, try running it on your computer and see if it works.
If doesn't, try reinstalling the NI-TIO .
 
Regards,
Faris A
 
Bueller
0 Kudos
Message 6 of 8
(4,824 Views)
Hi Farris,

I've tried that example and many others that use NI-TIO vis and they all give me the error
-10242 occurred at Counter Group Config.: The specified function is not located in the driver.

It turns out that the device number makes no difference to the error message! This seems to indicate that LV can't find the card.

We have updated our NI-DAQ a couple of times to fix this problem but I tried again using the Full NI-DAQ Driver installation at the url
http://digital.ni.com/softlib.nsf/websearch/B3292015EDEFD1D486256A53005503E3?OpenDocument&node=132060_US

This reinstall has not changed the error message--I still can't get the vis to work with the card.

Do I need to rerun the NI-DAQ configuration program? (I tried this but it didn't help.)
Do I do take the 6602 card out and then reinsert?

Thanks,
Laue
0 Kudos
Message 7 of 8
(4,808 Views)
Laue,
 
Usually error 10242 occurs when there are missing VI's. I pointed you before towards one of the knowledge bases that explains how to install the NI-DAQ 6.6 on a MAC.
If you followed all the steps in that knowledge base during the installation process and still it doesn't work, I recommend first , as you suggested, reinserting the device.
If that doesn't work, uninstall NI-DAQ , and then reinstall it.
Please make sure after reinstallation to follow the steps of the following Knowledge Base.
 
Regards,
 
Faris A
Bueller
0 Kudos
Message 8 of 8
(4,788 Views)