07-29-2016 02:11 PM - edited 07-29-2016 02:11 PM
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?
07-29-2016 02:38 PM
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.
-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)
Learn NI Training Resource Videos
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-01-2016 01:03 PM
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?
08-01-2016 03:37 PM
08-02-2016 01:36 PM
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.
08-02-2016 01:43 PM
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.
08-02-2016 01:50 PM
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 ?
08-02-2016 02:03 PM
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.
08-03-2016 09:53 AM
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?
08-03-2016 10:07 AM
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