LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create VI that multiplexes four inputs to a single output in a time division multiplexing format.

I am just learning labview and this is one of our problems:

 

  1. Create VI that multiplexes four inputs to a single output in a time division multiplexing format. Your VI should have 4 numerical control inputs and one single numerical indicator output. It means 4 numbers in the inputs will have to be displayed in the out put one at a time. You should be able to control the duration of output display of each number from the front panel.

 

I do not know how to handle the time. I can do a multiplexer, but can not make it a time division multiplexer. I even tried to make sub-VIs with case structures that were set to a time delay, one had an input, the other had the stop sign. Unfortunately, this didn't just end my sub VI, it stopped my whole program.

 

I need help please, Thank You!

0 Kudos
Message 1 of 5
(3,992 Views)
This is home work and a problem you need to solve yourself. People here will be glad to help but you have to show what you have done yourself. This is a very simple problem based on your description. Have you taken any of the free tutorials? Have you looked at the functions on the timing palette?
0 Kudos
Message 2 of 5
(3,986 Views)

I guess my only real question is, how do I get two or more inputs to one output?

 

The two ways I know:

 

Merge - But for some reason, it only takes the top connection. The bottum signal never gets passed through to the output.

 

Case Structures - This is how I made it at first, I had 4 cases, and use a time elapsed box to switch cases. The only problem is, you cannot set the time for each case individually.

0 Kudos
Message 3 of 5
(3,939 Views)

The case structure is the way you want to go.  Instead of going by time, your subVI should just keep track of which one it sent out first.  Use an Uninitialized Shift Register to keep track of which input to put out and then case them out.  Let your top level VI worry about your timing.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(3,931 Views)

Look into the following in the help file:

 

  • Build array
  • For Loop (Especially "Auto indexing")
  • Timing functions

EDon't  worry - just hit Ctrl+H and keep your eyes on the help window.  LabVIEW isn't all that hard to learn.  (Mastery of LabVIEW on the other hand, may never be humanly attainable) 


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 5
(3,913 Views)