From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I choose optimal signal?

Solved!
Go to solution

Hi all!
I received some signals from device. Also I've had a known standard signal. My problem is: how can I choose one (of the receiceved signals), which compares with standard signal with the smallest error?

In the picture attached here, yellow graph in bold  is reference (standard). How to make a decision: which one of remaining graphs is closest to the reference graph? 

Thank for your any helps!

Mc

0 Kudos
Message 1 of 9
(3,520 Views)

Mc:

 

Your graphs did not attach.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 2 of 9
(3,514 Views)
oh, I'm sorry. Here is attached graph.
0 Kudos
Message 3 of 9
(3,500 Views)

Hello Mc,

 

Can you give more detail on what you're attempting to do?  Are you wanting to programmatically choose the plot that is closest to the reference?  If that is the case, you have quite a few options on Functions Palette, including an Express VI that does polynomial fitting.  Please let me know if you need further assistance.

 

Thanks!

 

Meghan 

Applications Engineer

National Instruments

Message 4 of 9
(3,477 Views)

Hello Megha,

 

Yes, I'm wanting to programmatically choose the plot that is closest to the reference? Out put of the task is this plot. But I haven't found polynomial VI, which can solve this problem.

 

Thanks!

 

Mc
0 Kudos
Message 5 of 9
(3,468 Views)

First you have to define you best match. (closest fit, same force at a specific point, same decreasing rate of force .... ??)

 

Your signals look quite simple, so a MSE calculation might workout best. 

 

Even more simple is the sum of abs difference 

 

 

 

Message Edited by Henrik Volkers on 04-02-2009 09:05 AM
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Download All
Message 6 of 9
(3,464 Views)

Hello Henrik!

Thank for your advice, but your program could not run on my Labview 7.1. How should I do now?

0 Kudos
Message 7 of 9
(3,458 Views)
Solution
Accepted by topic author nguyenmanhcuong

That's why I post the picture , I don't have 7.1 (any more)  ,  this answer took longer to write than to code this thing new 😉

 

the mse.vi is located in the mathematics- statistic section 

the rest is  at numeric, array and waveform

 

 

PS: the help section and the search functions  are the tools to look at 

       Kudos welcome 

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 8 of 9
(3,447 Views)

Many thanks for all. I have solved problem.

Mc

0 Kudos
Message 9 of 9
(3,437 Views)