So I am trying to write a code in C++ about the cardiac excitation threshold.
I know that this excitation threshold is the shortest stimulus2 value at which it can conduct an action potential (known as the effective refractory period) at that stimulus1 value.
So my question is: In my code should I have: apply_stimulus1 for basic_cycle_length = 1000 and while you are applying this stimulus1 apply and a stimulus2 and print out the shortest value of s2 where I can have a potential? -> the way I am thinking this is apllying both stimulus simultaneously. If we say .... this is stimulus 1 and this is ,,,, stimulus2 at the end I will have ;;;;.
Or should I say when you finish applying that stimulus1 apply a stimulu2 and give me the shortest time where I get action potential? But here I will have stimulu1 .... || (meaning ends applying stimulus1) ,,,, apply stimulus2.
Is this how I am thinking it correct or I just got lost in my own thoughts and it is easier than I make it look?
My question is:
How do I get the cardiac excitation threshold using stimulus1 and stimulus2 and how can I incorporate the theory in my C++ code.