10-14-2014 04:16 PM
Hello everyone, I'm working in a Cardioverter simulator for school, basically what should do is be constantly generating a ECG singal, but when charge and discharge buttons are TRUE and the signal reaches the highest value ( QRS peak) the signal should become 0 for a moment and then start again, I'm using Simulate Arbitrary Signal to generate the ECG signal, using a SELECT I can Switch between maximum amplitude ONE to CERO, however it only becomes CERO for a cicle, and I need it to be CERO for many cicles before the signal starts again, but I dont know how to HOLD the TRUE State that controls the SELECT.
Can someone help me with this? I attached my VI.
10-14-2014 05:13 PM
You need to store your reset status in a shift register. It only needs to be true for one iteration of the loop otherwise it will continue to reset. Make your boolean comparisons after generating the signal so you can get rid of the feedback node. I don't really understand your comparisons so I am unsure what should go on the true case.
10-14-2014 05:45 PM
I think I attached the wrong file, let me attached the updated one, I tried the shift register and now it makes CERO the amplitude for two cicles but I still need it to be for more cicles, i want my signal to look like this:
When charge and discharge buttons are pressed and the signal is higher than 0.8 the signal should go to CERO and then start over again.
10-15-2014 09:04 AM
Your signal generator is outputting one value per loop iteration. Does that help you any?
10-15-2014 09:35 AM