LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

folder


@gmazza wrote:

ehmmm???


Go to the File IO->Advanced File Functions palette.  There is a Get File Extension.vi in there.  One of the outputs is the file name without the extension.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 11 of 19
(1,235 Views)

I can not solve.
I repeat the problem: I have an array with an indefinite number of items. I want to eliminate the final part of each element.
Is there a way to do this?

0 Kudos
Message 12 of 19
(1,212 Views)

Hi gmazza,

 

yes, there is!

 

FOR each element in array
  strip "final part of element"
NEXT

 Use an autoindexing FOR loop to iterate over all elements of your array...

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 19
(1,209 Views)

Sorry. I still do not understand how to do ...
Ok, I have to use a for loop. But I can not delete a portion of each array element.

0 Kudos
Message 14 of 19
(1,200 Views)

Hi gmazza,

 

it seems pretty straight-forward to me:

check.png

Replace the StringSubset function with any code you like to use for "stripping part of string"...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 19
(1,194 Views)

Or if you want to use an available function, which strips the extension.

 

Strip extension


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 16 of 19
(1,189 Views)

chk.png

0 Kudos
Message 17 of 19
(1,188 Views)

the problem is just to find a code to stripping the string...

0 Kudos
Message 18 of 19
(1,179 Views)

Ok. Perfect. Frabto's solution works well and is very simple .. thank you

😉

0 Kudos
Message 19 of 19
(1,177 Views)