03-18-2014 10:48 AM
03-18-2014 11:10 AM
Hi GerdW,
Apologies about the crude description. I am having the following problems:
-When I alter the "Force" on the Heel Force Graph the line extends in both directions and the Sine wave grows. This not my desired affect how could I get the line to just rise in one direction?
-At the peak of the Sine wave on the Heel Force Graph I would like to have a flat line for a second which could be adjustable but I'm am unsure how to do this?
-I created a simple way of detecting when the threshold of the Trunk Tilt and the Heel Force have been reached in it shows a light, do you think I should include the EMG signal in this, however I dont think It would work well.
-Any other suggestions/recommendations are welcome.
Please find attached my latest version of the VI
Kind Regards,
Mark.
03-18-2014 11:21 AM - edited 03-18-2014 11:22 AM
Hi mbrolly,
you still do a lot of things with too much code!
- Appending data to the end of an array is done with BuildArray, no need for InsertIntoArray and ArraySize…
- Creating a ramp from 0.01 to 10 is easily done by RampPattern…
- Using the simple SinePattern function would avoid that horrible DynamicDatatype…
- Using an ExpressVI for such simple things like "Less" or "Greater" is kind of giant overkill…
When you want more details in your signals you have to create them with even more parts: a "sine wave with a flat top" is the same as "half a sine + flat line + half a sine". The more complicated your signal the more parts you need to append…
03-18-2014 11:32 AM
Hi GerdW,
Sorry if the code is crude/sloppy I'm still new to LabVIEW and I'm getting use to it still. I'm just struggling to get this done on a short time period. I used the express VI's for the sake of saving time for the greater/less than, I intend to go back and tidy the VI up once I have an end result.
Would I use an array to create the flat line?
Kind Regards,
Mark.
03-19-2014 02:00 AM
03-19-2014 04:44 AM
Hi GerdW,
I'm very lost at the moment I have tried adding the build array function to the two sine patterns but I'm having trouble with now producing it on a graph (after I added the array) and when I had just the two sine patterns on the graph it didn't represent anything close to what I'm looking for. Thank you for your continued patience sir.
Kind Regards,
Mark.
03-19-2014 05:12 AM
Hi Mark,
what's the point in adding just the BuildArray function?
What's the point in plotting a sine wave vs another sine wave on a XY graph? I thought you want to create just one waveform to display it on a "standard" waveform graph?
You want to create a waveform consisting of several parts with different "shape": do so by concatenating the parts!
You want to plot a waveform on a graph: do so!
03-19-2014 05:22 AM
Hi GerdW,
The idea behind the Build array function was to create a line at the top of the 1st sine wave.
I thought by what I was doing on my block diagram I would concatening the 1st sine wave the array and the 2nd sine wave.
I'm using the XY graph because it worked well for the Trunk Tilt VI. Am I completely off by what I have done?
Kind Regards,
Mark.
03-19-2014 05:26 AM
Hi Mark,
yes, you're completely off.
How should including just a BuildArray introduce a "line" in your plot?
Why should BundleCluster concatenate your waveforms?
I strongly suggest to go through all those free online LV courses offered by NI to get the basics!
03-19-2014 05:47 AM - edited 03-19-2014 05:48 AM
Hi GerdW,
Apologies for the crude code, I have an updated VI for the Heel Force element. The changes made are what I think you are suggesting. Again, apologies if it is way off from what you are saying. I have completed some of the tutorials and I'm just trying to work towards getting this finished.
Thanks for your patience.
Kind Regards,
Mark.