Reference no: EM132397127
Lab-View Biomedical Model Building Task -
The goal is to create an EMG evaluating VI. The program contains the following controls on the front panel:
- File Select - select an EMG file. Contains 3 EMG options to select from.
- Load Button - button to load file into LabVIEW and plot EMG.
- Calculate Stats Button - button to make VI calculate stats on EMG file.
- Stop Button - Stops VI.
- Save Path - path to save time interval length of EMG plot.
- Start Time - starting time of EMG waveform to save.
- End Time - ending time of EMG waveform to save.
- EMG Plot - Plot loaded EMG waveform.
The following indicators are on the front panel:
- RMS - Root mean square value of EMG.
- AVR - Average value of EMG.
- Total Recording Time - total time of EMG waveform.
Operation -
1. When the VI is first run, all controls & indicators will reset to default values.
2. Select an EMG file with File Select control.
3. When load button pressed, EMG is displayed on EMG plot. The first column in the file is the time intervals between samples. The second column is the EMG magnitude.
4. When calculate button pressed, RMS, AVR, and total recording time are calculated and displayed. ("add array elements" VI will add all array elements)
RMS = √(i=0ΣN-1x2(i)/N)
AVR = √(i=0ΣN-1|x(i)|/N)
5. When save button is pressed, a csv file is saved from the EMG to the location of save path control. File is called NewEMGData.csv. The amount of data to save is specified by the start and end time controls. Only need to save EMG magnitude values to a csv file.
6. Pressing stop will stop the VI. VI will also stop if an error occurs in the VI.
Additional Requirements:
1. Must use a subVI for the following operation
a. Calculating total recording time, RMS, & AVR values.
2. SubVI must use error wires with case structure
3. All buttons must be event driven. Cannot use polling with case structures for buttons
4. File select control must be a type def.
Attachment:- Biomedical Model Building Task.rar