Commit a4eede14 by zacharyc

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
parent 6562c0b7
Showing with 8 additions and 0 deletions
...@@ -309,6 +309,14 @@ nerd_data_stream (int data_fd, int numChannels, int *channel_list, ...@@ -309,6 +309,14 @@ nerd_data_stream (int data_fd, int numChannels, int *channel_list,
nerd_init_channels (destination, numChannels, numChannelsSampled, nerd_init_channels (destination, numChannels, numChannelsSampled,
channel_list); 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. //Now destination structure array is set as well as numDuplicates.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment