LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use ring to select different channels on labview

I have captured data from an oscilloscope and I want to display it on graph in labview. How can I use ring control to select different channels and display the waveform on graph?

0 Kudos
Message 1 of 21
(5,026 Views)

That highly depends on how your code is written, but I think the easiest would be to have a ring that is sequental starting at 0, then you can use it and an index array to pull out the channel data you want.  But that is only if you have all channel data at once.  If your code isn't structured that way then you are probably going to be in a timeout case, reading the current control value and reading the appropriate channel based on the current value, and then on a value change you'll want to clear the graph which can be done using an event structure.

 

If it hasn't been suggested yet I'd recommend going through some of this free training.  There are plenty of videos on youtube too to get a feel for the basics.

 

NI Learning Center

NI Getting Started

-Hardware Basics

-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)

-LabVEW Basics

-DAQ Application Tutorials

-cRIO Developer's Guide

 

Learn NI Training Resource Videos

6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required

0 Kudos
Message 2 of 21
(5,015 Views)

Do you mind to give me an example? If I have data of 2D array which consists of 6 channels data. Then how can I use the ring menu?

0 Kudos
Message 3 of 21
(4,957 Views)

Hi,

 

check out this example.

 

Example



-Matt
0 Kudos
Message 4 of 21
(4,938 Views)

Thank you for example Matt. But I have a 2D double 64 bit data as an output. I has information about the number of channels and  signals itself. I need ring as a drop down menu to let the user choose which channel to display on the graph. 

0 Kudos
Message 5 of 21
(4,912 Views)

Then do as Hooovahh stated, its simple.  Posting code really helps, but if you cant share the whole code, share the portion you are trying to solve or an example like it.



-Matt
0 Kudos
Message 6 of 21
(4,906 Views)

I don't know if it is a good example but here is a similar code. So I want to attach the ring menu to display either signal 1 or signal 2. How can I do that ?

0 Kudos
Message 7 of 21
(4,901 Views)

Try this one.  This is very primative because i dont know how youll use it, but you should be able to impliment this into your code.



-Matt
0 Kudos
Message 8 of 21
(4,896 Views)

Thank you matt. But you have two cases for now one is sine and second is square. What can we do if we don't know how many channels we have ? How can we use labview to determine the number of channels and show those channels in ring menu?

0 Kudos
Message 9 of 21
(4,876 Views)

I think you mentioned you have the number of channels info.

You can update ring info programmatically like this: http://digital.ni.com/public.nsf/allkb/FB0409491FAB16FA86256D08004FCE7E

Thanks
uday
0 Kudos
Message 10 of 21
(4,868 Views)