LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

gives input to the graph

Hello,

  The following is my vi where graph is shown and other is a block diagram of it. I am not getting where actually input is given to graph, so as it will plot it on graph. please higlight it in block diagram where input to the graph is given, Please see atachment if block diagram is not cleared

.aaa.jpg

 

 

kk.JPG

0 Kudos
Message 1 of 16
(4,258 Views)

Hello,

 

As I can see from the block diagram values are written to graph via local variables, for example in the case, which is controlled by Pause button. If it is not paused, value is written in the False case to the local variable. I guess it can be written also in the case structure, where Parameters to be displayed are selected. Just currently shown case is updating only graph parameters.

 

Thanks,

Arev

 

CTO | RAFA Solutions

 

Certified-LabVIEW-Embedded-Systems-Developer_rgb.jpgCertified-LabVIEW-Architect_rgb.jpg

0 Kudos
Message 2 of 16
(4,217 Views)

After some trial I came to know that from where input is given to the graph. I mention it in diagram. In graph when input is applied to graph but it is for both voltage and current on Y axis with respect Time on X axis. I want to implement two Y axis one for voltage and other for current, I did that with the help of this forum, but now I do not understand how to give voltage as input to first Y axis and current to second Y axis, As both are given to graph without any separation as per as I understand. Please Help.

0 Kudos
Message 3 of 16
(4,214 Views)

yes it is. kindlly see my another reply, please help me in it

0 Kudos
Message 4 of 16
(4,201 Views)

As I see you are giving 2D array as an input, so I guess it contains data for both voltage and current.

 

If I understand you correctly, you want to assign two plots to different axes. To implement it, open the properties window of the graph, and in the Plots tab select required axis for the selected plot.

 

Thanks,

Arev

 

CTO | RAFA Solutions

 

Certified-LabVIEW-Embedded-Systems-Developer_rgb.jpgCertified-LabVIEW-Architect_rgb.jpg

0 Kudos
Message 5 of 16
(4,199 Views)

Hi kiwagh,

 

why do you mark my message as solution when you still don't know how to associate plots with Y axis?

 

And why do you create new threads again and again instead of sticking with one?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 16
(4,170 Views)

yes I am giving 2D array as input and it contain both. but now how to plot Voltage on first y axis and cuurent on second y axis. I use your step to select plot tab and set for 2nd y-axis it is ploting it but both for 1st y axis not for 2nd y axis. what editing should I do for to get voltage from2D array separetly and cuurent from same 2D array separatly.

0 Kudos
Message 7 of 16
(4,154 Views)

If you have done everything correct, it should work. Can you share your VI, or at least some snippet, which will allow to test the plot assignment?

 

Thanks,

Arev

 

CTO | RAFA Solutions

 

Certified-LabVIEW-Embedded-Systems-Developer_rgb.jpgCertified-LabVIEW-Architect_rgb.jpg

0 Kudos
Message 8 of 16
(4,142 Views)

yes I will,please see the attachments.

0 Kudos
Message 9 of 16
(4,104 Views)

Hi kiwagh,

 

programmatic solution:

check.png

(I'm using a German LabVIEW version, "AktPlot" is "ActivePlot" property.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 16
(4,088 Views)