02-13-2011 01:26 PM
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!!!
02-13-2011 03:09 PM
02-14-2011 02:51 PM
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!
02-14-2011 08:54 PM
Lets keep it all to the other thread that was marked as duplicate.
02-15-2011 05:54 AM
"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!
02-15-2011 11:37 AM
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.
02-15-2011 12:42 PM
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.