LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data from DB Tools Select Data

Solved!
Go to solution

Hi I have successfully created a set of database vi's, one accesses a complete entry using DB Tools Select Data and displays the retrieved information to the user as a variant.

However the data coming back includes "Value ->" All my DB data are strings and I have tried converting to string, but its is the DB Tools Select Data vi that seems to be producing this output

 

jessica_kh_0-1681378498337.png

 

The code

 

jessica_kh_1-1681378680801.png

The code is currently very neat and simple, I would hate to have to create a loop getting each value independently to create an array to display

 

Thank you for any help

Jessica

 

 

0 Kudos
Message 1 of 4
(1,146 Views)

@jessica_kh wrote:

Hi I have successfully created a set of database vi's, one accesses a complete entry using DB Tools Select Data and displays the retrieved information to the user as a variant.

However the data coming back includes "Value ->" All my DB data are strings and I have tried converting to string, but its is the DB Tools Select Data vi that seems to be producing this output

 

jessica_kh_0-1681378498337.png

 

The code

 

jessica_kh_1-1681378680801.png

The code is currently very neat and simple, I would hate to have to create a loop getting each value independently to create an array to display

 

Code can be still Neat and Still simple, make sure No bending wires and Proper Flow from Left to right


 We cannot debug images better to attach codes (With Default Values to identify the issue), I hope once you convert the Variant to Desired datatype then the value will be removed.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 4
(1,138 Views)
Solution
Accepted by topic author jessica_kh

The DB Tools Select data always returns data as a 2D array of variants, as to be able to handle any datatype. Just add a Variant to data and convert it to 2D array of strings, and it should work.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 3 of 4
(1,132 Views)

Thanks yes that worked

0 Kudos
Message 4 of 4
(1,100 Views)