LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx analog output

Hi,

I am trying to output a combined signal that have a dc, and a triangular wave. I used case structures for each of them and combined them using "build an array". I want to output them using DAQmx. How do I connect this array of signal to the DAQmx so that I can get desired combine signal. I previoulsy used "DAQ Assistant" which worked but caused buffer issue.

 

 

0 Kudos
Message 1 of 3
(2,796 Views)

Hey Stame,

 

I am a little confused with what you are trying to connect to what since your picture is just for DAQ Assistant and you were asking about DAQmx vis.

 

How were you trying to implement this?

What DAQmx vis were you trying to send this array into?

What kind of DAQ card are you trying to write this analog output to? 

Are you familiar with this white paper?

 

http://www.ni.com/white-paper/2835/en

 

It essentially goes over how to convert DAQ Assistant to DAQmx vis. If you have any questions about it, please let me know.

 

Regards,

 

-KP

Kurt P
Automated Test Software R&D
0 Kudos
Message 2 of 3
(2,746 Views)

It'd be better if we could see the problem area of your new code so we can get a better understanding of what you're trying to do. I mean, you say you want to output a 'combined signal' but you tell us you're using Case Structures and in your picture it looks like a multiple channel implementation. It helps to be as specific as possible about your issue so that it's easier for others can help you.

 

That array of doubles you have that go into your DAQ Assistant? You could use that exact same array with the DAQmx Analog Write NChan NSamp.

Check out the NI Example Finder at <LabVIEW> » Help » Find Examples » Hardware Input and Output and look at some of the analogue multiple channel examples. You'll can find a DAQmx Analog Write example where they use an array of doubles, and it could be just as easy as a copy and paste job from there.

 

Is there any reason you're choosing not to use the DAQ Assistant? Is it because of the timeout? Because my assumption will be that it's probably due to your choice of Number of Samples and Rate.


Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

0 Kudos
Message 3 of 3
(2,721 Views)