Showing results for 
Search instead for 
Did you mean: 

How to generate a squarewave(4 khz) an output it using NI cRIO-9014



Well its a rather simple problem but i am somehow stuck in it. I am using a NI cRIO-9014... on its chassis i have mounted the analog output module NI-9263 through which i want to output a custom signal (9 pulses of square wave(4Khz, 0V and 5V levels) and then an idle time of 8 ms...and this goes on repeating).


However watever i try i cudnt get the square wave. I am checking the output on an oscilloscope and i am not able to find any relation between wat parameters i have put in the Labview and wat is visible on the oscilloscope.


I have so far tried to get the squarewave only using 'create analog signal' vi and 'simulate signal' vi but with no success. I have attched a screenshot of the way I am trying to do it. 


Any help in this case would be very very helpful.


Thanking You.


Yours Sincerely

Abhishek Srivastava

Download All
0 Kudos
Message 1 of 4

Hi Abhishek,


you have to use low level functions to realize your task. Therefore, generate a square wave with the "Square" and manipulate the 1D Array you're generating.

See the following diagramm:


this would be one possible solution, i think.



0 Kudos
Message 2 of 4

hi Tobi


Thanks for the reply.I have tried your suggestion and its generating the square wave. But actually i need to output the signal using a hardware(NI cRIO-9014 chassis, NI9263 Anmalog Output module). So i am facing 2 problems:


1) How to convert this cluster into a dynamic signal(cluster to array and array to ddt was my solution but its not working) 

2) I have a feeling that my prior attempts at outüuting this signal failed not exactly because of the generation part but because of the fact that u cannot simply connect the generated signal with the i/o port on the cRIO chassis coz maybe u have to go thru the FPGA route .Any ideas? You could see(in the diagrams i attache earlier) that i simply drag dropped the port 'AO0' from the project explorer to the vi and connected the signal. Is this where i am going wrong?



0 Kudos
Message 3 of 4


you're right, there are some points what you should consider when you try to output your signal.

First, when you're on a cRIO you can use either the FPGA or the ScanEngine in the RT Controller to generate the signal.

I recommend you to have a look at the Analog Output examples which comes with the NI-RIO.


0 Kudos
Message 4 of 4