Click here to Skip to main content
15,894,539 members
Home / Discussions / C#
   

C#

 
QuestionIs there any SQL Server on the cloud for free? Pin
Alex Dunlop8-Jun-21 8:15
Alex Dunlop8-Jun-21 8:15 
AnswerRe: Is there any SQL Server on the cloud for free? Pin
OriginalGriff8-Jun-21 10:45
mveOriginalGriff8-Jun-21 10:45 
GeneralRe: Is there any SQL Server on the cloud for free? Pin
Alex Dunlop9-Jun-21 4:16
Alex Dunlop9-Jun-21 4:16 
GeneralRe: Is there any SQL Server on the cloud for free? Pin
OriginalGriff9-Jun-21 4:26
mveOriginalGriff9-Jun-21 4:26 
QuestionHow to dynamically escape a character? Pin
Joseline Riker7-Jun-21 13:25
Joseline Riker7-Jun-21 13:25 
AnswerRe: How to dynamically escape a character? Pin
Dave Kreskowiak7-Jun-21 15:06
mveDave Kreskowiak7-Jun-21 15:06 
AnswerRe: How to dynamically escape a character? Pin
OriginalGriff7-Jun-21 19:50
mveOriginalGriff7-Jun-21 19:50 
AnswerRe: How to dynamically escape a character? Pin
Richard MacCutchan7-Jun-21 21:14
mveRichard MacCutchan7-Jun-21 21:14 
AnswerRe: How to dynamically escape a character? Pin
Eddy Vluggen9-Jun-21 9:49
professionalEddy Vluggen9-Jun-21 9:49 
QuestionINotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
BillWoodruff7-Jun-21 11:35
professionalBillWoodruff7-Jun-21 11:35 
AnswerRe: INotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
Eddy Vluggen8-Jun-21 4:21
professionalEddy Vluggen8-Jun-21 4:21 
GeneralRe: INotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
BillWoodruff8-Jun-21 10:48
professionalBillWoodruff8-Jun-21 10:48 
GeneralRe: INotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
Eddy Vluggen9-Jun-21 6:19
professionalEddy Vluggen9-Jun-21 6:19 
AnswerRe: INotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
Gary R. Wheeler13-Jun-21 8:26
Gary R. Wheeler13-Jun-21 8:26 
GeneralRe: INotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
BillWoodruff14-Jun-21 4:53
professionalBillWoodruff14-Jun-21 4:53 
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 

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.