LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview - Graph

Solved!
Go to solution

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 Kudos
Message 1 of 15
(976 Views)

The main file is DiodaPok.vi

0 Kudos
Message 2 of 15
(972 Views)

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

0 Kudos
Message 3 of 15
(930 Views)

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

 

0 Kudos
Message 4 of 15
(927 Views)

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 Kudos
Message 5 of 15
(919 Views)

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

Thank you very much for help!

0 Kudos
Message 6 of 15
(911 Views)

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 Kudos
Message 7 of 15
(897 Views)

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 Kudos
Message 8 of 15
(891 Views)
Solution
Accepted by topic author 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 Kudos
Message 9 of 15
(881 Views)

Thank you very much!!

0 Kudos
Message 10 of 15
(858 Views)