LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using ring to plot a csv waveform graph

Solved!
Go to solution

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

 

Jen P.
Applications Engineering
National Instruments
0 Kudos
Message 11 of 26
(1,191 Views)

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.

0 Kudos
Message 12 of 26
(1,192 Views)

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

0 Kudos
Message 13 of 26
(1,203 Views)

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.

0 Kudos
Message 14 of 26
(1,197 Views)

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.

Download All
0 Kudos
Message 15 of 26
(1,211 Views)

Hi zoe,

 

can i use this same event structure to…

Yes.

Just add another event case…

 

Edit: please keep related discussions in one thread. No need to ask the very same question in two three four threads. (I merged them…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 26
(1,189 Views)

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 ...

0 Kudos
Message 17 of 26
(1,158 Views)

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.

Download All
0 Kudos
Message 18 of 26
(1,202 Views)

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.

  • Use the Error Line properly.
  • Make sure to give Functions the correct Inputs and Outputs.
  • When in doubt, write a very tiny Test VI (perhaps a single Control, a single Function, a single Output), run it, test it if it fails, think about it, modify it, test it again (reading help messages, using the Error Line, etc.) until you figure it out for yourself.

Bob Schor

0 Kudos
Message 19 of 26
(1,178 Views)

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.

Download All
0 Kudos
Message 20 of 26
(1,212 Views)