LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

changing sampling rate

Hello,

I need to change the sampling rate for a transient response test that I am running.  I am using cFP modules, and LabVIEW 7.1.  I am also using the data logger express VI and all of my channels are routed to that.  If I change my system clock to 250 ms, I can log data every 250 milliseconds.  Likewise for 200, 150, all the way down to around 30 milliseconds.  Below 30 milliseconds, the logger only logs data approximately every 30 milliseconds.  For my transient response data, I would like to be able to log data every 3-5 milliseconds.  Any help is appreciated.

Thanks,

Derek
0 Kudos
Message 1 of 2
(2,414 Views)

Derek,

I assume that you are using the FieldPoint express VI.  If so, I wrote a simple program to test the execution speed of this VI.  By getting a tick count right before and right after calling the FieldPoint express VI, I can calculate the time it took to execute the read.  With my tests, the read routinely executes and returns a value in less than 1 ms.  It may be that other code in your while loop is causing each iteration to take ~30 ms. 

Please try running the attached code, and let us know if you have any trouble.

Regards,

0 Kudos
Message 2 of 2
(2,372 Views)