10-10-2011 04:47 AM
Buenos d'ias a todos:
Soy un novato en esto de labVIEW y me gustar'ia hacer una consulta.
Actualmente estoy haciendo un trabajo, en donde, realizo la DAQ con devices de Advantech (ADAM 5000-4000). Para ello estoy tirando de funciones VISA serial. El problema se plantea a la hora de obtener un n'umero suficiente de samples. En estos momentos, la velocidad de muestreo es baj'isima, y por ello me gustar'ia saber si puedo aumentarla, y como hacerlo. El esquema principal lo he puesto en el vi adjunto.
La pregunta que me gustar'ia saber es como puedo mejorar el buffer de lectura, si puedo aumentar el tamanno del mismo o no, por ejemplo, tomar 10, 20 30 o las muestras que sean posibles de golpe, almacenarlo en un buffer, y mandar esa informaci'on a mi block diagram, para desglosarla y almacenarla
Un saludo desde UK, y gracias por su tiempo de antemano
10-11-2011 06:01 AM
Hi PvtBAR,
Apologies if I have misunderstood, google translate was not so good, so I guessed the problem from the code.
It seems you are attempting a serial write/read. There is no delay between write and read, so we may be trying to read before the instrument had time to reply.
Also there was no configuration of baud rate, number of stop bits etc.
I have modified the VI slightly.
Hope this helps.
Steve
10-11-2011 06:16 AM
Hi buddy!!!!!!!
Ty very much indeed for your answer. I have been using my previous attached VI as subVI. In fact, I had configurated the port and the subVI in my project VI. However, it is a really nice idea use a property node in order to read the number of bytes at port. Thanks for that trick!!!
My problem locates at the time of acquire data. I have 6 load cells which are conected to my advantech 5017H device. I had been thinking in use a buffer or something similar, and thus storage all the data, bundle it, and after send it to a consumer while.I believe that, with this idea, I would be able to rise up my data transmission speed, which is my main trouble
Nevertheless, I don't know if my idea it is a good solution, or at least, a possible solution.
Thans again for your time and interest