Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Generate Analog Output Signal From Motion Board

1 ratings | 1.00 out of 5
Print

Downloads

Filename: analog_output.vi
Requirements: View

This program is intended to demonstrate the use of the Analog Output terminals of the board to generate a -10V to +10V analog signal.

INSTALLING THE EXAMPLE:
Download this example to the directory of your choice, and make sure to save in the same directory all the files (for the CVI version).

INSTRUCTIONS:
1. Make sure the board is initialized.
2. Make sure the board ID is "1", otherwise please change it. In LabVIEW you can change it from the Board ID control; in CVI you have to open the source file and in "boardID" declaration define the new value.
3. Make sure every axis you are going to select is NOT configured for servo.
4. Run the VI in LabVIEW or build and run the executable in CVI.
5. Change controls to see how the voltage in AOUTx (x is the axis number) changes with reference in AGND.

RELEVANT FUNCTIONS USED:
LabVIEW: Load DAC.flx
CVI: flex_load_dac

METHOD:
Using the function for loading a value to the DAC channel selected is very simple, the only trick you have to watch is that the function does not accepts a voltage value as input, e.g. 5.78 V, the input is an integer value ranging from -32,768 to 32,767 which corresponds to whole range of -10 to +10 Volts, so in the program the value selected is scaled to the actual range of the DAC.

Requirements


Filename: analog_output.vi

Software Requirements


Application Software: LabVIEW Full Development System 6.1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Motion Control
Driver: NI-Motion 5.2

 
1 ratings | 1.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).