Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

CSR Graph is not displayed in Overview mode.
#1
CSR Graph is not displayed in Overview mode.
Problem:
CSR Graph is not displayed in Overview mode.


Summary
This happens for Resmed machines that don’t have a CSR chart in the Overview display range when OSCAR is opened when the display range is changed using arrow keys or the overview range combo box. This problem continues until OSCAR exits and re-opens.
Resmed AirSense 10 AutoSet from March 2015.


Code inspection showed that this problem may not occur for PB charts (intellipap_loader, and prs1_loader) , but has not been tested.
This problem occurs for all versions of OSCAR tested - v1.1.0-release, v1.1.1, v1.2.0, OSCAR v1.3.1, and OSCAR 1.3.5-alpha.0


Reproduce problem.
The problem was first encountered when I had a CSR event older than 3 months old, and the pinned CSR chart did not appear in the Overview mode. Using the custom range selection different condition were used to verify the problem. The problem occurred with v1.1.0 and other versions so the detail investigation was needed.


Software funcationality.
Overview is responsible for selecting a universal set of charts to be displayed, and then removes the chart if the display range for the chart is empty. This works for Zombie, BMI, and Weight charts. The removed charts are not the chart selection combo, so that the USER does not know about them.
The resmed loader, only creates EventList with a real CSR event. The lack of a CSR EventLists for the 1st opening of overview causes the problem. The other loader create an empty EventList when the are no PB events. The problem is solved with the Resmed Loader always creating a CSR EventList.


Changes.
There is a one line in the resmed loader that fixes the problem, and does not have any risk.
Attempting to solve the problem by any other mechanism would be risky.
The change is ready to deliver.


Any suggestion or thoughts or next steps?


LoudSnorer
LoudSnorer
Post Reply Post Reply
#2
RE: CSR Graph is not displayed in Overview mode.
Do you have any CSRs being reported in the Daily screen? If not, it won't be displayed until you do. On the other hand, if you do have them, and it isn't being displayed in the Overview, then look in the lower right of the Overview screen and make sure the CSR graph is checked. One other place to check. Look in the File > Preferences > Events and make sure the 3rd listing down, Cheyne Stokes Respiration, is checked in the Overview column.
Crimson Nape
Apnea Board Moderator
Project Manager for OSCAR - Open Source CPAP Analysis Reporter
www.ApneaBoard.com
___________________________________
Useful Links -or- When All Else Fails:
The Guide to Understanding OSCAR
OSCAR Chart Organization
Attaching Images and Files on Apnea Board
Apnea Helpful Tips

INFORMATION ON APNEA BOARD FORUMS OR ON APNEABOARD.COM SHOULD NOT BE CONSIDERED AS MEDICAL ADVICE. ALWAYS SEEK THE ADVICE OF A PHYSICIAN BEFORE SEEKING TREATMENT FOR MEDICAL CONDITIONS, INCLUDING SLEEP APNEA. INFORMATION POSTED ON THE APNEA BOARD WEB SITE AND FORUMS ARE PERSONAL OPINION ONLY AND NOT NECESSARILY A STATEMENT OF FACT.
Post Reply Post Reply
#3
RE: CSR Graph is not displayed in Overview mode.
If I understand it correctly, the problem occurs when you display an Overview chart for an interval that has no CSR spans..., and then change the interval to a span that does have one or more CSR spans. The new Overview display does not include the CSR spans.

The proposed solution is to always create an empty CSR event list. I'd like to think about the ramifications of that.
Admin Note:

pholynyk passed away in October 2024
Click HERE to read his Memorial Thread

~ Rest in Peace ~
Post Reply Post Reply
#4
RE: CSR Graph is not displayed in Overview mode.
You are correct. The overview display range does NOT reference any day that has CSR.
However, when the display range is set to include those days (ei everything), CSR is still not displayed in the overview.
LoudSnorer
Post Reply Post Reply
#5
RE: CSR Graph is not displayed in Overview mode.
(02-07-2022, 07:05 PM)pholynyk Wrote: If I understand it correctly, the problem occurs when you display an Overview chart for an interval that has no CSR spans..., and then change the interval to a span that does have one or more CSR spans. The new Overview display does not include the CSR spans.

The proposed solution is to always create an empty CSR event list. I'd like to think about the ramifications of that.

Other loaders, seem to  always use an PB event list and it will be empty when there are no  PB events. The intellipap_loader.cpp initializes the PB event list along with many other events, such as largeLeak, Snore,ClearAirway, etc...
LoudSnorer
Post Reply Post Reply
#6
RE: CSR Graph is not displayed in Overview mode.
Are you familiar with git? If so, you can create a fork of the repo, make your change in your fork, then propose a merge request that we can review. It sounds like you've tracked down the issue and know how to fix it.

See https://gitlab.com/pholy/OSCAR-code/-/bl...IBUTING.md for more details.
Post Reply Post Reply
#7
RE: CSR Graph is not displayed in Overview mode.
The solution is in LoadCSL. Instead of initialising the CSR variable to nullptr, call AddEventList(...); and then comment out the test for CSR further down.

Is this what you would propose?
Admin Note:

pholynyk passed away in October 2024
Click HERE to read his Memorial Thread

~ Rest in Peace ~
Post Reply Post Reply
#8
RE: CSR Graph is not displayed in Overview mode.
The suggest solution does not solve the real issue that also impacts more than just CSR.


Problem
*CSR pinned on overview tab disappears on the first paint.

Cause
*Charts are automatically permanently disabled for charts that are initially empty
*This problem impacts any chart that is enabled in File => Preferences.

Details
*gGraph does not display layers (paint) when the layer is empty.
*gSummaryChart (layer) initializes empty to false and calculates empty during painting.
Causing empty charts to be permanently disabled.
*Once a chart has been displayed, it will always be displayed even if empty.

Solution
*Enabled painting charts when the DayRange is increased, triggering the empty flag to be recalculated
New non-empty charts will now be permanently displayed
*Overview maintains the largest DayRange used and list of empty charts.
*Overview receive these signals and calls recalculates when largest DayRange is increased.
*gSummaryChart implement recalculate method.
*gSummaryChart implement emit signal when empty flag changes.
*gGraphView implement emit signal when day range changes. (XBounds)

**** IMPORTANT MUST Rebuild makefiles.****
*Remove two Makefiles and execute qmake. (works for linux version).

Changes have been submitted.
LoudSnorer
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Oscar question - flow rate graph not showing kkjacks 9 1,258 09-01-2024, 07:58 PM
Last Post: soyjer
  OSCAR displaying "Mode and Pressure settings missing; yesterday's shown" error Stefanyshyn 1 378 08-20-2024, 05:50 PM
Last Post: iitgsleep
  how to have CA added to OSCARS "Events Flag" Graph Wm kintz 21 1,631 08-04-2024, 06:26 PM
Last Post: Wm kintz
  Cant find Somnopose data in daily view graph Joey76 2 366 07-18-2024, 12:45 PM
Last Post: Joey76
  No graph in OSCAR Sleepygrl 13 4,097 07-04-2024, 12:34 PM
Last Post: hhOsc
  Graphs Not Displayed in Oscar Fixit50 17 1,394 07-03-2024, 12:31 AM
Last Post: Fixit50
  BMI not showing on Oscar Overview douglaskeene 14 1,194 05-31-2024, 07:44 PM
Last Post: douglaskeene


New Posts   Today's Posts


About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.