05-02-2018 07:44 PM - edited 05-02-2018 07:48 PM
Hi,
Could someone show me how to use ring to select a particular csv spreadsheet file and plot that file in waveform graph.
Solved! Go to Solution.
05-02-2018 05:28 PM - edited 05-02-2018 05:47 PM
I just started using LabVIEW can some please show me how to select a particular file to plot on the waveform graph. The 3 emg file are csv files in zip folder and read into LabVIEW.
Thanks.
05-03-2018 01:45 AM
Hi zoe,
how to use ring to select a particular csv spreadsheet file and plot that file in waveform graph.
The ring gives you an integer value. You can use this value as an array index (using the IndexArray function) with an array of filepaths to select your "particular csv spreadsheet file". Once you loaded the CSV data you can display it in a graph…
Unfortunately you didn't supply any (example) CSV file(s).
05-03-2018 03:51 AM
Hi GerdW,
the csv file are excel spreadsheet in the zip folder called EMG.csv.zip. could please explain more clearly how I'm supposed to index the csv files with index array and use the select option in the ring.
Thank you.
05-03-2018 05:42 AM
Hi zoe,
the csv file are excel spreadsheet in the zip folder called EMG.csv.zip.
No, there is just a VI in the ZIP!
Btw. "csv files" are plain text files, but Excel is able to read them. But they are NOT "Excel files"…
how I'm supposed to index the csv files with index array and use the select option in the ring.
I guess you know how to use the IndexArray function?
With ListFolder you can get an array of filepaths and you can use IndexArray to select one of them. The index iput would be connected to your ring control.
05-03-2018 06:21 AM
I advise you use a ComboBox instead of a Ring. A ComboBox has a string data type, which would eliminate part of your code to index out the Strings array.
05-03-2018 10:22 AM
Hi,
thank you for your help. I'm try to understand but this is my first time using labVIEW. Could u show me an example on how to use the Combobox because what I'm try to do is select the file from options and click on the load button to load file into LabVIEW and plot the selected EMG.
05-03-2018 10:51 AM - edited 05-03-2018 10:52 AM
Like I said, the ComboBox just acts as a string control. You can use the Strings[] property to set the allowed values. But after that, just use the Build Path to generate the path to your selected file.
05-03-2018 11:05 AM
To add to crossrulz's example, this would preload the (*.csv) filenames from a directory into the combo box
05-03-2018 03:42 PM - edited 05-03-2018 03:44 PM
Hi,
I have 3 emg.csv file and I want to calculate the RMS, average value and total time recording of the waveform graph of each emg.csv file separately with the click of a button. Any help is very much appreciated. thank you.