04-25-2013 06:04 AM
Hi everybody!
I've started working with engineers two months ago and now I have to use LabView (I used to program with R).
My problem is apparently simple: There is a group of 4 analog inputs but only one analog output. For that reason, I have to introduce this group within a for loop which provides, in each iteration, one of the values of an analog input. This "for" has to be created with a Digital Input/output 2b, so when its value is 00 the first analog input will be selected and introduced in a parameter, when it is 01 the second analog input will be selected and saved in the same parameter (I know, this is gonna erase the previous value) and so on and so forth, with the others values of DIO (10 and 11).
My problem is following: How can I let the program know that the DIO must change the values (00,01...) in each iteration? Even more, and here is my big problem, how can I let the program know that it must relate the value 00 of the DIO with the first analog input, to be this one selected, and the same for the others? When I try to do it it says that I obviously mix different kinds of signals.
Thank you very much!! I really need help...
04-25-2013 11:34 AM
If you can post your code then someone might be able to help you.
It sounds like you are programming a multiplexer where the digital inputs are used to select an analog input signal and output that signal out the analog output. Is that right?