LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Removing "plus" symbol in Excel

Ok.. I can't test my VI now, but i just implementet the "scan from string" box in my VI

 

Show.png

Best regards

Oesen
0 Kudos
Message 21 of 30
(1,889 Views)

You completely missed what I was trying to explain...

Let's see if I can rewrite what you did and show you an example of what I tried to explain...

0 Kudos
Message 22 of 30
(1,885 Views)

Here is a snippet of what I meant:

 

 

0 Kudos
Message 23 of 30
(1,882 Views)

I have tried your solution, and thanks for the help, but the array doesnt show any decimal number in the measurement part ?. I want two decimal numbers, how to do that ?

Best regards

Oesen
0 Kudos
Message 24 of 30
(1,866 Views)

I'm not sure what you mean because it should work with decimals. See image below:

 

 

 

And it works even if there are no spaces:

 

+35.24g 

will give

35.24

0 Kudos
Message 25 of 30
(1,861 Views)

Hi Oesen,

 

did you read the context help as recommended?

Did you try the format string "%s%.;%f" after reading the context help carefully?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 26 of 30
(1,852 Views)

Hi Gerd,

 

Did I miss something?  Why "%s%.;%f"?

Does the OP want to conserve the + sign and save it into the spreadsheet?

If so, then using the indicator to export to the spreadsheet file may not do what the OP wants.

 

I must be missing something...  😞

Message 27 of 30
(1,847 Views)

Hi Ray,

 

the OP said (s)he was missing "decimal numbers" (fractional part of the number). So I guess the computer the VI is running on is using a different decimal separator and thus included "%.;" in the format string to assure proper conversion of the value in the device string...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 28 of 30
(1,845 Views)

Ah...  I didn't think of that one.

 

Thanks!

Message 29 of 30
(1,843 Views)

Thanks for the help guys. I wrote '%.;%f' in the format string box, and everything works fine now 🙂

Best regards

Oesen
0 Kudos
Message 30 of 30
(1,832 Views)