LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to send out two analog signals

hi

 

I'm running Labview 10.0 with a PXI controller 8196 with with an M-series DAQ board 6289 which has 4 analog out ports. What I have done is create a statemachine which controls a multi LED board (57 LEDs arranged in 7 concentric circles, with a centre LED). The state machine moves between various states such as Fixation point on, Fixation point off, Target on, Target off. At the moment I have one Analog out port which outputs a voltage to tell me which state I am in, but I want to know how to configure a second port to say which LED I am turning on. I am controlling the LED with the digital out, and converting a binary to a digital code so I was just going to convert that digital code (by diving it by some factor) and write out that factor to a second port. I've read I can not confiure two Analog out ports on the same board, but instead I have to cluster the outputs together, I'm just not sure now to do that. I've attached my main vi as well as the two subvi's that the main vi calls. I've looked at some of the other threads and the suggestion was to close one port to open the other, that's just not possible in my case as I need to keep both channels open throughout the whole program as the analog out is constantly changing. I'm also recording from up to 25 analog channels at the same time.

 

Thanks in advance

 

NB. I could only add two of the sub vi's that the main program calls, so the main vi will not work, so if need be I can post the other sub vi in an additional post.

Download All
0 Kudos
Message 1 of 4
(2,674 Views)

Hi Samig,

 

What kind of voltages need to be outputted on both channels? You can only configure one Voltage Output task on one DAQ card, but you are able to output on multiple channels. If you are just outputting a constant voltage, then you could just program the task to do the same thing on both channels.

 

Jason L.

Product Support Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,648 Views)

Hi

 

For one of the channels it is a stepping voltage which changes between +/- 5 volts depending of which state of the statemachine the program is in, so it is not just a constant voltage through out the whole task. On the second channel I want to out put a single voltage that would signify which LED is turning on, that would just be a constant voltage, but it would not be the same voltage on both channels. I'm just about to try something else and hopefully that will work.

 

Thanks

 

Sam

0 Kudos
Message 3 of 4
(2,641 Views)

Samig,

 

I don't think you should have any issues setting this up. Please let me know the results of your code.

 

Jason L

Product Support Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,629 Views)