# Cardiac Excitation Threshold - in C++ modelling [closed]

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.

• ok..i just wanted the biology part first so I can give it a try in C++ and then I will post in stackoverflow, if that is ok.. – chrysovalando Oct 16 '14 at 10:42
• Please post your question on stackoverflow.com for help in C++ programming. And you need to edit your question for more clarity. The way it is now, it is confusing. – The Last Word Oct 16 '14 at 10:43
• This doesn't seem like a programming question, however, the basic point of the question is unclear. – WYSIWYG Oct 16 '14 at 11:37
• i just want to know how two different stimulus can create cardiac excitation threshold. As Devon replied below it would be applying stimulus1 for a certain time then wait and then apply stimulus2. So as this question is answered how can I incorporate this in my code. Is it more clear now or still confusing? – chrysovalando Oct 16 '14 at 11:48
• I'm not sure how this is off-topic. This is a subject covered in an intro undergrad neuroscience course. Aside from the programming aspect, I'd use a topic like this for an undergrad exam question (e.g., "design an experiment to demonstrate the concept of relative and absolute refractory periods"). This is just taking that and actually writing a program to do it. – Devon Ryan Oct 16 '14 at 12:08