LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading mesurements from excel file using labview

Hello LabVIEW community,

 

i want to develop a simple VI that read mesurements which are stored in an EXCEL file in real time. Can i have acces to that file which is opened by another application and read these meserments on the same time ( the file is opened by both the application and the VI) ?? and if is it OK , how can i can i do that?

 

Thnks

0 Kudos
Message 1 of 14
(3,190 Views)

Your Query is on how to access  Excel File/ How access when file is been used (accessed) by other application.

If Your query is on First Point use RGT / Develop VI to Invoke Excel Application.

For the Second point i guess its difficult, i experienced error while accessing an excel from different application.

 

If you state the actual need we can provide alternative way

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 14
(3,164 Views)

i'll rephrase my issue,

there is an application that store some mesurement in an EXCEL file continuesly , i want to develop a VI that read these mesurements in real time , so the EXCEL file is opened by both applications , my question is : is it possible to read from an EXCEL file that is already open ?? and how can i test the file is modified and ENREGISTRED so i can begin the exploitation of the file

0 Kudos
Message 3 of 14
(3,155 Views)

@Brainiac91 wrote:

i'll rephrase my issue,

there is an application that store some mesurement in an EXCEL file continuesly , i want to develop a VI that read these mesurements in real time , so the EXCEL file is opened by both applications , my question is : is it possible to read from an EXCEL file that is already open ?? and how can i test the file is modified and ENREGISTRED so i can begin the exploitation of the file


Use TDMS files.  They can be set to have concurrent access and Excal imports them easily with the TDMS AddIn for excel.


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 14
(3,149 Views)

If you do use the TDMS method as Jeff suggested, you might want to look into converting this TDMS into an Excel file so the users don't need the NI Addin to open your file.  I've done this in places so that my users have an Excel file that they can email to others to open, but I have the TDMS file so it can be indexed with DataFinder or DIAdem.  Here is a tool I made which can convert TDMS to XLSX by leveraging NI's Addin.

Message 5 of 14
(3,141 Views)

i succeeded in reading the excel file but i have an issue.

in the picture below i have a table of measermenets , i want to filtre the measurement in the red rectangle and put them in a 1d table , can anyone help me??

0 Kudos
Message 6 of 14
(3,133 Views)

Why yes I can help.... but its soooooo much easier with a TDMS file and there a lots of examples plus the TDMS file viewer that does all of that for you:)


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 14
(3,128 Views)

@  

i didn't use TDMS file before, can u help me with a VI??

0 Kudos
Message 8 of 14
(3,123 Views)

@Brainiac91 wrote:

@  

i didn't use TDMS file before, can u help me with a VI??


Jeff is a paid consultant.

 

Unless, your company wants to pay him, I suggest you make an attempt on your own, in other words, program a VI, and he can help you fix it if it doesn't work.

 

If you can't do the job, maybe it is time to tell your manager of your inadequacies.

 

.

 

 

 

0 Kudos
Message 9 of 14
(3,118 Views)

labview\examples\File IO\TDMS\Standard Read and Write\TDMS Standard Read and Write.lvproj

 

labview\examples\File IO\TDMS\Advanced Read and Write\Asynchronous Read and Write\TDMS Advanced Asynchronous Read and Write.lvproj

Message 10 of 14
(3,115 Views)