LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove only the last element of spreadsheet string

I use path to string option to store image path into database and while retrieving the string is again converted into path but it gives out an error as the output of array to spreadsheet string gives out a tab at the end which is unable for the IMAQ read file to recognise.but when i use the path of the image directly into IMAQ readfile the image is opened . so how to remove the tab only at the end of output of the spreadsheet string(whose length can vary)? I have also attached my program with this.
0 Kudos
Message 1 of 6
(3,820 Views)
Hello,
Here's the VI I use to convert 1D array to spreadsheet string. Hope this helps !
Julien
Message 2 of 6
(3,820 Views)
Thanks for your reply!
But my problem is to remove only the last element(which is a tab or an alphabet) from a spreadsheet string of any length.
0 Kudos
Message 3 of 6
(3,820 Views)
Sorry then ! I thought it was a problem of conversion.
here's an image to help you remove the last element of a string (it can be any ASCII element)

Hope this helps !
Julien
0 Kudos
Message 4 of 6
(3,820 Views)
indhu wrote:

> Thanks for your reply!
> But my problem is to remove only the last element(which is a tab or an
> alphabet) from a spreadsheet string of any length.

If you just want to remove the last character of a string just use the
String Size function reduce the result by one and wire it together with
the string to the Split String function.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 5 of 6
(3,820 Views)
Thanks for your reply! I'm able to solve the problem now!
Thankyou for your timely help!
0 Kudos
Message 6 of 6
(3,820 Views)