LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to convert text to a set of coordiantes

Hi everyone,

I have a project to do and i need some help. I'm capturing images with a camera and I read qr codes with it. I got that code (QR code). I'm going to generate QR codes with coordinates, but as a text. Do you have any idea how to convert that text into coordinates and then add it to an array. I have some screenshots with the code bellow. 

P.s. I accept any idea of how to get a coordinate from a QR code to my code.

Thank you in advance !

Download All
0 Kudos
Message 1 of 5
(219 Views)

Hello,

 

I think we need to see the text you get from the QR-Codes to give you hints how to convert them.

 

If you have coordinates like

52.514826,13.3771431

you just have to separate them by the comma and then convert the elements to a floating point number with the functions from the string- palette.

Greets, Dave
0 Kudos
Message 2 of 5
(203 Views)

Hi Andrew,

 


@Andrew0 wrote:

Do you have any idea how to convert that text into coordinates and then add it to an array.


  • Use ScanFromString to convert text into numeric data.
  • Use BuildArray to "add" to an array (you probably want to build an array instead of adding/summing those values)…
Best regards,
GerdW


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

I can type any text so i have no problem making it like that.

 Thank you very much !

0 Kudos
Message 4 of 5
(196 Views)

Thank you very much !

I may have some questions regarding this but i'm trying my best to make it work !

0 Kudos
Message 5 of 5
(195 Views)