Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
GeneralRe: INotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
Gary R. Wheeler14-Jun-21 5:05
Gary R. Wheeler14-Jun-21 5:05 
QuestionUpdated an application that uses DDE. Specific requirements. Pin
ptmaker7-Jun-21 10:52
ptmaker7-Jun-21 10:52 
AnswerRe: Updated an application that uses DDE. Specific requirements. Pin
Mycroft Holmes7-Jun-21 12:10
professionalMycroft Holmes7-Jun-21 12:10 
GeneralRe: Updated an application that uses DDE. Specific requirements. Pin
ptmaker8-Jun-21 3:19
ptmaker8-Jun-21 3:19 
QuestionRe: Updated an application that uses DDE. Specific requirements. Pin
Eddy Vluggen9-Jun-21 6:24
professionalEddy Vluggen9-Jun-21 6:24 
QuestionControlled replay of recorded data Pin
Chuck8446-Jun-21 9:47
Chuck8446-Jun-21 9:47 
AnswerRe: Controlled replay of recorded data Pin
Gerry Schmitz6-Jun-21 16:43
mveGerry Schmitz6-Jun-21 16:43 
GeneralRe: Controlled replay of recorded data Pin
Chuck8446-Jun-21 19:13
Chuck8446-Jun-21 19:13 
To be more specific ...

My application is a signal system I have designed for "Ride On Railroads" (7.5" gauge typically here in the USA).

The system consists of controller nodes distributed around the railroad. Each of these nodes detects track occupancy, calculates which train should be permitted to proceed and sets signals accordingly.

All of this data (track occupancy, signal head settings, etc.) is broadcast on a single CAN Bus in real time.

There can be one or more PCs attached to the network for monitoring and control (NOT control of train movements, that's totally done by the controller nodes).

One of the things the PCs support is display of train movements to passengers as well as one or more dispatchers.

I want to record this CAN Bus data as a stream of 'change' events as well as periodic "key frame" records to a disk file. The key frame record records the current status of every object (track, signal, etc.) on the railroad. Thus, starting at a 'key frame' and proceeding forward in time you have a time record of everything that happened on the railroad.

I want to be able to switch the display screen from the 'live data stream' (what is currently happening on the railroad) and display what happened at an earlier time ... i.e.: replay the railroad activity.

So, I need to be able to support things like "play back the data stream from 5pm yesterday", etc.

This is done all the time with audio and video streams but I have not been able to find any examples of code that will do it for an arbitrary stream of data.

I also need to decide the file format that would be efficient for recording the data stream and allows somewhat random read start points. Least efficient, but would work, would be for me to just do a 'binary search' in the file by picking a point in the file and scanning for a key frame, check the time, and jump forward or backward depending on the result of the comparison. No complicated indexes needed. Writing of the stream to disk is a MUCH more frequent activity than read so writing needs to be optimized over reading/playback.

It's kind of like a data acquisition system that gathers a stream of data and you want to be able to play it back from an arbitrary point.

Again, I can roll my own but figured it was worth checking to see if something existed that was close to my needs but all my searches only show up tools for audio or video.

As an aside: forward seems easy, skip back "x seconds" is harder/less efficient.

For more information on the system in general see: http://www.minirailsolutions.com[^]

In this document is an example of the track display: SComm | MiniRailSolutions – Automatic Signals For Ride-on Railroads[^]
GeneralRe: Controlled replay of recorded data Pin
Dave Kreskowiak7-Jun-21 4:21
mveDave Kreskowiak7-Jun-21 4:21 
GeneralRe: Controlled replay of recorded data Pin
Gerry Schmitz7-Jun-21 7:08
mveGerry Schmitz7-Jun-21 7:08 
GeneralRe: Controlled replay of recorded data Pin
Mycroft Holmes7-Jun-21 12:18
professionalMycroft Holmes7-Jun-21 12:18 
AnswerRe: Controlled replay of recorded data Pin
BillWoodruff7-Jun-21 11:53
professionalBillWoodruff7-Jun-21 11:53 
GeneralRe: Controlled replay of recorded data Pin
Chuck8448-Jun-21 3:36
Chuck8448-Jun-21 3:36 
Questionc# windows application Working with Microsoft Office Word Pin
Zeyad Jalil6-Jun-21 2:10
professionalZeyad Jalil6-Jun-21 2:10 
AnswerRe: c# windows application Working with Microsoft Office Word Pin
OriginalGriff6-Jun-21 2:20
mveOriginalGriff6-Jun-21 2:20 
AnswerRe: c# windows application Working with Microsoft Office Word Pin
Dave Kreskowiak6-Jun-21 5:44
mveDave Kreskowiak6-Jun-21 5:44 
AnswerRe: c# windows application Working with Microsoft Office Word Pin
Mycroft Holmes6-Jun-21 14:07
professionalMycroft Holmes6-Jun-21 14:07 
AnswerRe: c# windows application Working with Microsoft Office Word Pin
pkfox6-Jun-21 22:46
professionalpkfox6-Jun-21 22:46 
QuestionHow do you write a query for comparing SQL Server CE data? Pin
Alex Dunlop4-Jun-21 6:52
Alex Dunlop4-Jun-21 6:52 
AnswerRe: How do you write a query for comparing SQL Server CE data? Pin
Gerry Schmitz4-Jun-21 7:12
mveGerry Schmitz4-Jun-21 7:12 
GeneralRe: How do you write a query for comparing SQL Server CE data? Pin
Alex Dunlop4-Jun-21 7:25
Alex Dunlop4-Jun-21 7:25 
GeneralRe: How do you write a query for comparing SQL Server CE data? Pin
Gerry Schmitz4-Jun-21 8:10
mveGerry Schmitz4-Jun-21 8:10 
AnswerRe: How do you write a query for comparing SQL Server CE data? Pin
RedDk4-Jun-21 7:28
RedDk4-Jun-21 7:28 
GeneralRe: How do you write a query for comparing SQL Server CE data? Pin
Alex Dunlop4-Jun-21 7:36
Alex Dunlop4-Jun-21 7:36 
AnswerRe: How do you write a query for comparing SQL Server CE data? Pin
Alex Dunlop4-Jun-21 20:37
Alex Dunlop4-Jun-21 20:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.