@Known4225, can you update this description to provide an example Jupyter notebook and C file that illustrates the issue?
Steps to replicate the issue
Add this segment of code to task_blink.c
// Logging variables
float LOG_channel_1 = 0.0;
float LOG_channel_2 = 0.0;
float LOG_channel_3 = 0.0;
float LOG_channel_4 = 0.0;
float LOG_channel_5 = 0.0;
float LOG_channel_6 = 0.0;
float LOG_channel_7 = 0.0;
float LOG_channel_8 = 0.0;
And use this python script (replace the repo_dir variable with the path to your repository)
# configure path
import os
import pathlib as pl
import sys
sys.path.append(fr'{os.getcwd()}\scripts')
# imports
from AMDC import AMDC
from AMDC_Logger1point4 import AMDC_Logger, find_mapfile
from AMDC_LivePlot import AMDC_LivePlot
import time
import random
import matplotlib.pyplot as plt
amdc = AMDC()
amdc.setup_comm_defaults('eth')
# Init ethernet
amdc.eth_init()
# Set up the default ASCII command socket
s0, s0_id = amdc.eth_new_socket('ascii_cmd')
amdc.eth_set_default_ascii_cmd_socket(s0)
amdc.connect()
##### CELL START #####
# logger = AMDC_Logger(amdc)
repo_dir = r'C:\Users\srich008\Information\gitMistakes\1.4RevF\sdk\app_cpu1\user\Debug'
repo_dir = pl.Path(repo_dir)
mapfile_path = find_mapfile(repo_dir)
logger = AMDC_Logger(AMDC = amdc, mapfile = mapfile_path)
logger.sync()
##### CELL START #####
logger.sync()
logger.info()
# ##### CELL START #####
logger.unregister_all()
interval_ticks = 100
logger.register('channel_1', var_type = 'float', samples_per_sec = interval_ticks)
logger.register('channel_2', var_type = 'float', samples_per_sec = interval_ticks)
logger.register('channel_3', var_type = 'float', samples_per_sec = interval_ticks)
logger.register('channel_4', var_type = 'float', samples_per_sec = interval_ticks)
logger.register('channel_5', var_type = 'float', samples_per_sec = interval_ticks)
logger.register('channel_6', var_type = 'float', samples_per_sec = interval_ticks)
logger.register('channel_7', var_type = 'float', samples_per_sec = interval_ticks)
logger.register('channel_8', var_type = 'float', samples_per_sec = interval_ticks)
p1 = AMDC_LivePlot(logger, 'LOG_channel_1', window_sec = 2)
p1.start_stream()
p2 = AMDC_LivePlot(logger, 'LOG_channel_2', window_sec = 2)
p2.start_stream()
p3 = AMDC_LivePlot(logger, 'LOG_channel_3', window_sec = 2)
p3.start_stream()
p4 = AMDC_LivePlot(logger, 'LOG_channel_4', window_sec = 2)
p4.start_stream()
p5 = AMDC_LivePlot(logger, 'LOG_channel_5', window_sec = 2)
p5.start_stream()
p6 = AMDC_LivePlot(logger, 'LOG_channel_6', window_sec = 2)
p6.start_stream()
p7 = AMDC_LivePlot(logger, 'LOG_channel_7', window_sec = 2)
p7.start_stream()
p8 = AMDC_LivePlot(logger, 'LOG_channel_8', window_sec = 2)
p8.start_stream()
plt.xlabel("Time (seconds)")
plt.ylabel("Channel output")
plt.title("Streaming Output")
plt.show()
p1.stop_stream()
p2.stop_stream()
p3.stop_stream()
p4.stop_stream()
p5.stop_stream()
p6.stop_stream()
p7.stop_stream()
p8.stop_stream()
amdc.disconnect()
plt.show()
When the plots show, there will be 0s for the first four plots, but the last four will be empty (no data).
You'll notice that 9 sockets are created, 8 log streaming sockets + 1 ascii command socket, however only the first four logging sockets actually transmit data
@Known4225, can you update this description to provide an example Jupyter notebook and C file that illustrates the issue?
Steps to replicate the issue
Add this segment of code to
task_blink.cAnd use this python script (replace the repo_dir variable with the path to your repository)
When the plots show, there will be 0s for the first four plots, but the last four will be empty (no data).
You'll notice that 9 sockets are created, 8 log streaming sockets + 1 ascii command socket, however only the first four logging sockets actually transmit data