Browse Source

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
tags/ethstream-1.1
zacharyc 15 years ago
parent
commit
a4eede145b
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      nerdjack.c

+ 8
- 0
nerdjack.c View File

@@ -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.



Loading…
Cancel
Save