LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Select between 2 signals using select VI

Hi,

I have a series of functions to measure the voltage of a power supply, and I read back the Voltage using the driver supplied.

Although I change the power supply, which I why I want to try and measure the voltage at 2 points in the execution of my vi.

What I want to do is have a "flag" to set the input to the Select Vi to True or False depending on where in operation I am.

It is however only the merging(?) of these two signals together to put into my select statement. At present I set a true or a false in the sequence statements.

Any ideas how I can achieve this simple problem?

Thanks
0 Kudos
Message 1 of 7
(3,729 Views)
Hi
Show us the code or failing that a JPG

xseadog
0 Kudos
Message 2 of 7
(3,721 Views)
Find attached image of what I currently have with the unwired select
0 Kudos
Message 3 of 7
(3,721 Views)
As you program is right now
all you have to do is connect a true false control  to the signal selector.( where you have merged the two signals). It will be necessary to run the program twice if you wish to see both values.

However as your program stands it will only run the sequence once.

What do you expect to achieve with the chart?

You are not constantly updating thus you will only get a point!

If you are wanting to monitor voltage/ current ramping then you need to have a oscillscope attached.
xseadog
0 Kudos
Message 4 of 7
(3,717 Views)
Hi,

how do you stop the while loop? The stop-button (or better: it's terminal) should be inside the loop!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 7
(3,710 Views)
I was under the impression that this would run until I hit the stop button? and it certainly appears to do as such on my power supply when I watch it with a scope... But what I want to do is run the change between 3 and 4 continoulsy until stop is hit and after each change in voltage measure the voltage using the supplied driver (as I do at present) But obviously in each of those changes I need to change the true/false value of the select statement so that i then "switch" between which signal I display on my chart, as I want to just see the value change on the chart Thanks
0 Kudos
Message 6 of 7
(3,707 Views)
Hi
as Gert suggested , move the stop terminal inside the loop.

Add shift register from Left hand side  of s shift register  wire to signal connector. Continue the wire over to the shift  register on the right hand side. Insert  an inverter on the wire between signal selector and shift register.
Thus as the loop cycles the signal selector switches between the two cases.

xseadog


0 Kudos
Message 7 of 7
(3,699 Views)