Logging Frequency And Timing Value


crossbowjapan

Recommended Posts

Hi We have been using the attached script to work with U3-HV with DAQ Factory Express over the years and it used to work well.

Recently we seem to be unable to set low frequency logging with this script.

In the script, it used to be, by setting "Timing" in the Channel Table View, we used to change logging frequency to lower values.

(While the default is 1/1000 sec), by changing the Timing from 0.00 to say 120.00 (second) the sampling would be every 2 minutes.

However, recently we see that this change does not happen when Apply is clicked, and keeps sampling and logging at 1/1000 sec interval.

Could anyone help us where in the script is wrong and what should be done to enable slow logging like every 6000 seconds using this script (or modification thereof)? Thanks - CN

u3hv_4ch.ctl

Link to comment
Share on other sites

So, to be clear, you are streaming at 1000hz and want to only log one data point every 6000 seconds? If so, don't use a logging set. That will log your 1000hz data. Instead create an export set. Give it a name like exportOneRow, set the file name, click on "Fill w/ Channels" to add all four channels. Next switch to the Details tab and select "FIxed Interval" and Snapshot. Set whatever else you want, though the defaults are probably what you want.

Next, create a sequence. Call it logSlow or something. In the sequence just do:

while(1)

beginExport(exportOneRow)

delay(6000)

endwhile

Change the 6000 to whatever rate you want. Run the sequence and leave it running whenever you want to log slowly.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.