04-18-2005 04:21 AM
04-18-2005 07:33 AM
@martian wrote:
Currently came into this difficulty, would appreciate any help greatly
First i have attached a excel data file attached, the first column is date and the second is time, the other columns are data. What i want is to show this data as it is in excel into a table in my labview vi, i would also like to plot the data in a multi plot graph with the x axis as the time and date with respect to that recorded in the excel file ?
Thanks
Benjamin
04-18-2005
08:25 AM
- last edited on
11-13-2025
04:09 PM
by
Content Cleaner
I agree with ElSmitho, but I have 2 remarks to make.
First, the read from spreadsheet VI only reads number. Since you have date and time, you will have to read strings. You can find instructions for modifying both the read and write VIs on their block diagrams. Open them by double clicking them. Then, make sure you saved the modified files to a different location.
Second, after you've done this, you will need to modify the strings into LV time. You can concatenate the strings and then use the method seen in the attached VI. Keep in mind that it isn't finished and that it may have some bugs. It's supposed to use the same codes used in LV's string conversions, but it's not finished.
Then, to plot it, look at the example called XY Graphs in the example finder (help menu). It shows how to create graphs with multiple plots. It's a bit tricky, so be sure to follow it to see exactly how it's done. You can change the graph's X scale into time by right clicking it, selecting Format & Precision and selecting Absolute Time.
To learn more, I suggest you read the LabVIEW user manual. Also, try searching this site and google for LabVIEW tutorials. Here is one you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide.
04-18-2005 10:17 PM - edited 04-18-2005 10:17 PM
Message Edited by chilly charly on 04-19-2005 05:22 AM
04-19-2005 08:51 PM
04-20-2005 11:30 AM
04-20-2005 04:11 PM
04-20-2005 07:33 PM
04-21-2005 12:09 PM
05-18-2005 05:27 AM