LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save data as a horizentall

Solved!
Go to solution
As has been discussed countless times, the function CANNOT be used for the conversion of doubles. Read the help.
Message 11 of 15
(808 Views)
p.s. That last image makes no sense.

Follow the instructions on the block diagram of Write to Spreadsheet File for how to make a copy that will save strings.
0 Kudos
Message 12 of 15
(801 Views)
This gentleman is correct.  You should use Format Into String for a much more accurate solution.  My original suggestion was much more crude and had room for percision loss. 
I meant to reference Number to Fractional String not Number to Decimal String.  That was my error and I apologize for the confusion -- we all make mistakes Smiley Tongue.  But Dennis_Knutson suggests a nice way to convert your Doubles to String while also concatenating on a label.  See below for explaination.


@Dennis_Knutson wrote:
As has been discussed countless times, the function CANNOT be used for the conversion of doubles. Read the help.

 

 

This is my old approach.  If you test it, you do, in fact, lose percision through the casting of Double to Integer:

 

wrong.png

 

This will output "1" with no decimal digits.

 

This is what I meant to do:

 

double.png

 

This would convert the Double to a String with the 3 decimal places per the original percision you used.

 

This is the most elegant solution suggested by Dennis.  You should probably use this suggested approach:

 

correct.png

 

This will correctly output "Exposure=1000.000".

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
Message 13 of 15
(775 Views)

I make all of ma datas as string and you can see I have a result but my problem is this datas do not save.

I show also my saving icon

0 Kudos
Message 14 of 15
(740 Views)
I already said that it makes no sense. You are taking all of those strings and removing them.

Your obsolete version of LabVIEW does not have a version of Write to Spreadsheet that will take a string array input. As I also already told you, there are simple instructions on its block diagram that tell you what to do. Make those changes or stop using the function. Simple as that.

p.s. You could also upgrade your version of LabVIEW.
Message 15 of 15
(730 Views)