LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

processing read VISA data

Hi guys! I'm using an arduino nano and HC-05 Bluetooth module to transmit data. It is being received by VISA read on labview but the read buffer string that comes out of it cannot be used by any express VI or used in calculations. Can anyone help suggest ways to convert the data that can be processed please? Many thanks!
0 Kudos
Message 1 of 7
(3,419 Views)
You need to provide at least a hint of the actual string you are receiving and the sort of data you need to convert it to. A string can represent just about every sort of data you can imagine.

I'm going to guess that you aren't using an arguing toolkit such as Linx and that tut haven't taken any of the free LabVIEW tutorials.
0 Kudos
Message 2 of 7
(3,412 Views)

Hi Marklim,

 

When you read a string using the VISA read VI you will often have to format it by searching for regular expressions, or scanning based on some kind of delimeter. Once you have the portion of the string that is just the number you want, you can use the VIs like: convert decimal string to number (integer), convert fractional/exp string to number (float). You will have to play around on the string and numeric conversion pallettes to get it exactly how you want.

0 Kudos
Message 3 of 7
(3,376 Views)
Thanks for the replies. We are beginners and don't know (how to find out) what kind of data is being transmitted via bluetooth or the type of string we are receiving. We only know that a VISA read buffer string comes out from the VISA read and is unusable for processing 😞 The final data type we want to convert to should preferably be a double.
0 Kudos
Message 4 of 7
(3,341 Views)
Place an indicator on the output of the VISA Read. This sort of basic operation would be covered with any of the tutorials. You also have the probe debug tool to look at the output.
0 Kudos
Message 5 of 7
(3,333 Views)
ok we're getting values 0-1023...probably from ADC.
0 Kudos
Message 6 of 7
(3,320 Views)
Then you've already been told a couple of the functions you can use. The Scan From String will also work.
0 Kudos
Message 7 of 7
(3,308 Views)