Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

PXI-8145 Causes Error -70012 on Startup EXEs

Hardware: PXI/CompactPCI>>Controllers>>PXI-8145 RT, Motion Control>>Controllers

Problem:
I loaded up a startup EXE using Motion on a PXI-8145. I get Error -70012 from my Motion functions during the first ten seconds. After the first ten seconds, I no longer get this error, and the program works fine.

Why do I get Error -70012 during the first ten seconds?

Solution:
Error -70012 occurs when a program uses an illegal board ID. You are seeing Error -70012 in this case because the PXI-8145’s processor is too slow.

When you turn on the 8145, it begins running your startup EXE before the NI-Motion driver finishes loading on the 8145. As long as the NI-Motion driver has not finished loading, you will continue to get the illegal board ID error because the 8145 cannot detect your PXI motion controller yet. Once the NI-Motion driver finishes loading on the 8145, the 8145 will successfully detect the PXI motion controller and associate it with a board ID.

As a workaround, you can either use a delay function at the beginning of your program or you can programmatically delay starting your program until Error -70012 no longer occurs.

Using a faster PXI controller instead of the PXI-8145 will also fix this problem.

Related Links: KnowledgeBase 3785D68E: Why Do I Get Error -70012 When I Try to Initialize My Motion Controller from a Built LabVIEW Application?

Attachments:





Report Date: 10/03/2006
Last Updated: 03/06/2008
Document ID: 422F3NS4

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit