09-03-2015 01:21 AM - edited 09-03-2015 01:22 AM
hello everybody,
im working with LabView connected to a DataLogger, via RS232 to USB... i need the messured values of 4 channels.
(settings: baudrate = 9600; bitdata = 7; parity = E; stopbits = 1.0; echo = none)
however, now i got the problem that there are only 30 signs shown at the output, which is the reason the last vaues are cut off.
could someone explain the reason and how i can display all values?
thx
09-03-2015 01:24 AM - edited 09-03-2015 01:26 AM
Hi Marc,
when you transfer data over a (virtual) serial bus you send strings. Strings aren't limited by length in LabVIEW…
As you seem to work with measurement data : what kind of measuring system do you use that produces numbers with more than 30 significant digits? This would need a ADC of 100bits width!?
Please provide examples of what you are talking about! Please ask specific questions on specific items - so we don't need to answer with even more questions!
Edit: Welcome to the NI LabVIEW forum!
09-03-2015 04:55 AM
Thanks for the advices,
we're workin on Win7. The DataLogger is a >>FLUKE Hydra II 2645A<< (Manual: http://exodus.poly.edu/~kurt/manuals/manuals/Fluke/FLUKE%202620A,%2025A%20HYDRA%20User.pdf).
LabView received 4 measured Channels (2x 0...30 V DC and 2x 0...300 mV DC) from the DataLogger (RS232 to USB).
(the .vi is attached)
09-03-2015 04:57 AM - edited 09-03-2015 04:58 AM
Hi Marc,
please give examples of the "Rad buffer 2" content.
You just read 32 bytes from serial port, so your received string will never have more than 32 chars. Does it help to increase the number of bytes to read?
And PLEASE: do initialize the serial port only ONCE before the loop and close the port only ONCE after the loop!
09-03-2015 05:32 AM
No the increase of the Bit Data doesn't works out... there are still 32 signs
(the .vi as .zip in the attachments)
09-03-2015 05:38 AM
Hi Marc,
you still initialize the serial port in each iteration. Don't do that!
And your "read buffer 2" is empty, there is no typical data included…
As you switched off the TermChar your VISARead will read exactly 32 bytes or will end with a timeout error. No other possibilities (as long as the connection is ok)!
09-03-2015 05:55 AM
09-04-2015 02:33 AM
Thank You Everybody,
with the aid of your advices i cracked my problem.
Cheers 🙂