Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about structures

Hello, I have another question abouy labview 6.1 (I only have this version).
My program should generate signal sinewave or a pack of sinewaves then send it to analog out, and measure it on analog in. I will connect the signal from AO to my electronic board and from the electronic board to the AI. And if the maximum value of sinewave wil be higher than 9 volts I should change the resistance in my electronic board so that the amplification won't be that high. To control amplification I woluld like to use digital channels from my NI card and the MAX392 switch on electronic board.
So if the signal on the AI is higher than 9 volts or smaller than 0,5 volts than I should change the digital channel and put "high" on another channel.
I attached my program in labview.
maybe someone can how to do this?
regards
RQsz
PS sorry for my not perfect English
0 Kudos
Message 1 of 2
(2,708 Views)
Hello RQsz,

It looks like you are on the right track.  I would recommend using the Write to Digital Line.vi to write a digital high or low value to a digital line of your DAQ card.  You can create a simple algorithm to do a comparison between the value being acquired by your analog input and the limits using the functions in the Comparison palette.  I would also recommend using a while loop to continuously update your analog outputs, analog inputs, and digital line.  Take a look at the attached example program which shows how to perform analog input and digital output continuously in a while loop.  Also, don't forget the many NI-DAQ example programs that ship with LabVIEW that can be found by going to Help >> Find Examples and looking in the Hardware Input and Output category.  Good luck!

Travis G.


0 Kudos
Message 2 of 2
(2,684 Views)