06-10-2009 12:35 PM
Hi everyone,
Does any know how to convert an engineering string to a normal formated string?
Thanks
Solved! Go to Solution.
06-10-2009 01:20 PM
What do you mean by an "engineering string"? What is a "normal formatted string"?
Perhaps you can give us an example of what the string looks like now and what you want it to look like.
06-10-2009 01:33 PM
06-10-2009 01:34 PM
Do you mean Fractional / Exp to numeric Function? which is located under the strings palette.. under String / Number Conversion.
Interprets the characters 0 through 9, plus, minus, e, E, and the decimal point (usually period) in string starting at offset as a floating-point number in engineering notation, exponential, or fractional format and returns it in number. The connector pane displays the default data types for this polymorphic function.
06-10-2009 01:41 PM - edited 06-10-2009 01:42 PM
Example using Ray's function. One is an actual number, the second converts that number back to a string with default precision of 6.
06-10-2009 01:48 PM
06-10-2009 01:50 PM
06-10-2009 02:21 PM
Attached is the part of the vi that write the data to a .txt file which is then opened in Excel, However CH2-01 in Excel reads a scientific notation format. Trying what was said didn't work due to different source and sink types.
06-10-2009 03:07 PM
Hi nem,
in your vi there is no "CH2-01". Do you mean "DAQ21"?
See attachment for some minor changes (removed sequence, locals, build path a better way). Why do you split your arrays into 4 parts when you need to re-build all arrays again?
Are you sure it's not an Excel formatting problem? Did you set all numbers in the excel sheet to display as "numbers"?
When I try your vi I don't get any numbers in scientific format in Excel. (And I would suggest to transpose the data for Excel import...)
06-10-2009 03:26 PM