I am a new user of labVIEW please I need help ... I have EMG signals taken from students and i want to calculate using matlab the energy of the signals after i have rectified the signal.
Solved! Go to Solution.
The way I am understanding it, you have a data acquisition system with LabVIEW as a front end. You acquire EMG signals, and want to compute the energy via Matlab?
Refer here to use Matlab script in LabVIEW.
No ... I have complete the acquisition and I have collected 30 EMG signals ... I want to use labview to make a code that calculate the energy of the signal and trace the variation of the energy in terms of the time could this done in labview?
Consider looking into the Biomedical User Group. You may find others who share your interests.
Rectification can be performed in software by taking the absolute value. There are VIs which calculate RMS values which are closely related to the energy. Look int the Signal Processing palette.
First, I would have few questions regarding to the topic. In what file format are the data stored? You can create processing algorithm (with my guidance) on your own if you know the formula. Do you have the formula? There are also functions for computing various values from signal, did you try to search on ni.com?
If you have an algorithm for processing (or you are familiar with Matlab more than with LabVIEW), you can use MathScript Node ( http://zone.ni.com/reference/en-XX/help/371361J-01/gmath/mathscript_node/ ) or MATLAB Script ( http://zone.ni.com/reference/en-XX/help/371361J-01/gmath/matlab_script_node/ ). The difference is that in case of MATLAB Script, LabVIEW calls Matlab environment (so Matlab must be installed), in MathScript is used engine created by NI, so you do not need to have Matlab installed but you do not have full functionality (functionality can also be little different). MathScript is included in MathScript RT Module compared to need of Full Development System for MATLAB Script.
Please, let me know if this is helpful and if not, provide at least the data file format (if it is possible, example file would be great) and the formula for energy (I suppose that it is integral of squared value).
please follow the attached VI. There is shown how to read the data from file and process them. The data looks little bit weird because it has about 600 or 1000 channels (depending whether the data channel is in row or column). Then for every data channel is computed RMS which is usually considered as quantity connected with energy. Please let me know if this is ok or any additional problem appeared.