¿Cómo Puedo Realizar un Reset/Self-Test de mi Dispositivo DAQ Programáticamente?



Software Primario:
Versión de Software Primario: 7.0
Versión de Software Primario Corregido: N/A
Software Secundario: LabWindows/CVI Development Systems>>LabWindows/CVI Base Package, LabVIEW Development Systems>>LabVIEW Base Development System, LabVIEW Development Systems>>LabVIEW Full Development System, LabVIEW Development Systems>>LabVIEW Professional Development System, LabWindows/CVI Development Systems>>LabWindows/CVI Full Development System, Driver Software>>NI-DAQ

Problema:

Quiero realizar un self-test o reset a mi dispositivo programáticamente, de forma similar a la opción disponible en Measurement & Automation Explorer (MAX); sin embargo, no puedo encontrar las funciones correspondientes. ¿Dónde puedo encontrar estas funciones y cómo debo implementar un reset/self-test en mi programa?



Solución:

En NI-DAQmx 8.9 y superior, se puede utilizar el VI DAQmx Self-Test Device (Functions Palette»Measurement I/O»DAQmx»DAQmx Device Configuration) o la función DAQmxSelfTestDevice (int32 DAQmxSelftTestDevice (const char deviceName[ ];) ubicada en la ayuda NI-DAQmx C Reference Help.

A pesar de que no existe el VI o función DAQmx Self-Test Device en las versiones de NI-DAQmx anteriores a la 8.9 en LabVIEW, LabWindows/CVI, Visual Basic o ANSI C, se puede utilizar la función Reset Device como alternativa. Esta provee aproximadamente la misma funcionalidad que realiza el Self-Test en NI MAX.

LabVIEW

Controlador NI-DAQmx:
El VI DAQmx Reset está ubicado en la paleta Measurement I/O » NI-DAQmx » Dev Config en el Diagrama de Bloques.

Controlador Traditional NI-DAQ:
El VI Device Reset está ubicado en la paleta Measurement I/O » Data Acquisition » Calibration and Configuration en el Diagrama de Bloques.
LabWindows/CVI
Controlador NI-DAQmx:
La función DAQmx Reset puede encontrarse bajo Libraries » NI-DAQmx Library » Advanced » Device Control.

Controlador Traditional NI-DAQ:
Utilice la función Init_DA_Brds Esta función se puede encontrar bajo Libraries » Traditional NI-DAQ Library » Initialization/Utilities.
C o Visual Basic:
Controlador NI-DAQmx:
int32 DAQmxResetDevice (const char deviceName [])

Controlador Traditional NI-DAQ:  
status = Init_DA_Brds (deviceNumber, deviceNumberCode)

Nota: La función Reset Device se usa usualmente al inicio o final del programa. Si la función se utiliza en el medio del programa, inmediatamente se abortarán todas las tareas activas asociadas con el dispositivo, se desconectará cualquier ruta, y retornará el dispositivo a un estado de inicio. El abortar una tarea inmediatamente finaliza cualquier operación activa, como serían leer o escribir. El abortar una tarea sitúa a la tarea en un estado inestable pero recuperable. Para recuperar la tarea en DAQmx, utilice el DAQmx Start para reiniciar la tarea o utilice DAQmx Stop para detener la tarea sin reiniciarla. La tarea no se puede recuperar en Traditional DAQ, por lo que la tarea debería ser reconfigurada completamente. Para más información sobre estas funciones, por favor vea los archivos de ayuda DAQmx/Traditional DAQ.

 

 



Ligas Relacionadas: Products & Services: NI-DAQmx Software
KnowledgeBase 35PFS9VM: ¿Cómo Puedo Especificar los Canales de Auto-Comprobación en mi VI de NI-DAQmx?
KnowledgeBase 26EHD2Y5: What Does the NI-SCOPE Self-Test Function Do?
KnowledgeBase 25MFJ5Y5: What Does the Self-Test Function in the NI-SWITCH Driver Test?

Archivos Adjuntos:

 



CVI Reset Traditional.zip - CVI Reset Traditional.zip


Día del Reporte: 04/08/2005
Última Actualización: 06/04/2014
Identificación del Documento: 3K7DPOT0