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

Labview - Graph

解決済み
解決策を見る

Hello,

I am new to LabView and I am trying to solve one task for school.

 

I should generate a signal (Sine + higher harmonics) and connect it through a diode to output, where I should observe the resulting signal. 

I have created the generator and verified that it does what I need.

I have also created a model of a diode.

I am successfully writing the rectified signal to a xls file, where I can observe the corresponding exponential characteristics.

 

The problem is in connecting the rectified signal to a graph.

 

Can someone give me an advice?

0 件の賞賛
メッセージ1/15
1,867件の閲覧回数

The main file is DiodaPok.vi

0 件の賞賛
メッセージ2/15
1,863件の閲覧回数

Can you "save for previous" (LabVIEW 2020 or below) and also attach a typical dataflie?

0 件の賞賛
メッセージ3/15
1,821件の閲覧回数

I forgot to attach the code of generator. Here it is

 

0 件の賞賛
メッセージ4/15
1,818件の閲覧回数

Did you see my note about "save for previous"?

 

All you need is save the toplevel VI for previous, and it will create a down-converted version of everything, including dependencies to a new folder that you can zip and attach.

0 件の賞賛
メッセージ5/15
1,810件の閲覧回数

Here are all the 3 necessary VIs saved in 2020 format.

Thank you very much for help!

0 件の賞賛
メッセージ6/15
1,802件の閲覧回数

Ah, what a mess!

 

You are creating a waveform and coerce it to a scalar at the second subVI, meaning you only retain one value. Then you are trying to graph a waveform as X and a scalar as Y. Makes no sense!

 

What is a typical input for Vmin? (Is zero is a good default value?)

Can you write out the formula for the second subVI? (I doubt it is correct).

 

Maybe you should get the Y array out of your waveform and apply your formula, create a complex array and wire it to the xy graph. No need for express VIs!

0 件の賞賛
メッセージ7/15
1,788件の閲覧回数

Thank you altenbach that you have looked at it.

 

As I said, I am a total beginner in LabView.

 

However, meanwhile I found a different solution - to emulate the diode via Formula node.

The output of the Formula node is compatible with the input of the Waveform Graph..

 

So no need of the specific subvi simulating the diode and causing a mess.

 

 

0 件の賞賛
メッセージ8/15
1,782件の閲覧回数
解決策
トピック作成者mravenca@gmail.comが受理

(No, please don't use formula nodes! LabVIEW is graphical!!!)

 

Here's a draft how if could look like ( you can set dx for the waveform graphs if needed):

 

altenbach_0-1703695998333.png

 

0 件の賞賛
メッセージ9/15
1,772件の閲覧回数

Thank you very much!!

0 件の賞賛
メッセージ10/15
1,749件の閲覧回数