National-instruments Measure Data Acquisition Manual de usuario Pagina 43

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 98
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 42
Using Measure Data
Acquisition Tasks with VBA
This chapter describes how to run tasks from within Visual Basic for Applications.
There are two ways to execute DAQ Add-In functions in a VBA module.
1. Indirectly, you can use
Application.Run
returnValue=Application.Run(“FuncName”, arg1)
Application.Run “FuncName”, arg1
2. Directly, after you add a reference to the DAQ Add-In. To add a reference to the
DAQ Add-In, select Tools»References and select the checkbox next to the Data
Acquisition Add-In.
returnValue = FuncName(arg1)
FuncName arg1
Function Reference
The DAQ Add-In has one function that you can call to run a task that has been
configured already and one function to translate an error code to an error description.
DAQ
Runs the task named
TaskName
.
Syntax
Function DAQ(TaskName as String, [NewTargetRange as String],
[ReferenceStyle as Variant]) as Integer
Vista de pagina 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 97 98

Comentarios a estos manuales

Sin comentarios