From a4eede145b3d69c438d7a7be41f99b3f08c12436 Mon Sep 17 00:00:00 2001 From: zacharyc Date: Wed, 18 Mar 2009 22:36:31 +0000 Subject: [PATCH] Added limits to issue warnings about high sample rates git-svn-id: https://bucket.mit.edu/svn/nilm/acquisition/ethstream@7303 ddd99763-3ecb-0310-9145-efcb8ce7c51f --- nerdjack.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nerdjack.c b/nerdjack.c index cf84707..e3d4c1d 100644 --- a/nerdjack.c +++ b/nerdjack.c @@ -309,6 +309,14 @@ nerd_data_stream (int data_fd, int numChannels, int *channel_list, nerd_init_channels (destination, numChannels, numChannelsSampled, channel_list); + if (linesdumped == 0) + { + if (period < (numChannelsSampled * 100 + 300)) + { + info ("You are sampling close to the limit of NerdJack\n"); + info ("Sample fewer channels or sample slower\n"); + } + } //Now destination structure array is set as well as numDuplicates.