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

Software-Retriggered Pattern I/O with the NI 653x

2 ratings | 3.50 out of 5
Print

Downloads

Filename: 202063.zip
Requirements: View

This example demonstrates the simplest way to retrigger pattern I/O on an NI 653x device. To software-retrigger the operation, you can reserve the data buffer space to optimize the configuration overhead. Rather than having to repeatedly call DIO Clear and DIO Config to retrigger and re-perform the pattern I/O operation, reserving the same buffer space in memory allows the operation to only have be configured and cleared once. When a finite operation completes, the buffer space configured for the data by DIO Config is reserved for the next operation by calling Buffer Control with "reserved" as the control code. Therefore, DIO Start only needs to be called to start the next operation. The time it takes for one operation to end, the buffer to be reserved, and the next operation to begin is system-dependent.

Repeated Finite Pattern Generation: OutputReserved.vi
This VI outputs a buffer of data, waits one second, and outputs the next buffer of data. New data can be output with each generation if DIO Write is fed new data inside of the while loop each iteration. If the same buffer of data is to be output with each iteration, moving DIO Write outside of the loop will further optimize the setup time between each generation.

Repeated Finite Pattern Input: InputReserved.vi
This VI inputs a finite buffer of data, writes it to a file, and then inputs the next buffer of data. This setup is applicable in situations where you need to acquire a set amount of data, analyze it to perform some other operation, and then acquire the next set of data. This example acquires one buffer of data, writes it to a file, and then acquires the next buffer of data.

Requirements


Filename: 202063.zip

Software Requirements


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

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO)
Driver: Traditional NI-DAQ (Legacy) 6.9.1

 
2 ratings | 3.50 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/).