02-27-2013 03:09 PM
Hi,
I have tried to find this information on forums but I cant seem to find exactly what I am looking for. I have VI that when it is finished has a 2 column and 5 or so row array that is populated with heat loads and corresponding voltages. I want to print this array to a text file but I want to include the decimal places in at least the voltage. I have attached what I have, thanks in advance
Solved! Go to Solution.
02-27-2013 03:24 PM
The answer is on your pc. If you have the context help open, click on the detailed help. There is a link there on format specifiers. You are using %d which tells the function to convert to integers. You want %f for floating point numbers.
02-27-2013 03:25 PM
Change your format specifier to a %f on the Array to Spreadsheet String. I you want to have some values as integers and some as floating point you will need to use a for loop to format each row yourself using the Format To String VI.