05-03-2018 04:01 PM
Hi there,
Are you trying to convert the values in the .csv to XY format? See the following forum post that seems to describe someething similar: https://forums.ni.com/t5/LabVIEW/read-csv-file-to-graph/td-p/580879
05-03-2018 07:31 PM
Hi,
I know this doesn't have much to do with the trend but can i use this same event structure to calculate the rms, average value and the total time recording that will display when the calculate button is clicked.
05-03-2018 07:41 PM
Zoe,
Team up with Syd, who has a similar EKG question and who I'm guessing is in your class. Work together, teaching each other.
Bob Schor
05-03-2018 08:19 PM - edited 05-03-2018 08:23 PM
Hi Bob_Schor,
thanks for the suggestion but I just want know how to calculate the rms, average value and total time recording. I already know that there are VIs for the rms and avr but I don't know to calculate the total time recording and I want to be able to calculate the rms, avr and total time for each emg file and display when the calculate button is clicked.
05-03-2018 10:02 PM
Hi,
I'm need to compute the rms, average value with total time recording of emg waveform graph after reading csv files into labview. any help is appreciated. thank you.
05-04-2018 01:15 AM - edited 05-04-2018 01:39 AM
05-04-2018 11:55 AM - edited 05-04-2018 11:59 AM
I don't have LabVIEW 2017 handy, so can't look at your code. In particular, I don't know how you are saving the data. If it is as a Waveform, you can get the time for the Waveform by the formula "dt" * lenght of "Y", i.e. the time for each sample times the number of points in the sample. If you have multiple records, they probably all use the same "dt" and N (number of samples), so the total time becomes dt * N * # records. Isn't that obvious?
Bob Schor
P.S. -- just realized it might not be "obvious". I'm assuming you are taking continuous samples, so its all one big data stream, and there is no gap between records.
I also am assuming you are using hardware-AI (or equivalent) DAQmx Timing, so there's a known "dt". Maybe you are using another instrument, getting data via VISA, and don't really have a good measure of the sampling time. Oops. Are you saving data in some format that adds a Time Code to the data (I think TDMS might do this)?
Sorry, if I were able to view your VI (and weren't packing to move to a new home), I would be a bit more coherent, or so I hope ...
05-06-2018 10:39 AM
Hi,
I done with almost everything on my code. Could someone please review my code for me and I keep getting this error "Error 13 occurred at List Folder in EMG_final.vi" when I try to run my code if u could tell what wrong it, that would be great. I'll attach all u need to run the code. Thank you.
05-06-2018 12:20 PM
First, a comment -- do you know why most LabVIEW functions have Error In and Error Out terminals? [Hint -- it is not "to simply ignore them"].
You say that you get Error 13 at List Folder, the very first function that gets executed in your code. Did you look up what Error 13 means? [To do this, click on "Help", "Explain Error ...]. It says "LabVIEW: Failed to load dynamic library ... because of an invalid file format." Now, look at the Help for List Folder. Look at the file format you are using as an input to List Folder. Is it a valid File Format? [Hint -- Error 13].
Fix your code.
Bob Schor
05-07-2018 03:43 PM - edited 05-07-2018 03:47 PM
Hi,
could someone show me how to calculate rms and avr properly I already searched for solution but I can't find any I keep getting NaN and NaN for both when I run the code. if anyone can assist me that would be great. I will attach the vi file and a screenshoot of the event structure.