LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Integral with simulation

Hi there,  I'm attempting to process some data through a High-Pass Filter, then an absolute value, then a low-pass filter.  I have succeeded in this regard.

 

My problem occurs when I try to compare the integrals of the processed data.  I'm attempting to get a ratio between the areas under the curve to prove a hypothesis.  I can't seem to get the integration to happen.  Half of the time, my code breaks (the play arrow won't run) and I have to load an older save from before I began this integral business.

 

I'm attaching my VI.  If anyone could help me with this, I would be most appreciative.  The problem area is in the lower right hand corner of the code.  I suspect it has something to do with my arrays?  But I'm a LabView novice, and I haven't figured out the issue.

0 Kudos
Message 1 of 6
(4,581 Views)

The VI you posted won't load on my system (Full Development System with all standard toolboxes): it looks for "SIMX TimeWaveform.xnode", "TimeNode.xnode", "SIMX LUT1d.xnode", "SIMX TransferFunction.xnode", "SimDog.xnode", "CMDC_ArithmeticOperator_plus.vi", "CMDC_ArithmeticOperator_minus.vi", "CMDC_ArithmeticOperator_mtimes.vi", and more.  I gave up.  

 

Your code looks quite complicated, considering the hypothesis which you want to test.  The type of processing you describe occurs all the time in electromyogram analysis, AM radio detection, etc.  I suggest you create the simplest VI possible to test the hypothesis.  Simplify, simplify, your VI before posting.

Message 2 of 6
(4,549 Views)
Yeah, the VI was complicated.  I eventually figured out what was going on.  One of the problems making the VI such a pain is that my lab partner wrote most of it by editing another VI.  Thanks for your reply.
0 Kudos
Message 3 of 6
(4,541 Views)

Hi,

 

What error message do you get when the arrow breaks?  Are you trying to send the integrator a 0?

 

Please go ahead and post the smallest portion of code that replicates the error. 

 

Thanks, 

 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 4 of 6
(4,535 Views)

to which labview toolkit does SIMX TransferFunction.xnode belong to?

0 Kudos
Message 5 of 6
(3,945 Views)

@JoshCarnivore wrote:

to which labview toolkit does SIMX TransferFunction.xnode belong to?



The LabVIEW Control Design and Simulation Module.

0 Kudos
Message 6 of 6
(3,937 Views)