LabVIEW

cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

regarding labview xy multiple plot

When integrated the multiple plot vi in the main vi i am not able to get the plot , the  following are the specs of the xy plot :

1. The task is to obtain the live data of the selected sensors plotted on the xy multiple plot

2.The X axis can plot only one sensor live data among the selected sensors (for eg, if there are 5 sensors, user can select any one only in x axis)

3.In the Y axis more than one sensors can be plotted 

 

The problem we are facing is that no plot is coming when the random data is given as we have no acess to the sensors,Only one single plot is shown in the xy multiple plot.I tried an example by indexing arrays and we are getting multiple plots.But when integrating in main vi we are indexing random data and therefore we are not getting multiple plots.I think the reason behind no result is because the same random data is shown in x and multiple y axis as selected by the user.What can be the solution for this also i am attaching the logic of an xymultiple plot that i created to integrate in the main vi?

0 Kudos
Message 1 of 7
(665 Views)

Hello,

 

I would recommend saving your vi to an earlier version since most members don't have the some of the latest versions.

 

File>Save for Previous Version... 2012 is a safe bet so all members can open it.

 

 

Jacob

0 Kudos
Message 2 of 7
(625 Views)

I don't really understand your question, but I am guessing the user needs to be able to select what plots are shown on the XY Graph?

 

Right click on the Plot Legend, under Visible Items, turn on the "Plot Visibility Checkbox" 

 

wq3Capture.PNGwq2Capture.PNGwq1Capture.PNG

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 7
(615 Views)

bkn@reloaded123 wrote:

The problem we are facing is that no plot is coming when the random data is given as we have no acess to the sensors,Only one single plot is shown in the xy multiple plot.I tried an example by indexing arrays and we are getting multiple plots.But when integrating in main vi we are indexing random data and therefore we are not getting multiple plots.I think the reason behind no result is because the same random data is shown in x and multiple y axis as selected by the user.What can be the solution for this also i am attaching the logic of an xymultiple plot that i created to integrate in the main vi?


This is a very convoluted description and I don't understand most of it. If some of the sensors are not live some of the time, just replace their data with NaN.

 

Also note that you can transpose and autoindex on the 2D array. Now you no longer need to wire N.

 

(If your x values are spaced equally, a plain waveform graph would be sufficient, greatly simplifying the code. You might even be able to use a chart to keep the memory load low).

 

(Be aware that the compiler will not physically transpose the 2D array in memory, but just flag it to index by column. It is labeled as "subarray" in the context help)

 

altenbach_0-1709313002206.png

 

 

0 Kudos
Message 4 of 7
(598 Views)

bkn@reloaded123 wrote:

When integrated the multiple plot vi in the main vi i am not able to get the plot , the  following are the specs of the xy plot :

1. The task is to obtain the live data of the selected sensors plotted on the xy multiple plot

2.The X axis can plot only one sensor live data among the selected sensors (for eg, if there are 5 sensors, user can select any one only in x axis)

3.In the Y axis more than one sensors can be plotted 

 

The problem we are facing is that no plot is coming when the random data is given as we have no acess to the sensors,Only one single plot is shown in the xy multiple plot.I tried an example by indexing arrays and we are getting multiple plots.But when integrating in main vi we are indexing random data and therefore we are not getting multiple plots.I think the reason behind no result is because the same random data is shown in x and multiple y axis as selected by the user.What can be the solution for this also i am attaching the logic of an xymultiple plot that i created to integrate in the main vi?


Ignore my first post I did not understand the question...

Thinking about requirement #2 use Radio Buttons and Property Nodes to make only one plot visible at a time.

 

EPV1Capture.PNG

 

BTW: You can customize Radio Buttons to make them look pretty by changing the Boolean controls inside the Radio Buttons container.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 7
(592 Views)

Changing plot visibility is not the same, because it will hide all data, even if the sensor was available for part of the acquisition.

 

As I already said, the description of the requirements are basically incomprehensible and very ambiguous. I'll wait for a clearer description before commenting further.

0 Kudos
Message 6 of 7
(586 Views)

@altenbach wrote:

Changing plot visibility is not the same, because it will hide all data, even if the sensor was available for part of the acquisition.

 

As I already said, the description of the requirements are basically incomprehensible and very ambiguous. I'll wait for a clearer description before commenting further.


Hmmmm.... Yeah, I agree then because I obviously do not understand what they are asking here?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 7
(580 Views)