To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The following example demonstrates how to generate analog data using the AT 1212.
Description
This example shows how to continuously generate analog output data from the AT 1212 adapter module. It allows the user to enable each channel individually as well as dynamically modify the output waveform. This VI is compiled for all FPGA targets by default.
Requirements
Steps to Implement or Execute Code
Additional Information or References
Host VI Front Panel Screenshot:
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Hi, thanks for this example code to get started with AT module.
Just running this example, I get error -304003 from time to time at the very beginning.
It seems that this error is related to initialization of AT adapter module.
It is found that, in AT's code, there is a subVI called "SerialRead.vi" (........\AT 1212 - Getting Started.zip\AT 1212 - Getting Started\EEPROM\SerialRead.vi ). That VI doesn't properly handle dataflow (or error handling) and as a result there is a potential race condition between two VIs that does a part of initializaion process.
I forced data flow between the VIs, then, the error stops occuring.
Thanks!
Osamu
Can this be re-done to accommodate a PXIe-7976R / LabVIEW 2015?
Thanks for sharing this example code.
I'm facing a weird issue, which can be replicated as follows: Configure the host code to generate identical CH 0 and CH 1 waveforms. Connect the "AO 0+" and the "AO 1+" outputs to a spectrum analyzer, and terminate the "AO 0-" and "AO 1-' outputs with 50 ohm terminators. On the spectrum analyzer, I observe that the power on the "AO 1+" output is about 40 dB lower than the output on the "AO 0+" output.
I'm running this code on LV 2014 SP 1. Has anyone else faced a similar issue?
Edit 1: I replaced the AT 1212 card with a different one, but the problem remains.
Thanks,
Aditya
Update: SOLVED.
Here is how we solved the problem: Download the AT-1212 "AT_HS_Signal_Generator_V2014_1_9_1" files from the AT website (dated October 27, 2015), and use the initialization routines provided in that set. Specifically, use the InitModule1212(Host).vi in your RT host VI. Now, the power in the "AO 0" and "AO 1" ports is the same.
Thanks for letting us know how you solved that issue!