10-17-2011 06:43 AM
Solved! Go to Solution.
10-18-2011 03:13 PM
Hello Abul,
You could use the read from spreadsheet function to read the data from the spreadsheet. You may need to first export the current data into a CSV file before using this function as LabVIEW can not read Excel files.
From here you can send the array into a waveform graph on the front panel.
To sum up each variable you should select a column with the index array function and use the add array elements function to get the sum.
10-18-2011 05:40 PM
Hello Abul,
When I opened your application I noticed an error saying “Formula Node: Is a member of a cycle”. You are getting this error because your four formula nodes have dependencies among each other. In other words, this application does not follow data flow principles.
From the code you have attached, you may need to have a better overview about LabVIEW data flow programming practices, and there are some good tutorials and examples that can help you understand different architectures that you can put together to achieve what you want.
For example, the following tutorial can teach you how to create and use For Loops and While Loops. This will also help explain timing concepts which you appear to need from the description above. You can also check your LabVIEW shipping examples under Help » Find Examples; I would suggest “Modes for the Timedloop.vi”.
Tutorial: For Loops and While Loops
http://zone.ni.com/devzone/cda/tut/p/id/7588
You will also need to know how to read data from a spreadsheet, which you can learn from this example:
Reading String and Numerical Data from a Spreadsheet File
http://zone.ni.com/devzone/cda/epd/p/id/2235
Feel free to post back if you have any specific questions once you start using these examples.
Thanks!
10-18-2011 10:08 PM