LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make multiple plots for each channel

Hello,

I am using a NI cDAQ-9178 and third party DAQ. The forum has many post that have answered part of my question. I would like to plot Frequency, Temperature and Voltage for 12 channels. I am currently plotting all three, but don't know how to plot these for each channel. I will attach the huge file, if necessary ... but will post screenshots for now. Here is a screenshot of my front panel for two types of graphs/charts and my block diagram. I have an array of the channels which displays each individual value for Frequency, Temperature and Voltage ... I just don't know how to switch between the channel plots. Any suggestions are welcomed ... thanks. I started with the following link: http://digital.ni.com/public.nsf/allkb/21E8163F259DA2058625703B007511AA).  .

Download All
0 Kudos
Message 1 of 6
(3,962 Views)

Hi mzlhb,

 

so you already know how to index one channel/row of each array.

To index 12 rows one after the other you should use a loop - an autoindexing FOR loop would be ok too…

 

Btw. when setting plot properties you should first set the active plot, then it's properties! Properties are handled top-down!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,942 Views)

And, Setting Plot visibility that way is just plain silly.

Right-click the Plot Legend and expand Visible Items check the "Plot Visibility Checkbox"

Capture.png

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 6
(3,929 Views)

Thanks for that information, Jeff·Þ·Bohrer. I am still new to LabView and did not know that the plot visibility was available by simply right clicking.

0 Kudos
Message 4 of 6
(3,885 Views)

Thanks GerdW. I have already separated the Frequency, Voltage and Temperatures into channels using an auto-indexed FOR loop, outlined by the red rectangle in the attached photo. I am currently using these arrays to print to a text file. I just don't know how to use this to change the plot to display the frequency, voltage and temperature for each channel. It's possible that it is working when I increment/decrement the row's control, but I am not seeing any changes in the plot. I'm not sure why I made these 2d arrays 😞 

channels1_controls.png                 

0 Kudos
Message 5 of 6
(3,883 Views)

Jeff·Þ·Bohrer,

 

I don't think that many are aware of the right click for plot visibility feature, as I got the idea that you've called "silly" from a forum post, "how do I display multiple plots on one chart?" The attached referenced vi that I've used was from altenbach, KNIGHT OF NI. Thanks for educating myself and others on this feature though.

0 Kudos
Message 6 of 6
(3,880 Views)