LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to merge a simulated signal and an array?

I have a complicated project going on at the university and I would appreciate some help. I am to create a VI that will simulate the response of a neuron to a given current stimuli, both for sub-threshold values (-50) and supra-threshold values. I have already taken care of the subthreshold value response, however, once the neuron voltage reaches the threshold value, the gradual, increasing exponential function becomes a sudden jump (another square/step function) that goes from wherever the voltage reached -50 mV up to +30mV for 1msec and then drops all the way to -80mV for 2.5msec. After this, the increasing exponential function may come back or not depending on other factors. I am not asking to have someone do my homework but it is a struggle to try to simulate the sudden jump post-threshold value, so I could use a little help. In order to accomplish this, I have tried both using pure C syntax through the Formula Node but I got stuck in the last part, so I turned to what appeared to be a simpler solution: to merge a square signal simulator with my [x,y] array. Does anyone know how can I accomplish this?

 

Thank you in advance.

 

Pd. I cannot post a copy of my VI, lest any of my peers will find it and claim it as their own and get us in trouble.

0 Kudos
Message 1 of 3
(2,152 Views)

Assuming your points are spaced equally, a plain 1D array is sufficient (Assuming your [x,y] array is an array of xy clusters, but even that's not really clear from your description).

I am not sure about your definition of "merge", but to add multiple signals you can simulate them separately and just add the various arrays. (if you have arrays of xy points, you would potentially interpolate all signals to a common x base, the operate on the various y values).

 

How are you currently simulating the other signal?

0 Kudos
Message 2 of 3
(2,142 Views)

I appreciate the prompt response.  I will post the VI since I doubt anyone will find it. I need to combine the bottom two graphs so that the square response begins when the voltage graph at the middle reaches -50.

 

0 Kudos
Message 3 of 3
(2,135 Views)