LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Removing "plus" symbol in Excel

Hi Oesen,

 

there are a lot string functions in their own functions palette.

Ever tried to use them? 😉

Best regards,
GerdW


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

I dont write it as a spreadsheet. I use right click and "export to Excel" in the array in front panel

Best regards

Oesen
0 Kudos
Message 12 of 30
(1,773 Views)

Hi Oesen,

 

when using right-click you get what you see...

 

You should:

- learn to write files with all the functions provided by LabVIEW

- learn some basic rules of string formatting...

Best regards,
GerdW


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

Ah... ok..

 

So if you leave everything as doubles as I suggested and use the Scan From String function to convert the measurement to a double, then you would not have the + or g.

 

 

 

But that won't allow you to add more columns.  You need to format everything to the appropriate type.  If you have columns which are strings, then most likely have everything conbverted to sting type.  Then you may be able to get away with using the Write to Spreadsheet String.  At least that is the simpler way.

Message 14 of 30
(1,768 Views)

Did I not post this? :

 

To learn more about LabVIEW, I suggest you try looking at some of these tutorials.

Message 15 of 30
(1,763 Views)

Hmmm . How do i implement that "Scan from string" in my code ?.  What should i write in the "format string" part ?

Best regards

Oesen
0 Kudos
Message 16 of 30
(1,716 Views)

Hi Oesen,

 

there's an excellent help for all the format codes. You may try "%s%f" in the first shot...

Best regards,
GerdW


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

Yes, but i have to get rid of the "+" symbol first of all. So i must write something different ?

Best regards

Oesen
0 Kudos
Message 18 of 30
(1,701 Views)

Hi Oesen,

 

as long as the string received from device is similar to your example (with spaces between sign and number) my suggestion should be ok.

 

Did you read the help (as recommended) by now?

Best regards,
GerdW


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

You can also post the code that you have so far...

Message 20 of 30
(1,686 Views)