LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Use Select Signals Express VI without Boolean Array

Hello, I just started using LabVIEW a couple of weeks ago and I've run into a snag.

 

I am reading in four input channels on a NI USB-6009 using the DAQ Assistant. I am able to select which channels to display using the Select Signals Express VI and a boolean array input. However, I would like to do some basic measurements (voltage, frequency, phase) by selecting each channel individually. I've tried to use Numeric Control, Menu Ring, and Enum inputs, but they all do the same thing: when the input is equal to or less than zero, Select Signals returns no signals, and when the input is one or greater, it returns only the first channel. How do I get Select Signals to return channel 1 when I input 1, channel 2 when I input 2, etc...?

0 Kudos
Message 1 of 10
(9,479 Views)
Can you send your code so we can see what you are doing?
Tim
GHSP
0 Kudos
Message 2 of 10
(9,475 Views)
0 Kudos
Message 3 of 10
(9,468 Views)
What you are seeing with the Select Signals Express VI is by design, and documented in the LabVIEW Help. If you want to use a ring to select which signal to display then you need to convert the numeric value to a Boolean array. What you want is the 2^n value. In other words, something like this:
Message 4 of 10
(9,467 Views)

Why don't you want to use a Boolean Array?

 

Look at how that Express VI is being used by opening up the example Select Signals.vi in the Example Finder.

0 Kudos
Message 5 of 10
(9,465 Views)
Have you tried to make the lines visible or not as follows.
Tim
GHSP
0 Kudos
Message 6 of 10
(9,458 Views)

Re: smercurio_fc

Thanks, that works pretty well.

0 Kudos
Message 7 of 10
(9,454 Views)

Hellow  i am having ten signal and  i what to use only one display(graph) to show one signal at a time by using push button at signal.if one button is active the selected signal should be displayed and other signal should not be displayed i need your help

0 Kudos
Message 8 of 10
(8,627 Views)

Replace the ring control with a radio button group.

0 Kudos
Message 9 of 10
(8,621 Views)

Hi Fil-Leep,

 

You may want to check the LabVIEW Help on Radio Button Controls for a basic discussion of setting up a Radio Buttons and how they are used. This article will also point you to a couple of examples in LabVIEW illustrating the use of Radio Buttons.

 

I hope that helps!

 

 

Matt
NI Community Team
National Instruments
0 Kudos
Message 10 of 10
(8,595 Views)