LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get values from an exel sheet to a global variable

Hallo all,

 

I am a beginner in LabVIEW and I have  a problem in reading datas from an exel file . I would like to import a group of data with timestamps from exel file to a global variable. for ex. speed, acceleration and position of 4 different sensors to each of its global variable.

 

It will be very nice if anyone can give me some ideas.

 

Thanking you in advance

0 Kudos
Message 1 of 7
(3,487 Views)

There are examples that are included with LabVIEW on how to read/write from Excel.

0 Kudos
Message 2 of 7
(3,471 Views)

Novel Idea: Perform a search!

Spoiler
Google!

 

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 3 of 7
(3,465 Views)

You should consider some other means of sharing your data other than global variables. LabVIEW is a data flow language and if you are not careful you can up with race conditions when using variables. Searching the forums fors "variable" should provide lots of discussion about their pit falls and describe alternative methods for sharing data.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 7
(3,442 Views)
Look at the excel board for more examples of reading ir writing to and from excel



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 5 of 7
(3,433 Views)

Thank you all 🙂

 

I had made a search already and then thought of posting the question. I am really sorry if u all felt mine is a stupid problem.

 

If I am not using a global variable, then how can I update my input when the program is running?

 

I used 'read from spreadsheet' option to extract data. but its not working if i am giving a block of data for a single parameter(eg.accleration) with timestamps 😞

0 Kudos
Message 6 of 7
(3,427 Views)

In order for Read From Spreadsheet to work, you would need to save the Excel file as text. Either comma or tab separated data. To read native Excel files, you must use ActiveX. The mentioned Excel Board is here. There are numerous examples there. Do NOT post questions to it.

 

Since you have not posted any code, it is impossible to say how you could eliminate globals.

0 Kudos
Message 7 of 7
(3,422 Views)