Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

running a program

I am writing a program that will generate a square wave with a pause at zero.  I want to output this program through the NI cDAQ 9172.  I keep getting errors when I try to run the program and I do not understand if I am trying to output it in the wrong way or not.  The program is attached and I appreciate and help that you can give me.
0 Kudos
Message 1 of 2
(3,410 Views)

That program doesn't make any sense. You have two DAQ Assistants and neither are outputing anything because you have not provided a signal to output. Also, the 9172 is just a chassis and can't output anything anyway. You need a module that plugs into it. You have the DAQ Assistant set for an analog output. Is that the type of module you actually have? If it is, I don't understand why you need two DAQ Assistants. You can create a square wave and have a single DAQ Assistant output that.

 

You might want to check the resources at the DAQmx Getting Started to learn some basics before trying to write any code or generate a signal.

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