I need the detail about how to read the data from spreadsheet file. but the file should not created by labview.
i face some difficulties here. the datas are encrypted...... how to get correct data ..........
Excel files are in a propriertary microsoft format. A LabVIEW "spreadsheet" file is a file containing an ASCII table with tabs separating columns and linefeeds separating rows. They are not ther same!
If you use "write to spreadsheet file" and name the file *.xls, this does NOT make it an excel file, it just tells the operating system to open it with excel if you double-click it. Excel is smart enough to notice that it is not really an excel file and does its best to convert it transparently. The same does not work in reverse.
You have several options:
You can use excel to export your data to something LabVIEW can read. Try e.g. tab delimited text.
You can use e.g. activeX to read an excel file, see: http://zone.ni.com/devzone/cda/epd/p/id/3409
Search for excel in your example finder for more possibilites.
LabVIEW Champion . Do more with less code and in less time .
Similar Messages
-
How to read updated data from a real-time generated file?
I have a question:
I want to read the 10 mostly updated data from a real time generated data file. The data in this file is accumulated. how can i read mostly recently data to an applet? and further to using this data to draw a real-time graph? pls help
kelvin t.l. tseHi,
I think there is no "typical" way. You will have to define a convention on how the new data are stored into the file, so as to know how to accessthem. If new data are simply put at theend of your file, you may use a RandomAccessFile to read only those lines that interest you (the 1 final lines).Otherwise, you should at least know how the data file is written.
You can know if thedata file has been modified with the File.lastModified() method. This retrurns a long value corresponding to the date and hour the file was last modified. Store that value ito you appl. and perdiodically (use a Thread), compare that value with the value returned by lastModief(). If both value are NOt equal, then the file has been updated
it's all a question of knowing how the data are stored into the datafie generated.
Be also aware that you will probably have problem when your java appl. tries to read the file at the same time it is updated by the other application. I guess when theother application writes data into the file, you will not be able to read it. So, use try{} catch statements and first check to see if you can read the file with File. canRead(). If not, simply delay the reading process by asking a Thread.yield() or Thread.delay (1000)...
vincent -
I need to leran in how to dawn load music from you tobe.but I need to start from the bottom can someone help?
If there is no download button under the video you are looking at, then Youtube's terms forbid downloading someone else's property. Because they forbid it, we would be violating the terms of these forums if we were to try to help - sorry.
-
How to read a data from USB port using JAVA
hi all,
i need to know how to read a data from USB port using java. any API are available for java ?.........please give your valuable ideas !!!!!!!!!
Advance Thanks!!You can do this. Please use this link
[http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=uHu&q=java+read+data+from+usb+port&btnG=Search&meta=&aq=f&oq=]
What research did you do of your own? Have you done some testing application and tried yourself?? -
How do I move data from my iPad to the cloud?
How do I move data from my iPad to the cloud?
lrc70 wrote:
My old PC finally died
Backup, backup, backup...
Now I am trying to get all 733 songs into my Itunes library and on my macbook
which you will promply backup, backup, backup, yes?
And make and maintain regular backups?
Time Machine is simply to use. Just plug in an external drive. -
How do you download data from your macbook to the ipad?
how do you transfer data from your macbook to the ipad?
What data do you want to transfer ? Music, films, tv shows, photos and ibooks are done by syncing in iTunes (for which there is some help in the iPad manual which can be downloaded from here http://support.apple.com/manuals/#ipad). Documents can also be done via iTunes, but it depends upon the app and the transfer method(s) that it supports e.g. file sharing via the bottom of the device's apps tab on your computer's iTunes, via your wifi network, cloud services, email attachments etc
Edit : have you got the Keynote app on your iPad, or any other app that supports keynote presentations ? Without a 'suporting' app you can't store a document/file on the iPad (unlike computers files have to be stored within an app)..
Message was edited by: King_Penguin -
How can i extract data from oracle table to flat file or excel spread shee
Hello,
DB Version is 10.1.0.3.0
How can i extract data from oracle table to flat file or excel spread sheet by using sub programs?
Regards,
DHere what I did
SET NEWPAGE 0
SET SPACE 0
SET LINESIZE 80
SET PAGESIZE 0
SET ECHO OFF
SET FEEDBACK OFF
SET VERIFY OFF
SET HEADING OFF
SET MARKUP HTML OFF SPOOL OFF
Sql> SPOOL bing
select * from -------;
SPOOL OFF;
I do not see file.
I also tried
Sql> SPOOL /tmp/bing
select * from -------;
SPOOL OFF;
But still not seeing the fie, -
How to Read specific data from file and do a calculation and display on the output
FYI: Below is the function use for the writing:
-OpenFile(use ASCII)
-sprintf
-WriteFile
Example: Output from the doc file
…EndTime: 09:34:48 program time: 0.567663 sec
…EndTime: 09:36:48 program time: 0.666666 sec
My objective is to read data 0.666666 (FYI: is last sentence of the file) to do some calculation. How can we read specific data(specific location) from file..
Any advice or help?
What is the function needed?I would consider counting line feeds and checking for end-of file to isolate the last line, which then can be read using fscanf...
Have a look at getc...
character = fgetc ( stream );
if ( character == '\n' ) // new line
if ( character == EOF ) // end-of-file -
How to read in data from MySQL to Authorware?
Hi,
I am trying to read in values from my database (MySQL) to
authorware, but the best I am able to get is true or false.
I would like to be able to get some data from the database
and return it to AW as a string. Does anyone have any experience
with this? Can anyone lend a helping hand in this endeavor?
Thanks in advance for your help,
Brad"Paul Swanson" <[email protected]>
wrote in message
news:[email protected]...
> Kevin, you shouldn't need to worry about ODBC or OLEDB.
Your PHP script
> needs to handle the database connection, and you can use
PHP's
> mysql_connect() function for that. You really don't need
to do anything
> different for Authorware than you do for any PHP/MySQL
application in
> terms
> of connecting to the database.
>
> My PHP script returns data to AW in the form of
name=value pairs delimited
> by the ampersand character. I then use the following
code in AW to convert
> them into lists:
>
> =========================
> -- Use this routine to break queryString into name /
value arrays.
> -- Assumes a database query returns a string of
name=value pairs
> -- delimited by the ampersand (&) character.
>
> -- strip leading & from queryString
> queryString := SubStr(queryString, 1,
CharCount(queryString))
>
> -- break into list of individual lines
> tempList := Replace("&", Return, queryString)
>
> listLength := LineCount(tempList)
>
> -- create empty arrays for name and value
> name := Array("", listLength)
> value := Array("", listLength)
>
> repeat with counter := 1 to listLength
> singleLine := GetLine(tempList, counter)
> name[counter] := GetWord(1, Replace("=", " ",
singleLine))
> value[counter]:= GetWord(2, Replace("=", " ",
singleLine))
> end repeat
>
> -- now you will need to add a separate calc icon with a
routine to
> -- read the data from the arrays. name[counter] matches
value[counter]
> =========================
>
> I follow this with another Calc icon (I could have done
it all in one
> calc)
> that parses the names and assigns the values to my
custom AW variables:
>
> =========================
> -- get just the info we want, and store in variables
>
> repeat with counter := 1 to listLength
> if name[counter] = "Lesson1Complete" then
> Lesson1Complete := Number(value[counter])
> else if name[counter] = "Lesson2Complete" then
> Lesson2Complete := Number(value[counter])
> else if name[counter] = "Lesson3Complete" then
> Lesson3Complete := Number(value[counter])
> else if name[counter] = "Lesson4Complete" then
> Lesson4Complete := Number(value[counter])
> else if name[counter] = "Lesson5Complete" then
> Lesson5Complete := Number(value[counter])
> else if name[counter] = "Lesson6Complete" then
> Lesson6Complete := Number(value[counter])
> else if name[counter] = "Lesson7Complete" then
> Lesson7Complete := Number(value[counter])
> else if name[counter] = "Lesson8Complete" then
> Lesson8Complete := Number(value[counter])
> else if name[counter] = "OverviewComplete" then
> OverviewComplete := Number(value[counter])
> else if name[counter] = "grade" then
> score := Number(value[counter])
> else if name[counter] = "passed" then
> passed := Number(value[counter])
> end if
> end repeat
I'd like to point out here that any time you have a series of
variables that
all have identical names except for a number in the variable
name, you
should be looking at lists. I'm surprised, Paul, that you
have lists used
to the extent that you're able to use Value[counter] on the
right side of
the equation, yet you're not using lists on the left side of
the equation.
Let's look at how this code could be made super simple by
having ONE list
variable, LessonComplete, instead of Lesson1Complete through
Lesson8Complete.
-- Assumes a database query returns a string of name=value
pairs
-- delimited by the ampersand (&) character.
-- strip leading & from queryString
--(note you could also not add this ampersand on the PHP
side)
queryString := SubStr(queryString, 1, CharCount(queryString))
-- break into list of individual lines
tempList := Replace("&", Return, queryString)
listLength := LineCount(tempList)
-- create empty arrays for name and value
name := Array("", listLength)
LessonComplete := []
repeat with counter := 1 to listLength
singleLine := GetLine(tempList, counter)
name[counter] := GetWord(1, Replace("=", " ", singleLine))
LessonComplete[name[counter] * 1] := GetWord(2, Replace("=",
singleLine))
end repeat
-- now you will need to add a separate calc icon with a
routine to
-- read the data from the arrays. name[counter] matches
value[counter]
--No you don't...You're DONE :-)
Also note that this is extensible...you can have Lesson 9,
10, etc. and not
have to change the code. You can also lower the amount of
data being
transmitted, because now instead of Lesson8Complete=1 all you
need is 8=1.
This lowers the server load and speeds the response. It has
advantages on
the Authorware side as well, because if, for instance, you
had a series of
buttons that were checked or not based on the completion, you
could do the
same type of loop. Separate variable names do not allow for
that type of
loop unless you use Eval (ugh).
HTH;
Amy -
My old comp crashed! How do I move data from my ipod onto the new one?
I had a dell laptop; it crashed... I have about 2500 songs and videos on my ipod; is there a way for me to move the data from the ipod to itunes in my new computer? Thanks for any help...
Hi! Welcome to Apple Discussions Forum.
If you have purchased songs from the iTunes Music Store, then those are pretty easy to transfer to your computer. You'll just need to follow [this instructions|http://docs.info.apple.com/article.html?artnum=305465].
All your other songs (for example, those ripped from your CD's), you'll need to use any 3rd party program to transfer them to your iTunes library!
Some can also transfer your playlists, videos, ratings, podcast...
*To use with iPod Touch/iPhone and other iPods:*
[iGadget|http://www.ipodsoft.com/site/pmwiki.php?n=igadget.Homepage] (Mac and Windows)
[iRepo|http://www.purpleghost.com/index.php?q=irepo] (Mac and Windows)
[iPod Access|http://www.findleydesigns.com/ipodaccess/index.html] (Mac and Windows)
*To use only with other iPods:*
[Media Widget|http://www.bootstrapdevelopment.com/showproduct.aspx?t=b#features] (Windows only)
[iDump|http://www.download.com/iDump/3000-2169_4-10407429.html] (Windows only)
[Senuti|http://www.fadingred.org/senuti> (Mac Only)
I would recommend you to keep your media safe, backing up library. Click [here|http://docs.info.apple.com/article.html?artnum=302392] to learn how to do it, using CD's or DVD's.
Hope this helps! If you still have doubts, please reply.
Best Regards,
!http://signatures.mylivesignature.com/54486/122/A57996D55BE7ABB4A67DE686D381A27 4.png! -
How to read Image data from oracle DB?
How to read a oracle database object ORDSYS.ORDImage from oracle
database?
I can get a oracle.sql.STRUCT object from the database, but i can not
find the way to convert data to a image object(like oracle.ord.im.OrdImage)
I had used "OrdImage imgObjj1 =
(OrdImage)rs.getCustomDatum(1, OrdImage.getFactory());"
it's a example from oralce.
But OracleResultSet.getCustomDatum() method is already deprecated,
i can't find a new method to instead of it.
Who can help me ? Thank you!
[email protected]More than likely, this is the interface you will use:
java.sql.Blob
http://java.sun.com/j2se/1.4/docs/api/java/sql/Blob.html
Once you get the blob, construct a Raster objects from the Bytes you receive from the blob. Then you can create an Image, ImageIcon, BufferedImage, whatever with the Raster object.
Good luck! -
How to read xml data from jsf,
Hi
I would like to know how to read data in an xml so as we can display that data onto the jsf page to the user, say as a data table, or in an output txt box etc...This is nothing JSF-special. Just convert XML to objects (DTO's) and then use them in JSF.
There are several ways to crawl the XML tree. JXPath and DOM4J are popular. -
Read integer values from spreadsheet and display the values in a table
Hi all,
I have integer values to read from a spreadsheet and display them in a table. I am using 'Read from spreadsheet file' in 'integer' mode. I would like to display these values in a table. The problem is that the table takes only 2d-array of string as input but not integer.
It works fine if I change the mode of 'Read from spreadsheet file' from 'integer' to 'string' but I want to read integers and have to use the integer values for further calculations. Please give any suggestions on displaying integers to a table.
Thank you.
Solved!
Go to Solution.No don't take element by element just convert as a whole. See the attached example
Good luck
The best solution is the one you find it by yourself -
I just the iphone 3, how do I download photos from my laptop to the phone?
How do I downlaod photos from my laptop to my iphone 3?????
Have a look at the manual:
http://manuals.info.apple.com/enUS/iPhone_iOS4_UserGuide.pdf -
I tried to install a free application from the apple store, I was asked to enter the billing information even if free, gave all the details, chose visa as method of payment but I had a note saying that my method of payment is invalid. Why?
Hi ...
Try here > iTunes Store: My credit card's security code or zip code does not match my bank's records
Maybe you are looking for
-
Is it possible for the JDBC Lookup in PI 7.1 to read other user's table?
Hi, I have the requirement of using the standard JDBC Lookup in PI 7.1. The user setup in the receiver JDBC adapter is only a service user that has a read access on some tables that are owned by another user or schema. When I am trying to do the impo
-
How to add a partition for Windows XP
Hi, I recently received my T410 with Windows 7 pre-installed. I would like it to be a dual-boot system for Windows 7 and XP. I had hoped to be able to create a new primary partition after shrinking the Win7 partition. However, it looks like my system
-
Lockbox and clearing the Open Items
Hi, I have a requirement and advise me will it be possible with standard SAP . Invoice 1 amt 500 USD Invoice 2 amt 600 USD Lockbox amt 1000 Expectation : Lock Box program should clear both the invoices and create a the diff of 100 ( 600+500 -1000)
-
Hi i am unable to create a PO using the FM : 'BBP_PD_PO_CREATE' following is the code i am using data: it_header like bbp_pds_po_header_ic. data: it_att type bbpt_pds_att_t with header line. data: ls_header like bbp_pds_po_header_d. data: ls_att type
-
Hi.. I have problem with this code. class test test tt=new test(); //1 String name1; test() {} test(String i) name1=i; //tt=new test(); //2 public static void main(String arg[]){ test