キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

formula node

Dear Friends

I would like to calculate rms value of my square wave pulse Arrays in a formula node based in C code

Any Ideas please
0 件の賞賛
メッセージ1/7
4,447件の閲覧回数
Hi rumayan,

does it have to be C?

Why not use LabView:

(All the functions can be found in the math/statistics palette, at least in LV6.1 to 7.1.)

Message Edited by GerdW on 08-03-2006 10:46 AM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
メッセージ2/7
4,442件の閲覧回数
Dear GerdW,

Thanks for reply. Yes, it must be  C code because it is a part of a big program.
Alternatively,  if I could write the root mean square formula(rms=sqrt (1/n((X)^2) as a C code that great. Because then,  I will be able to define it as a variable
Any Ideas Please


0 件の賞賛
メッセージ3/7
4,424件の閲覧回数
I'd say that the LabVIEW method is by far the easiest, as the example above shows. However, since you say you need it in C, while you could use a formula node, you're probably better off creating a DLL since you say this is part of a larger C program. Can you simply add the rms function to your C code and compile it into a DLL? That way you can call it from LabVIEW. If you look in the manuals that ship with LabVIEW there's one devoted to calling external code, and there's an example that ships with LabVIEW that's very good in showing how to do it.
0 件の賞賛
メッセージ4/7
4,404件の閲覧回数
Dear friends,
Is there any way to generate a square wave inside labview with different rise times?

0 件の賞賛
メッセージ5/7
4,330件の閲覧回数
Hi rumayan,

you need 'square wave with different rise times' ??? Square wave should have an infinite small rise time...

So you probably need something like a saw-tooth. Generally, a wave is just an array of values over time. You can define any kind of values! And there are even functions to generate waveform (sine, square,...) or ramps: look at palette 'signal processing' -> 'Waveform generation' or 'Signal generation'.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 件の賞賛
メッセージ6/7
4,324件の閲覧回数
thanks a lot that was helpfull

0 件の賞賛
メッセージ7/7
4,310件の閲覧回数