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

Read ADC Function on a Motion Controller Causes Error -70022

Hardware: Motion Control>>Controllers>>PCI-7352

Problem: I have a NI-7350 series Motion Controller board and am developing an application with a servo motor.  In part of my program I would like to read the value from my analog transducer and pass that value into my program. When I attempt to use the Read ADC VI in LabVIEW, I get error -70022 saying that this command is not supported by this operating system. I am running the program on a Windows computer supported by NI-Motion. What is causing this error and how can I correct it?

Solution: This error is most likely the result of a change that was made on the 7350 series boards. These devices now incorporate a new 16-bit DAC chip that allows for higher resolution measurements. The problem lies in the fact that when we introduced the 16-bit DAC, we had to modify the Read ADC function with the release of NI-Motion 6.x to accommodate the extra 4-bits of resolution. Most likely you are attempting to run code that was written before NI-Motion 6.x was released, and therefore your code uses an older version of the Read ADC function. When you open that VI, it continues to use the old VI rather than replace it with the new copy - a feature that is implemented to allow for backwards compatibility.

In order to fix the program you are using, you simply have to replace the current Read ADC function in your code with a new copy from the Functions Palette. To do this, you can simply right-click on that VI, navigate to Replace, and then select the appropriate palette from the drop-down menu. When you run the program now, you should no longer receive the error message.

Related Links:
National Instruments Motion Control Support


Attachments:





Report Date: 02/07/2005
Last Updated: 07/28/2007
Document ID: 3I6D1NKD

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