LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display images from a database

LabVIEW 2013 

SQL Server 2012

 

I would like to read an image path from a SQL database and display the image on the front panel in LabVIEW. I have attached an image of what I have so far.

----------------------------------------------------------------------------------
I have not lost my mind, it's backed up on a disk somewhere
0 Kudos
Message 1 of 3
(2,357 Views)

What do you need help with? First off, you are flattening the variant to a string which is going to return a binary string, not a human readable string like you appear to be wanting. Use the Variant to Data function to cast the variant to a string. Is the database portion of the program working as you expect?

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 2 of 3
(2,332 Views)
When I run that VI I get error 7 saying unexpected character are in the file path. The file path is a C directory path to a folder of images that are linked in the database. The links are in varchar format. I'm out of office until tomorrow but I will try your suggestion then. Thanks for your reply
----------------------------------------------------------------------------------
I have not lost my mind, it's backed up on a disk somewhere
0 Kudos
Message 3 of 3
(2,326 Views)