LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

differentiation in labview

hi
i have been using the differentiation block in Labview but unsure how to connect it. I am placing the sigal I want to differentiate in at X in the VI Derivative x(t) and using the output dx/dt. but how do i relate time to this block? i need differentiation within a while control loop.
0 Kudos
Message 1 of 5
(5,302 Views)
You need to set dt equal to your sampling rate. In one of your other posts, you said you were using the DAQ Assistant. In there, you specify how many samples per second to acquire. Set your dt to the same value.
Message 2 of 5
(5,287 Views)
hi,
i was using the daq assistant but am now using daqmx vi's . do i connect dt to the clock? at the moment i have it connected to 1000 to be the same rate as the clock
0 Kudos
Message 3 of 5
(5,267 Views)
Since the clock rate is 1000 Hz and Hertz is 1/seconds you will need to invert the value to get dt in seconds
Randall Pursley
Message 4 of 5
(5,254 Views)
Be careful with that VI. It is very susceptible to noise. You may want to check out the following thread for ways to improve it:

http://forums.ni.com/ni/board/message?board.id=170&message.id=102065#M10206
0 Kudos
Message 5 of 5
(5,235 Views)