LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot a graph using Data from Matlab and a SubVi

Hi!!

i am developped this code where by entering a specific angle called Thmax  you will get the corresponding voltages at the output of a Dac. 4 voltages precisely.

Now i need to plot a graph whose inputs are this specific angle and a 1D arry element which i called PHASE in my block diagram.

In matlab, the plot looks like this:

 

 The single point should be highlited in the graph or at list, be seen.

I tried those sub VIs: - Plot Waveform -Polar plot ( since i am dealing with angle). But still, without a success.

 Please help me out...
Download All
0 Kudos
Message 1 of 13
(9,805 Views)

Hi,

 

In MathScript, you can use the functions plot and polar. And in LabVIEW, you can use the Polar Plot Indicator, which draws polar plot in Picture Control.

0 Kudos
Message 2 of 13
(9,804 Views)

Hi,

I tried the Polar Plot Sub Vi but i noticed that i could only create a control , which is a 1 D array of 2 cluster elements.

My inputs are  a 1D array of elements and a single  point...

 

0 Kudos
Message 3 of 13
(9,785 Views)

Hi,

 

Yes, the Polar Plot only accepts an array of cluster to specify the magnitude and phase of each data point. I do not know what your 1D array of elements and a single point stand for. However, you should format your data into the format which Polar Plot VI can accept.

0 Kudos
Message 4 of 13
(9,769 Views)

My Vi is at the beginning of the post. I tried to change the data but without a success, that the reason why i had to post my work on the forum...

0 Kudos
Message 5 of 13
(9,742 Views)

 Hi,

 

I want to create a script for bode plot and polar plot without using matlab, is it possibl?

 

Thanks

Nidhi 

0 Kudos
Message 6 of 13
(9,737 Views)

Hi,

 

I suppose that you want Voltage array to be the magnitude and Phase array to be the phase for polar plot. Then, you can use the Index & Bundle Cluster Array to generate input for Polar Plot. See the attached snapshot for detail.

0 Kudos
Message 7 of 13
(9,735 Views)

Hi,

 

Yes, you can create polar and bode plot in MathScript. Note that you should install Control Design Toolkit for the bode functions.

0 Kudos
Message 8 of 13
(9,732 Views)

Hi,

 

Thanks for your reply but i have one input which i m taking from data portal, & i want to plot the bode plot in report directly in one run?

 

Thanks

Nidhi 

0 Kudos
Message 9 of 13
(9,728 Views)

Hi,

 

Are you using DIAdem? I guess you want to draw polar and bode plot in DIAdem report, am I right? The DIAdem can draw polar plot. However, I am not sure whether DIAdem can draw bode plot. I need to check.

0 Kudos
Message 10 of 13
(9,726 Views)