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

Error Initializing Motion Controller with ValueMotion and a LabVIEW Generated Executable

Primary Software: Driver Software>>ValueMotion Software
Primary Software Version: 5.0.2
Primary Software Fixed Version: N/A
Secondary Software: N/A
Hardware: Motion Control>>Controllers>>PCI-7324

Problem: I am using LabVIEW 7.0 to program my PCI 7324 motion controller and the ValueMotion driver. In LabVIEW when I run my application, my board is correctly initialized and everything runs correctly. However, when I build my LabVIEW application into an executable, then I receive an error 19 if my motion controller has not been initialized since rebooting my machine. If I first initialize the controller by running the code in LabVIEW or by initializing the device through Measurement & Automation Explorer (MAX), then the executable will work fine. Is there a way I can correct this so my executable will not give me an error after a reboot of the system?


Solution: The first thing to try is to use a control to specify which board to initializes rather than a constant in your LabVIEW code. This issue was seen in another version of the driver when LabVIEW code was built into an executable.

Another option is to build a small, stand-alone VI that does nothing but call the ValueMotion Initialize Controller VI. Users have been able to successfully build this into an executable and have it run correctly, whether the board was previously initialized or not. This small, utility application should not return Error 19 unless you try to call it from another LabVIEW application.

Because of this, to ensure that the motion controller is initialized before any LabVIEW application is ran, then you can install this utility application into the ..\AllUsers\StartMenu\Programs\Startup folder on all the Windows machines that will be running your application. By doing this, the initialize program will run everytime the computer is booted, so the board will always be in a ready, initialized state.

Related Links: National Instruments Motion Control Support

Attachments:





Report Date: 06/28/2004
Last Updated: 07/12/2004
Document ID: 3ARD6QKD

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