LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a two bit multiplexer

Solved!
Go to solution

Hi Everyone,

 

 

I have a very similar query. I have constructed a VI to read certain data (Temperature, Frequency and Voltage) from a single sample (Oscillator). This is to be modified as I have a 2-bit multiplexer which connects to 4 different samples. This will enable me to choose which of the four oscillators to take the readings from. How do I modify the current VI such that the multiplexer function is included such that I am able to select which sample to acquire data from? Attached is my current VI for one input/sample. All help is much appreciated, thank you!!!

0 Kudos
Message 21 of 27
(1,942 Views)
0 Kudos
Message 22 of 27
(1,935 Views)

I could use more details regarding the problem you're having. You're trying to control your multiplexer with you VI to select which samples to use? Are you trying to read in all 4 samples from your hardware and picking a single sample via labview? Are you trying to have a hardware device give labview a 2bit value which will then be used to select in software? If you're trying to make a simple software multiplexer you can use the Select block inside the Programming->Comparison palette. Another option is to use a Case statement and wire 1 output wire which will take on the value you wish for each case.

 

If this is not a solution for you or I am misunderstanding the problem, please explain further and I'll do my best to help!

0 Kudos
Message 23 of 27
(1,917 Views)

Lets keep it all to the other thread that was marked as duplicate.

Message 24 of 27
(1,900 Views)

"Are you trying to read in all 4 samples from your hardware and picking a single sample via labview?"

 

Yes, I have four samples connected to a hardware multiplexer and I am trying to use labview to select which sample I want to read from. Let me try to illustrate, the four samples are all connected electrically to the hardware multiplexer and I would like to programme labview such that the interface allows me to choose which sample to take the readings from. Currently, the VI that I have enables me to obtain readings from a single sample without the hardware multiplexer. However, now I would like to modify the entire circuit connection to include a multiplexer so that I can attach 4 samples at one go but only take the readings from one sample at a time. Hope this helps in explaining my situation, thanks!

0 Kudos
Message 25 of 27
(1,887 Views)

So you not only insist on splitting your identical question between 2 threads but you still do not want to provide the necessary information in either. Seems like you like to waste our time.

Message 26 of 27
(1,870 Views)

If you're trying to create a software interface in LabVIEW for a piece of hardware (the MUX) you're going to need to know about the external device drivers for that particular device. Consulting manuals and support for that device should help. Make sure to post the specifics of the pieces of hardware and software you're using so as to maximize the help others can give you. If you can get all the input channels into LabVIEW simultaneously you can do a software MUX with a Select block or a Case statement.

0 Kudos
Message 27 of 27
(1,861 Views)