LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView - limitation of 30 signs in the output

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

0 Kudos
Message 1 of 8
(3,685 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(3,681 Views)

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)

BlockDiagr.png

0 Kudos
Message 3 of 8
(3,641 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(3,638 Views)

No the increase of the Bit Data doesn't works out... there are still 32 signs

(the .vi as .zip in the attachments)

0 Kudos
Message 5 of 8
(3,617 Views)

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)!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(3,611 Views)
0 Kudos
Message 7 of 8
(3,594 Views)

Thank You Everybody,

 

with the aid of your advices i cracked my problem.

 

Cheers 🙂

0 Kudos
Message 8 of 8
(3,551 Views)