Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Problema con el DAQmxBase Create Channel

Solved!
Go to solution

Hola, soy nuevo en LabView y como ya verán tengo problemas existenciales con él. Ayúdenme a salir de ellos para seguir creciendo.

 

Estoy intentando realizar un generador de señales en LabView, utilizando una placa DAQ: NI USB-6009.

Aquí les adjunto el programa que estoy haciendo para que lo miren y puedan visualizar el error.

 

PROBLEMA:

 

El programa genera las señales (senoidal, cuadrada, triangular, diente de sierra y dc) y me las muestra en pantalla, pero no las envía a la DAQ y por lo tanto no las puedo ver en el osciloscopio conectado a la misma.

Revisando el Block Diagram, hago doble click en el  DAQmxBase Create Channel mientras está en ejecución y me muestra un error de salida, que es el error 200559 y en source dice: "Task cannot contain a channel with the specified channel type, because the task already contains channels with a different channel type. Create one task for each channel type."

Antes aparecía otro error (que no recuerdo el número) que decía: "I/O type of the physical channel does not match the I/O type required for the virtual channel you are creating."

 

Bueno, desde ya estoy muy agradecido y espero sus respuestas. Gracias!

 

Mariano García

CMG Electrónica

0 Kudos
Message 1 of 4
(3,005 Views)
Solution
Accepted by topic author CMG Electrónica
No ha diseñado la aplicación correctamente. Try to use just one Simulate Signal Express VI and place the DAQmx Base Create Virtual Channel.vi and DAQmx Base Start Task outside the while loop. Que debería solucionar el problema que está recibiendo.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 4
(2,991 Views)
Hi Mariano,

I looked at your VI, and I see a problem: you did not call "DAQmx Base Create Task.vi" but supplied a task constant "saan". How is the "saan" task configured? If the channel type for "saan" is different than "AO Voltage", you'll get error -200559.

You don't have to use a pre-configured task for this VI to work correctly. Please call "DAQmx Base Create Task.vi" before "DAQmx Base Create Channel.vi". I would also follow Adnan's advice: place "DAQmx Base Create Task.vi" and "DAQmx Base Create Channel.vi" to the left outside of the while loop, otherwise you will have a memory leak and the driver will become very confused.
Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 3 of 4
(2,988 Views)

The issue is resolved  Tankyou very much!

0 Kudos
Message 4 of 4
(2,973 Views)