Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

Chuck844

@Chuck844
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Binding a trigger on a rectangle to dependency property of enclosing parent
    C Chuck844

    I have used CodeProject as a resource for a long time but now I have an issue I haven't been able to work through ... I have a user control "uc_SignalHead_cl" that is derived from "uc_TrackDisplayItem_cl" which is derived from "UserControl". In uc_SignalHead_cl is a rectangle that I want to change the fill color based on the "SignalDispatchState" dependency property that is defined on "uc_SignalHead_cl". I do not get any runtime binding errors but the fill color is not changing. I know that the dependency property is changing because a "property changed" even is being executed. XAML (some code deleted for clarity):

        <---deleted code--->
        
            
    
                
                    
                        
                            <Setter Property="StrokeThickness" Value="1"/>
                            <Setter Property="Opacity" Value="0.5"/>
                            <Style.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="StrokeThickness" Value="9"/>
                                    <Setter Property="Opacity" Value="1.0"/>
                                </Trigger>
                                <DataTrigger Binding="{Binding SignalDispatchState, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="DS\_Normal">
                                    <Setter Property="Fill" Value="Blue"/>
                                </DataTrigger>
                                <DataTrigger Binding="{Binding SignalDispatchState, Re</x-turndown>
    
    WPF wpf database wcf help learning

  • Controlled replay of recorded data
    C Chuck844

    Thanks to all for the feedback. I am going to reexamine the amount of data involved and the expected frequency of recording .vs. playback to see if it warrants a database approach or another approach. Thanks to all.

    C# sysadmin algorithms discussion

  • Controlled replay of recorded data
    C Chuck844

    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 g

    C# sysadmin algorithms discussion

  • Controlled replay of recorded data
    C Chuck844

    I have an application that receives messages from a network that describe object events and status (think of a CAN Bus data logging type of application). My plan is to record 'change' events (actual change as opposed to re-transmit) to disk along with 'key frames' (status of all objects) to allow later playback of the data. Data format is not predetermined. I'll work with whatever is the best fit. I am looking for code that would support playback controls such as 'play', 'pause', 'rewind', 'start playing at ', 'fast forward', etc. My searching of the web gets me lots of things having to do with audio and video playback but nothing in the area of arbitrary data playback. I can 'roll my own' but a head start would be helpful. Thanks in advance for your thoughts ...

    C# sysadmin algorithms discussion
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups