el 04-24-2020 05:02 AM
Buenas, estoy desarrollando un programa para mi tfg en el que con una tarjeta NI USB-6001 quiero medir la señal de 4 RTDs y 1 sensor de presión. En el programa de LabView tengo todo desarrollado de modo que puedo medir todas las señales pero a la hora de mostrarlas en un indicador lo tengo que conectar a la misma fuente de datos. El caso que los sensores irían conectados a distintos puertos (a0, a1, etc) pero al medir un canal me lo muestra en todos los indicadores.
He intentado generar distintas líneas de código copiandolas y cambiando el canal que quiero que midan pero siempre me sale el error 50103 diciendo "The Specified Resource is Reserved". Os dejo mi programa por si alguien me sabría decir como solucionarlo. El pograma de momento está configurado para un sensor de temperatura y uno de presión + 1 de caudal, aunque al ser digital no me daría problemas. Gracias de antemano.
¡Resuelto! Ir a solución.
el 04-24-2020 05:21 AM
Hi Aitor,
@AitorGutierrez wrote:
Good, I am developing a program for my tfg in which with a NI USB-6001 card I want to measure the signal of 4 RTDs and 1 pressure sensor. In the LabView program I have everything developed so that I can measure all the signals, but when displaying them on an indicator I have to connect it to the same data source. The case that the sensors would be connected to different ports (a0, a1, etc) but when measuring a channel it shows it to me in all the indicators.
I have tried to generate different lines of code by copying them and changing the channel that I want them to measure but I always get the error 50103 saying "The Specified Resource is Reserved". I leave you my program in case someone would know how to solve it. The moment program is configured for a temperature sensor and a pressure sensor + 1 of flow, although being digital would not give me problems. Thanks in advance.
Keep in mind this is an English speaking forum. If you want to write in Spanish you should post in the specific regional community!
With an USB6001 you have to read all AI channels with the same DAQmx task, but that is no problem!
Right now you read an array of waveforms, one waveform per channel: just use IndexArray to index each waveform…
(And get rid of those FromDDT functions, those ExpressVIs don't help you in learning LabVIEW correctly!)
el 04-26-2020 08:36 AM
Thank you so much Knight of NI. Sorry for my message in Spanish, I don't ussually take part of any forum and I did'nt know how to get into the Spanish community. Anyway, the Index Array has solved my problem, so thank you again for that. Now I can finish my university final project :D!