Discussion:
Controlling a multiplexer
(too old to reply)
cwillis
2007-11-08 01:40:07 UTC
Permalink
I have several analog devices that need to be converted to a digital signal using a single channel A/D converter that I already have.  I have purchased a multiplexer (Texax Instruments CD4051B) to mux the signal.  This multiplexer requires three inputs.  My question is how to create these three inputs.  Do I need to purchase a digital I/O or can I do this with my computer alone?  Very new to this.  Thanks for any help.
 
K C
2007-11-08 15:10:14 UTC
Permalink
Hi Chris,
If you want you can stay here.
Actually it's pin 2 till 9 for the 8 data bits. But is you need more the other I/O signals can also be used.
How far are you (with LV and the Hardware) and what exactly is your application.Message Edited by K C on 11-08-2007 03:44 PM
cwillis
2007-11-08 20:10:14 UTC
Permalink
Hello,

After getting some help, I made the attached Front Panel.  LVDT1 and LVDT2 are plots.  The compass (orientation) and temp data are fine as numerical values.  Actually, the compass works with two sine waves out of sync but we only need to see the numerical value calculated using the two waves.  Hopefully this can be done in the background.As I mentioned before, we will have to address the MUX since the A/D is one channel.  (With 1Hz to 5Hz capability)  I don't know how to send the signals to the multiplexer, but I imagine LV will just cycle through each of the sensors.  (The compass will act as two sensors since it is two output voltages.)The A/D has its own functions that we have gotten to work elsewhere.  I'm not sure if you need this.I hope this is what you wanted.Thanks,Chris


MultipleSensor.vi:
http://forums.ni.com/attachments/ni/70/7725/1/MultipleSensor.vi
K C
2007-11-08 20:40:09 UTC
Permalink
Hi Chris,
 
I cannot read your VI at this moment because I am at home and I only have LV 7.1 installed here   :smileysad:  
Have to wait till tomorrow at work where I have 8.5
 
We talked about addressing the MUX, but how do you read the ADC data ? and if I understand you correctly you will only get data from the ADC through the MUX and no ther data is comming in.
 Message Edited by K C on 11-08-2007 09:23 PM
K C
2007-11-12 07:40:09 UTC
Permalink
Hi Chris,
But how do you read the ADC or better what ADC are you using.
btw. where do you live, our activity hours seems to be a bit out of phase :smileywink:
Greetings from The Netherlands
K C
2007-11-12 15:40:11 UTC
Permalink
OK, that's clear.
I made a begin in LV for you. I did not wire everything I assume you want to learn.
Just take a look at the VI and tell me what you can make of it. Remember it is just a start......:smileytongue:


MultipleSensor.vi:
http://forums.ni.com/attachments/ni/70/7757/1/MultipleSensor.vi

Loading...