10-08-2013 06:04 AM
My desire application is a Data Acquisition application that would read five channels using a USB-6211 DAQ device. I have read and re-read online tutorials on DAQ, DAQ Programming, Property Nodes, Invoke Nodes, Control References and VI Server, but am still stalked and really need HELP to continue further. I am able to create the five physical channels and plot easily on a waveform chart using the basic LabVIEW DAQ Assistant or DAQmx VIs.
However, my problems right now are:
(1) How can I assign or link the five different channels/signals to five different control buttons corresponding to the five different signals/channles on my waveform on my Front Pane?.
(2) How can I code or configure these control buttons that can allow me just mouse-click a signal control button to display or hide the signal assigned to that particual button?
(3) Also, if I have other five sets of buttons assigned to my five different signals, how can I use these buttons to control the gain/height of these different signals on my waveform plot?
I would be most greatful for any HELP by way of giving me pointers or specific instructions on how I can accomplish this.
Thanks in Advance.
10-08-2013 06:23 AM
Hi Tebefia,
1&2) Use the plot legend and enable the "plot visibility selection"...
3) Use case structures (or select functions) connected to your buttons to choose between two values for gain/offset each... (That's pretty basic programming: "IF x THEN y ELSE z")
10-08-2013 07:20 AM
Hi GerdW:
Thanks for your response to my questions, but am wondering how your answers to 1 & 2, helps to be able to assign or link signlas to buttons. Is "plot visibility selection" a property node?
As for your answer to question 3, am going to try it out if that helps.
Thanks.
10-08-2013 07:32 AM
Maybe, I should be more explicit on my question with respect to question 1 & 2: Assuming I have a physical channel/signal on Pin AI2 of the USB-6211 device, and the signal is acquired and plotted on a waveform, how do I assign or link the Pin AI2 signal to a control button on my front panel that would allow me display or hide the signal, and also allow me increase or decrease the indicator level.
Any suggestion or advice would be highly appreciated.
10-08-2013 07:45 AM
Hi Tebefia,
in your original post you said you're acquiring 5 signals. So you will draw 5 plots in your chart/graph. What's the problem to show the plot legend and switch on/off visibility of the plots in the legend?
Applying gain/offset to your signal is just a matter of simple math. All you need to do is selecting parameters with a button click: as said above you should use a case structure or a select node!
10-08-2013 07:56 AM
Hi GerdW:
Thanks again for your response. Yes, you are right about what I wrote on my original post and I only just made my question simpler when I had to rephrase it, otherwise my question is same on both times. I understand what you are trying to say about using the plots in the legend to turn or off, but to answer your question, that is not what I want to do. I want to be able to allow the end user click on a control button to do that with ease in the run-time environment. My other and first question on this problem is how to link or assign the Pin A1 signal to a control button on the front panel. I guess you don't have an ideal on how I can do that, if you do, please let me know.
I thank you for your time.
10-08-2013 08:03 AM
Hi Tebefia,
I want to be able to allow the end user click on a control button to do that with ease in the run-time environment.
Then what is the problem in simply showing the plot legend with it's visibility option???
You can use your own buttons. Then you need to set the visibility property for each plot using property nodes...
My other and first question on this problem is how to link or assign the Pin A1 signal to a control button on the front panel. I guess you don't have an ideal on how I can do that
Why do you think I don't have an idea?
To link a "Pin" (aka signal) to a certain plot you shouldn't use buttons but rather rings/enums. You need to use some "re-arrange" algorithm when you want that...
10-08-2013 08:07 AM
GerdW:
What do you mean when you say some "re-arrange" algorithm?
10-08-2013 08:13 AM
Hi Tebefia,
you want to "assign PIN to plot", atleast I guess so...
Example: So you need to take signal 1 (of 5) and show it on plot 4 (of 5). Signal 5 may be plotted as plot 1. In other words: you need to re-arrange your signals...
I think this is a silly task. I still would prefer to simply switch visibility of plots and maybe assign a different name the the signal...