pikro Posted March 18, 2008 Report Posted March 18, 2008 Hi, i've problem with data types. I have file with date. This file has format for example: 1,254545;2,018783 0,245789;-1,021874 ..... ..... it's type *.csv for ms excel I can read data from the file and set it to the array. But dont know how to convert the string to float. I have tried to use typecast, but the result has no sence Quote
Justin Goeres Posted March 18, 2008 Report Posted March 18, 2008 QUOTE (pikro @ Mar 17 2008, 01:02 PM) But dont know how to convert the string to float. I have tried to use typecast, but the result has no sence There are a few different ways to do it. Take a look in the LabVIEW help for Scan From String or Scan From File or Fract/Exp String to Number. Drat! TobyD beat me to it. Quote
TobyD Posted March 18, 2008 Report Posted March 18, 2008 QUOTE (pikro @ Mar 17 2008, 01:02 PM) I can read data from the file and set it to the array. But dont know how to convert the string to float. Take a look at the String to Number conversion VIs... http://lavag.org/old_files/monthly_03_2008/post-8758-1205786732.png' target="_blank"> Quote
pikro Posted March 20, 2008 Author Report Posted March 20, 2008 QUOTE (TobyD @ Mar 17 2008, 09:46 PM) Take a look at the String to Number conversion VIs... http://lavag.org/old_files/monthly_03_2008/post-8758-1205786732.png' target="_blank"> thx, is that what i am lookin for Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.