Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #465286 > unrolled thread
| Started by | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| First post | 2017-06-22 19:15 -0700 |
| Last post | 2017-06-24 23:36 -0700 |
| Articles | 20 on this page of 67 — 26 participants |
Back to article view | Back to sci.electronics.design
PC timing problem John Larkin <jjlarkin@highlandtechnology.com> - 2017-06-22 19:15 -0700
Re: PC timing problem krw@notreal.com - 2017-06-22 22:37 -0400
Re: PC timing problem John Larkin <jjlarkin@highlandtechnology.com> - 2017-06-22 20:02 -0700
Re: PC timing problem bitrex <bitrex@de.lete.earthlink.net> - 2017-06-23 08:44 -0400
Re: PC timing problem rickman <gnuarm@gmail.com> - 2017-06-23 10:56 -0400
Re: PC timing problem bitrex <bitrex@de.lete.earthlink.net> - 2017-06-23 11:14 -0400
Re: PC timing problem rickman <gnuarm@gmail.com> - 2017-06-23 14:05 -0400
Re: PC timing problem bitrex <bitrex@de.lete.earthlink.net> - 2017-06-23 14:17 -0400
Re: PC timing problem rickman <gnuarm@gmail.com> - 2017-06-23 14:59 -0400
Re: PC timing problem bitrex <bitrex@de.lete.earthlink.net> - 2017-06-23 18:34 -0400
Re: PC timing problem krw@notreal.com - 2017-06-23 22:15 -0400
Re: PC timing problem Don Y <blockedofcourse@foo.invalid> - 2017-06-22 19:50 -0700
Re: PC timing problem John Larkin <jjlarkin@highlandtechnology.com> - 2017-06-22 20:14 -0700
Re: PC timing problem David Brown <david.brown@hesbynett.no> - 2017-06-23 15:20 +0200
Re: PC timing problem rickman <gnuarm@gmail.com> - 2017-06-23 10:58 -0400
Re: PC timing problem David Brown <david.brown@hesbynett.no> - 2017-06-26 10:31 +0200
Re: PC timing problem Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> - 2017-06-26 09:05 -0400
Re: PC timing problem rickman <gnuarm@gmail.com> - 2017-06-26 12:41 -0400
Re: PC timing problem David Brown <david.brown@hesbynett.no> - 2017-06-27 06:47 +0200
Re: PC timing problem rickman <gnuarm@gmail.com> - 2017-06-27 14:07 -0400
Re: PC timing problem Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-06-27 11:44 -0700
Re: PC timing problem rickman <gnuarm@gmail.com> - 2017-06-28 02:11 -0400
Re: PC timing problem David Brown <david.brown@hesbynett.no> - 2017-06-28 09:03 +0200
Re: PC timing problem rickman <gnuarm@gmail.com> - 2017-06-28 03:53 -0400
Re: PC timing problem David Brown <david.brown@hesbynett.no> - 2017-06-28 11:28 +0200
Re: PC timing problem Don Y <blockedofcourse@foo.invalid> - 2017-06-23 12:05 -0700
Re: PC timing problem whit3rd <whit3rd@gmail.com> - 2017-06-22 19:56 -0700
Re: PC timing problem John Larkin <jjlarkin@highlandtechnology.com> - 2017-06-22 20:16 -0700
Re: PC timing problem tabbypurr@gmail.com - 2017-06-22 20:31 -0700
Re: PC timing problem bitrex <bitrex@de.lete.earthlink.net> - 2017-06-23 10:51 -0400
Re: PC timing problem Joe Chisolm <jchisolm6@earthlink.net> - 2017-06-23 00:36 -0500
Re: PC timing problem Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-06-23 08:39 +0100
Re: PC timing problem tabbypurr@gmail.com - 2017-06-23 02:01 -0700
Re: PC timing problem Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-06-23 10:24 +0100
Re: PC timing problem tabbypurr@gmail.com - 2017-06-23 02:38 -0700
Re: PC timing problem "Tim Williams" <tiwill@seventransistorlabs.com> - 2017-06-23 05:38 -0500
Re: PC timing problem jack4747@gmail.com - 2017-06-23 02:14 -0700
Re: PC timing problem Reinhardt Behm <rbehm@hushmail.com> - 2017-06-23 17:34 +0800
Re: PC timing problem whit3rd <whit3rd@gmail.com> - 2017-06-23 12:18 -0700
Re: PC timing problem Jasen Betts <jasen@xnet.co.nz> - 2017-06-23 11:41 +0000
Re: PC timing problem John Larkin <jjlarkin@highlandtechnology.com> - 2017-06-23 07:16 -0700
Re: PC timing problem bitrex <bitrex@de.lete.earthlink.net> - 2017-06-23 11:26 -0400
Re: PC timing problem Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-06-23 09:19 -0700
Re: PC timing problem John Larkin <jjlarkin@highlandtechnology.com> - 2017-06-23 09:28 -0700
Re: PC timing problem bitrex <bitrex@de.lete.earthlink.net> - 2017-06-23 13:40 -0400
Re: PC timing problem Jasen Betts <jasen@xnet.co.nz> - 2017-06-23 21:45 +0000
Re: PC timing problem tabbypurr@gmail.com - 2017-06-23 17:07 -0700
Re: PC timing problem Jasen Betts <jasen@xnet.co.nz> - 2017-06-24 02:22 +0000
Re: PC timing problem Don Kuenz <g@crcomp.net> - 2017-06-23 13:41 +0000
Re: PC timing problem "David Eather" <eather@tpg.com.au> - 2017-06-23 23:47 +1000
Re: PC timing problem bitrex <bitrex@de.lete.earthlink.net> - 2017-06-23 14:28 -0400
Re: PC timing problem rickman <gnuarm@gmail.com> - 2017-06-23 15:01 -0400
Re: PC timing problem whit3rd <whit3rd@gmail.com> - 2017-06-23 12:39 -0700
Re: PC timing problem David Brown <david.brown@hesbynett.no> - 2017-06-26 10:36 +0200
Re: PC timing problem M Philbrook <jamie_ka1lpa@charter.net> - 2017-06-26 18:53 -0400
Re: PC timing problem John Larkin <jjlarkin@highland_snip_technology.com> - 2017-06-23 12:21 -0700
Re: PC timing problem "David Eather" <eather@tpg.com.au> - 2017-06-23 23:55 +1000
Re: PC timing problem Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-06-23 08:47 -0700
Re: PC timing problem John Larkin <jjlarkin@highlandtechnology.com> - 2017-06-23 09:25 -0700
Re: PC timing problem Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-06-23 11:30 -0700
Re: PC timing problem Martin Riddle <martin_ridd@verizon.net> - 2017-06-23 18:34 -0400
Re: PC timing problem Robert Baer <robertbaer@localnet.com> - 2017-06-23 19:02 -0800
Re: PC timing problem M Philbrook <jamie_ka1lpa@charter.net> - 2017-06-24 12:05 -0400
Re: PC timing problem Dimitrij Klingbeil <nospam@no-address.com> - 2017-06-24 20:18 +0200
Re: PC timing problem bitrex <bitrex@de.lete.earthlink.net> - 2017-06-24 15:52 -0400
Re: PC timing problem Adrian Jansen <adrian@qq.vv.net> - 2017-06-25 09:26 +1000
Re: PC timing problem Jamie M <jmorken@shaw.ca> - 2017-06-24 23:36 -0700
Page 1 of 4 [1] 2 3 4 Next page →
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2017-06-22 19:15 -0700 |
| Subject | PC timing problem |
| Message-ID | <0rsokcdm5ncdgt6c1qegpnn7rb3jehop43@4ax.com> |
Today a couple of guys literally walked up to our place and rang the doorbell, looking for help. They are medical types who know basically nothing about electronics. They want to plop a still image on a PC screen and simultaneously trigger some external gear. They would like those to be coincident to within maybe a millisecond. This will be a Windows machine, hardly a realtime OS. I don't think I could load a screen and simultaneously bang a serial port pin, or some USB device, accurate to a millisecond. Well, probably not. I'm helping them for free, so I don't want to launch some big coding or hardware project. One idea is to tape a photodiode in the corner of their screen. Their image could always include a bright spot there, and we could trigger off that. Another is to use a laptop that has a video port, like you'd connect to a projector. Then somehow look at the (VGA?) signal and use that as the trigger. In both cases, they'd have to manually arm the system before a shot so normal PC screens wouldn't trigger the external gear. Make screen black, throw a switch, begin the show. Maybe a serial port pin could be the on/off switch? A serial or USB port pulse wouldn't have the false alarm problem, but time sync might be tricky. I have no idea how close in time the video and the electrical outputs could be aligned. I guess I could experiment. Just possibly the VGA image/signal could contain some distinct trigger pattern, like a 7 MHz or some such waveform that I could bandpass filter and trigger on. Maybe RGB at different frequencies? Sounds like work. These guys have a small chance of doing a lot of good in the world, so I'd like to give them some help, without it becoming a giant project. Any ideas? -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [next] | [standalone]
| From | krw@notreal.com |
|---|---|
| Date | 2017-06-22 22:37 -0400 |
| Message-ID | <9ivokcdb71hgaiddsrsblthcibadhd4m8p@4ax.com> |
| In reply to | #465286 |
On Thu, 22 Jun 2017 19:15:01 -0700, John Larkin <jjlarkin@highlandtechnology.com> wrote: > > >Today a couple of guys literally walked up to our place and rang the >doorbell, looking for help. They are medical types who know basically >nothing about electronics. > >They want to plop a still image on a PC screen and simultaneously >trigger some external gear. They would like those to be coincident to >within maybe a millisecond. This will be a Windows machine, hardly a >realtime OS. I don't think I could load a screen and simultaneously >bang a serial port pin, or some USB device, accurate to a millisecond. >Well, probably not. > >I'm helping them for free, so I don't want to launch some big coding >or hardware project. > >One idea is to tape a photodiode in the corner of their screen. Their >image could always include a bright spot there, and we could trigger >off that. > >Another is to use a laptop that has a video port, like you'd connect >to a projector. Then somehow look at the (VGA?) signal and use that as >the trigger. > >In both cases, they'd have to manually arm the system before a shot so >normal PC screens wouldn't trigger the external gear. Make screen >black, throw a switch, begin the show. Maybe a serial port pin could >be the on/off switch? > >A serial or USB port pulse wouldn't have the false alarm problem, but >time sync might be tricky. I have no idea how close in time the video >and the electrical outputs could be aligned. I guess I could >experiment. > >Just possibly the VGA image/signal could contain some distinct trigger >pattern, like a 7 MHz or some such waveform that I could bandpass >filter and trigger on. Maybe RGB at different frequencies? Sounds like >work. > >These guys have a small chance of doing a lot of good in the world, so >I'd like to give them some help, without it becoming a giant project. > >Any ideas? Embed a pattern into the video signal that would have an arbitrarily low probability of accidental triggering (enough contrast that it wouldn't occur naturally). Intercept the RGB directly and compare digitally.
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2017-06-22 20:02 -0700 |
| Message-ID | <j41pkcp1kekpc0v97vccca2tflqnrjam85@4ax.com> |
| In reply to | #465289 |
On Thu, 22 Jun 2017 22:37:47 -0400, krw@notreal.com wrote: >On Thu, 22 Jun 2017 19:15:01 -0700, John Larkin ><jjlarkin@highlandtechnology.com> wrote: > >> >> >>Today a couple of guys literally walked up to our place and rang the >>doorbell, looking for help. They are medical types who know basically >>nothing about electronics. >> >>They want to plop a still image on a PC screen and simultaneously >>trigger some external gear. They would like those to be coincident to >>within maybe a millisecond. This will be a Windows machine, hardly a >>realtime OS. I don't think I could load a screen and simultaneously >>bang a serial port pin, or some USB device, accurate to a millisecond. >>Well, probably not. >> >>I'm helping them for free, so I don't want to launch some big coding >>or hardware project. >> >>One idea is to tape a photodiode in the corner of their screen. Their >>image could always include a bright spot there, and we could trigger >>off that. >> >>Another is to use a laptop that has a video port, like you'd connect >>to a projector. Then somehow look at the (VGA?) signal and use that as >>the trigger. >> >>In both cases, they'd have to manually arm the system before a shot so >>normal PC screens wouldn't trigger the external gear. Make screen >>black, throw a switch, begin the show. Maybe a serial port pin could >>be the on/off switch? >> >>A serial or USB port pulse wouldn't have the false alarm problem, but >>time sync might be tricky. I have no idea how close in time the video >>and the electrical outputs could be aligned. I guess I could >>experiment. >> >>Just possibly the VGA image/signal could contain some distinct trigger >>pattern, like a 7 MHz or some such waveform that I could bandpass >>filter and trigger on. Maybe RGB at different frequencies? Sounds like >>work. >> >>These guys have a small chance of doing a lot of good in the world, so >>I'd like to give them some help, without it becoming a giant project. >> >>Any ideas? > >Embed a pattern into the video signal that would have an arbitrarily >low probability of accidental triggering (enough contrast that it >wouldn't occur naturally). Intercept the RGB directly and compare >digitally. Sure, but that's a serious project. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-06-23 08:44 -0400 |
| Message-ID | <M283B.59749$AG1.42472@fx42.iad> |
| In reply to | #465298 |
On 06/22/2017 11:02 PM, John Larkin wrote: > On Thu, 22 Jun 2017 22:37:47 -0400, krw@notreal.com wrote: > >> On Thu, 22 Jun 2017 19:15:01 -0700, John Larkin >> <jjlarkin@highlandtechnology.com> wrote: >> >>> >>> >>> Today a couple of guys literally walked up to our place and rang the >>> doorbell, looking for help. They are medical types who know basically >>> nothing about electronics. >>> >>> They want to plop a still image on a PC screen and simultaneously >>> trigger some external gear. They would like those to be coincident to >>> within maybe a millisecond. This will be a Windows machine, hardly a >>> realtime OS. I don't think I could load a screen and simultaneously >>> bang a serial port pin, or some USB device, accurate to a millisecond. >>> Well, probably not. >>> >>> I'm helping them for free, so I don't want to launch some big coding >>> or hardware project. >>> >>> One idea is to tape a photodiode in the corner of their screen. Their >>> image could always include a bright spot there, and we could trigger >>> off that. >>> >>> Another is to use a laptop that has a video port, like you'd connect >>> to a projector. Then somehow look at the (VGA?) signal and use that as >>> the trigger. >>> >>> In both cases, they'd have to manually arm the system before a shot so >>> normal PC screens wouldn't trigger the external gear. Make screen >>> black, throw a switch, begin the show. Maybe a serial port pin could >>> be the on/off switch? >>> >>> A serial or USB port pulse wouldn't have the false alarm problem, but >>> time sync might be tricky. I have no idea how close in time the video >>> and the electrical outputs could be aligned. I guess I could >>> experiment. >>> >>> Just possibly the VGA image/signal could contain some distinct trigger >>> pattern, like a 7 MHz or some such waveform that I could bandpass >>> filter and trigger on. Maybe RGB at different frequencies? Sounds like >>> work. >>> >>> These guys have a small chance of doing a lot of good in the world, so >>> I'd like to give them some help, without it becoming a giant project. >>> >>> Any ideas? >> >> Embed a pattern into the video signal that would have an arbitrarily >> low probability of accidental triggering (enough contrast that it >> wouldn't occur naturally). Intercept the RGB directly and compare >> digitally. > > Sure, but that's a serious project. > > Why do you wanna sync one trigger to the other trigger? Sync both the laptop clock and the external gear trigger device (like say an R Pi running Linux with a GPIO pin) to an accurate external clock/timecode, like GPS. Or use one device RTC as the master and the other as the slave: <https://en.wikipedia.org/wiki/Precision_Time_Protocol> Under Linux "vbetools dpms off" and "vbetools dpms on" will turn the display backlight on and off just about instantly. Just trigger the GPIO pin and a two-line script that turns the light on and off on one from the timecode from the synced clocks.
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-06-23 10:56 -0400 |
| Message-ID | <oija0u$kp3$1@dont-email.me> |
| In reply to | #465344 |
bitrex wrote on 6/23/2017 8:44 AM: > On 06/22/2017 11:02 PM, John Larkin wrote: >> On Thu, 22 Jun 2017 22:37:47 -0400, krw@notreal.com wrote: >> >>> On Thu, 22 Jun 2017 19:15:01 -0700, John Larkin >>> <jjlarkin@highlandtechnology.com> wrote: >>> >>>> >>>> >>>> Today a couple of guys literally walked up to our place and rang the >>>> doorbell, looking for help. They are medical types who know basically >>>> nothing about electronics. >>>> >>>> They want to plop a still image on a PC screen and simultaneously >>>> trigger some external gear. They would like those to be coincident to >>>> within maybe a millisecond. This will be a Windows machine, hardly a >>>> realtime OS. I don't think I could load a screen and simultaneously >>>> bang a serial port pin, or some USB device, accurate to a millisecond. >>>> Well, probably not. >>>> >>>> I'm helping them for free, so I don't want to launch some big coding >>>> or hardware project. >>>> >>>> One idea is to tape a photodiode in the corner of their screen. Their >>>> image could always include a bright spot there, and we could trigger >>>> off that. >>>> >>>> Another is to use a laptop that has a video port, like you'd connect >>>> to a projector. Then somehow look at the (VGA?) signal and use that as >>>> the trigger. >>>> >>>> In both cases, they'd have to manually arm the system before a shot so >>>> normal PC screens wouldn't trigger the external gear. Make screen >>>> black, throw a switch, begin the show. Maybe a serial port pin could >>>> be the on/off switch? >>>> >>>> A serial or USB port pulse wouldn't have the false alarm problem, but >>>> time sync might be tricky. I have no idea how close in time the video >>>> and the electrical outputs could be aligned. I guess I could >>>> experiment. >>>> >>>> Just possibly the VGA image/signal could contain some distinct trigger >>>> pattern, like a 7 MHz or some such waveform that I could bandpass >>>> filter and trigger on. Maybe RGB at different frequencies? Sounds like >>>> work. >>>> >>>> These guys have a small chance of doing a lot of good in the world, so >>>> I'd like to give them some help, without it becoming a giant project. >>>> >>>> Any ideas? >>> >>> Embed a pattern into the video signal that would have an arbitrarily >>> low probability of accidental triggering (enough contrast that it >>> wouldn't occur naturally). Intercept the RGB directly and compare >>> digitally. >> >> Sure, but that's a serious project. >> >> > > Why do you wanna sync one trigger to the other trigger? Sync both the laptop > clock and the external gear trigger device (like say an R Pi running Linux > with a GPIO pin) to an accurate external clock/timecode, like GPS. > > Or use one device RTC as the master and the other as the slave: > > <https://en.wikipedia.org/wiki/Precision_Time_Protocol> > > Under Linux "vbetools dpms off" and "vbetools dpms on" will turn the display > backlight on and off just about instantly. Just trigger the GPIO pin and a > two-line script that turns the light on and off on one from the timecode > from the synced clocks. I don't believe there is much that can be done internally to a computer to sync the display to a control signal to such a short time frame. First, there is the issue that frames (in a standard display) are only changed every 16.7 ms. The display itself is scanned during an update and internally the display has buffers and the interface has delays (the interface delays many not be significant). The point is there are too many variables that can impact the timing of the display an order of magnitude beyond the goal. Some type of display sensor is the only way to coordinate a display with a trigger signal without digging into the display electronics or having details of the display that generally aren't available. -- Rick C
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-06-23 11:14 -0400 |
| Message-ID | <ofa3B.76296$0o4.61012@fx40.iad> |
| In reply to | #465366 |
On 06/23/2017 10:56 AM, rickman wrote: > bitrex wrote on 6/23/2017 8:44 AM: >> On 06/22/2017 11:02 PM, John Larkin wrote: >>> On Thu, 22 Jun 2017 22:37:47 -0400, krw@notreal.com wrote: >>> >>>> On Thu, 22 Jun 2017 19:15:01 -0700, John Larkin >>>> <jjlarkin@highlandtechnology.com> wrote: >>>> >>>>> >>>>> >>>>> Today a couple of guys literally walked up to our place and rang the >>>>> doorbell, looking for help. They are medical types who know basically >>>>> nothing about electronics. >>>>> >>>>> They want to plop a still image on a PC screen and simultaneously >>>>> trigger some external gear. They would like those to be coincident to >>>>> within maybe a millisecond. This will be a Windows machine, hardly a >>>>> realtime OS. I don't think I could load a screen and simultaneously >>>>> bang a serial port pin, or some USB device, accurate to a millisecond. >>>>> Well, probably not. >>>>> >>>>> I'm helping them for free, so I don't want to launch some big coding >>>>> or hardware project. >>>>> >>>>> One idea is to tape a photodiode in the corner of their screen. Their >>>>> image could always include a bright spot there, and we could trigger >>>>> off that. >>>>> >>>>> Another is to use a laptop that has a video port, like you'd connect >>>>> to a projector. Then somehow look at the (VGA?) signal and use that as >>>>> the trigger. >>>>> >>>>> In both cases, they'd have to manually arm the system before a shot so >>>>> normal PC screens wouldn't trigger the external gear. Make screen >>>>> black, throw a switch, begin the show. Maybe a serial port pin could >>>>> be the on/off switch? >>>>> >>>>> A serial or USB port pulse wouldn't have the false alarm problem, but >>>>> time sync might be tricky. I have no idea how close in time the video >>>>> and the electrical outputs could be aligned. I guess I could >>>>> experiment. >>>>> >>>>> Just possibly the VGA image/signal could contain some distinct trigger >>>>> pattern, like a 7 MHz or some such waveform that I could bandpass >>>>> filter and trigger on. Maybe RGB at different frequencies? Sounds like >>>>> work. >>>>> >>>>> These guys have a small chance of doing a lot of good in the world, so >>>>> I'd like to give them some help, without it becoming a giant project. >>>>> >>>>> Any ideas? >>>> >>>> Embed a pattern into the video signal that would have an arbitrarily >>>> low probability of accidental triggering (enough contrast that it >>>> wouldn't occur naturally). Intercept the RGB directly and compare >>>> digitally. >>> >>> Sure, but that's a serious project. >>> >>> >> >> Why do you wanna sync one trigger to the other trigger? Sync both the >> laptop >> clock and the external gear trigger device (like say an R Pi running >> Linux >> with a GPIO pin) to an accurate external clock/timecode, like GPS. >> >> Or use one device RTC as the master and the other as the slave: >> >> <https://en.wikipedia.org/wiki/Precision_Time_Protocol> >> >> Under Linux "vbetools dpms off" and "vbetools dpms on" will turn the >> display >> backlight on and off just about instantly. Just trigger the GPIO pin >> and a >> two-line script that turns the light on and off on one from the timecode >> from the synced clocks. > > I don't believe there is much that can be done internally to a computer > to sync the display to a control signal to such a short time frame. > First, there is the issue that frames (in a standard display) are only > changed every 16.7 ms. The display itself is scanned during an update > and internally the display has buffers and the interface has delays (the > interface delays many not be significant). The point is there are too > many variables that can impact the timing of the display an order of > magnitude beyond the goal. > > Some type of display sensor is the only way to coordinate a display with > a trigger signal without digging into the display electronics or having > details of the display that generally aren't available. > Not talking about updating the display through the GPU hardware or altering the raster. Just flipping the LED backlight and off. It's usually an ACPI system device or some kind of hardware register that doesn't at all involve the graphics driver in any way. If there's some small latency through doing it from software it's likely measurable and consistent.
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-06-23 14:05 -0400 |
| Message-ID | <oijl2d$ptn$1@dont-email.me> |
| In reply to | #465370 |
bitrex wrote on 6/23/2017 11:14 AM: > On 06/23/2017 10:56 AM, rickman wrote: >> bitrex wrote on 6/23/2017 8:44 AM: >>> On 06/22/2017 11:02 PM, John Larkin wrote: >>>> On Thu, 22 Jun 2017 22:37:47 -0400, krw@notreal.com wrote: >>>> >>>>> On Thu, 22 Jun 2017 19:15:01 -0700, John Larkin >>>>> <jjlarkin@highlandtechnology.com> wrote: >>>>> >>>>>> >>>>>> >>>>>> Today a couple of guys literally walked up to our place and rang the >>>>>> doorbell, looking for help. They are medical types who know basically >>>>>> nothing about electronics. >>>>>> >>>>>> They want to plop a still image on a PC screen and simultaneously >>>>>> trigger some external gear. They would like those to be coincident to >>>>>> within maybe a millisecond. This will be a Windows machine, hardly a >>>>>> realtime OS. I don't think I could load a screen and simultaneously >>>>>> bang a serial port pin, or some USB device, accurate to a millisecond. >>>>>> Well, probably not. >>>>>> >>>>>> I'm helping them for free, so I don't want to launch some big coding >>>>>> or hardware project. >>>>>> >>>>>> One idea is to tape a photodiode in the corner of their screen. Their >>>>>> image could always include a bright spot there, and we could trigger >>>>>> off that. >>>>>> >>>>>> Another is to use a laptop that has a video port, like you'd connect >>>>>> to a projector. Then somehow look at the (VGA?) signal and use that as >>>>>> the trigger. >>>>>> >>>>>> In both cases, they'd have to manually arm the system before a shot so >>>>>> normal PC screens wouldn't trigger the external gear. Make screen >>>>>> black, throw a switch, begin the show. Maybe a serial port pin could >>>>>> be the on/off switch? >>>>>> >>>>>> A serial or USB port pulse wouldn't have the false alarm problem, but >>>>>> time sync might be tricky. I have no idea how close in time the video >>>>>> and the electrical outputs could be aligned. I guess I could >>>>>> experiment. >>>>>> >>>>>> Just possibly the VGA image/signal could contain some distinct trigger >>>>>> pattern, like a 7 MHz or some such waveform that I could bandpass >>>>>> filter and trigger on. Maybe RGB at different frequencies? Sounds like >>>>>> work. >>>>>> >>>>>> These guys have a small chance of doing a lot of good in the world, so >>>>>> I'd like to give them some help, without it becoming a giant project. >>>>>> >>>>>> Any ideas? >>>>> >>>>> Embed a pattern into the video signal that would have an arbitrarily >>>>> low probability of accidental triggering (enough contrast that it >>>>> wouldn't occur naturally). Intercept the RGB directly and compare >>>>> digitally. >>>> >>>> Sure, but that's a serious project. >>>> >>>> >>> >>> Why do you wanna sync one trigger to the other trigger? Sync both the laptop >>> clock and the external gear trigger device (like say an R Pi running Linux >>> with a GPIO pin) to an accurate external clock/timecode, like GPS. >>> >>> Or use one device RTC as the master and the other as the slave: >>> >>> <https://en.wikipedia.org/wiki/Precision_Time_Protocol> >>> >>> Under Linux "vbetools dpms off" and "vbetools dpms on" will turn the display >>> backlight on and off just about instantly. Just trigger the GPIO pin and a >>> two-line script that turns the light on and off on one from the timecode >>> from the synced clocks. >> >> I don't believe there is much that can be done internally to a computer to >> sync the display to a control signal to such a short time frame. First, >> there is the issue that frames (in a standard display) are only changed >> every 16.7 ms. The display itself is scanned during an update and >> internally the display has buffers and the interface has delays (the >> interface delays many not be significant). The point is there are too >> many variables that can impact the timing of the display an order of >> magnitude beyond the goal. >> >> Some type of display sensor is the only way to coordinate a display with a >> trigger signal without digging into the display electronics or having >> details of the display that generally aren't available. >> > > Not talking about updating the display through the GPU hardware or altering > the raster. Just flipping the LED backlight and off. It's usually an ACPI > system device or some kind of hardware register that doesn't at all involve > the graphics driver in any way. > > If there's some small latency through doing it from software it's likely > measurable and consistent. I get what you are saying, but in a desktop PC is there a communications channel other than the HDMI or VGA connector? Any idea of how a backlight control would operate over these two interfaces? I don't think I've seen anything to indicate if they are using a desktop or a laptop. I do see where John mentioned tapping into the VGA signal which would imply desktop. -- Rick C
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-06-23 14:17 -0400 |
| Message-ID | <jXc3B.68396$W87.62214@fx27.iad> |
| In reply to | #465399 |
On 06/23/2017 02:05 PM, rickman wrote: > bitrex wrote on 6/23/2017 11:14 AM: >> On 06/23/2017 10:56 AM, rickman wrote: >>> bitrex wrote on 6/23/2017 8:44 AM: >>>> On 06/22/2017 11:02 PM, John Larkin wrote: >>>>> On Thu, 22 Jun 2017 22:37:47 -0400, krw@notreal.com wrote: >>>>> >>>>>> On Thu, 22 Jun 2017 19:15:01 -0700, John Larkin >>>>>> <jjlarkin@highlandtechnology.com> wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> Today a couple of guys literally walked up to our place and rang the >>>>>>> doorbell, looking for help. They are medical types who know >>>>>>> basically >>>>>>> nothing about electronics. >>>>>>> >>>>>>> They want to plop a still image on a PC screen and simultaneously >>>>>>> trigger some external gear. They would like those to be >>>>>>> coincident to >>>>>>> within maybe a millisecond. This will be a Windows machine, hardly a >>>>>>> realtime OS. I don't think I could load a screen and simultaneously >>>>>>> bang a serial port pin, or some USB device, accurate to a >>>>>>> millisecond. >>>>>>> Well, probably not. >>>>>>> >>>>>>> I'm helping them for free, so I don't want to launch some big coding >>>>>>> or hardware project. >>>>>>> >>>>>>> One idea is to tape a photodiode in the corner of their screen. >>>>>>> Their >>>>>>> image could always include a bright spot there, and we could trigger >>>>>>> off that. >>>>>>> >>>>>>> Another is to use a laptop that has a video port, like you'd connect >>>>>>> to a projector. Then somehow look at the (VGA?) signal and use >>>>>>> that as >>>>>>> the trigger. >>>>>>> >>>>>>> In both cases, they'd have to manually arm the system before a >>>>>>> shot so >>>>>>> normal PC screens wouldn't trigger the external gear. Make screen >>>>>>> black, throw a switch, begin the show. Maybe a serial port pin could >>>>>>> be the on/off switch? >>>>>>> >>>>>>> A serial or USB port pulse wouldn't have the false alarm problem, >>>>>>> but >>>>>>> time sync might be tricky. I have no idea how close in time the >>>>>>> video >>>>>>> and the electrical outputs could be aligned. I guess I could >>>>>>> experiment. >>>>>>> >>>>>>> Just possibly the VGA image/signal could contain some distinct >>>>>>> trigger >>>>>>> pattern, like a 7 MHz or some such waveform that I could bandpass >>>>>>> filter and trigger on. Maybe RGB at different frequencies? Sounds >>>>>>> like >>>>>>> work. >>>>>>> >>>>>>> These guys have a small chance of doing a lot of good in the >>>>>>> world, so >>>>>>> I'd like to give them some help, without it becoming a giant >>>>>>> project. >>>>>>> >>>>>>> Any ideas? >>>>>> >>>>>> Embed a pattern into the video signal that would have an arbitrarily >>>>>> low probability of accidental triggering (enough contrast that it >>>>>> wouldn't occur naturally). Intercept the RGB directly and compare >>>>>> digitally. >>>>> >>>>> Sure, but that's a serious project. >>>>> >>>>> >>>> >>>> Why do you wanna sync one trigger to the other trigger? Sync both >>>> the laptop >>>> clock and the external gear trigger device (like say an R Pi running >>>> Linux >>>> with a GPIO pin) to an accurate external clock/timecode, like GPS. >>>> >>>> Or use one device RTC as the master and the other as the slave: >>>> >>>> <https://en.wikipedia.org/wiki/Precision_Time_Protocol> >>>> >>>> Under Linux "vbetools dpms off" and "vbetools dpms on" will turn the >>>> display >>>> backlight on and off just about instantly. Just trigger the GPIO pin >>>> and a >>>> two-line script that turns the light on and off on one from the >>>> timecode >>>> from the synced clocks. >>> >>> I don't believe there is much that can be done internally to a >>> computer to >>> sync the display to a control signal to such a short time frame. First, >>> there is the issue that frames (in a standard display) are only changed >>> every 16.7 ms. The display itself is scanned during an update and >>> internally the display has buffers and the interface has delays (the >>> interface delays many not be significant). The point is there are too >>> many variables that can impact the timing of the display an order of >>> magnitude beyond the goal. >>> >>> Some type of display sensor is the only way to coordinate a display >>> with a >>> trigger signal without digging into the display electronics or having >>> details of the display that generally aren't available. >>> >> >> Not talking about updating the display through the GPU hardware or >> altering >> the raster. Just flipping the LED backlight and off. It's usually an ACPI >> system device or some kind of hardware register that doesn't at all >> involve >> the graphics driver in any way. >> >> If there's some small latency through doing it from software it's likely >> measurable and consistent. > > I get what you are saying, but in a desktop PC is there a communications > channel other than the HDMI or VGA connector? Any idea of how a > backlight control would operate over these two interfaces? I don't > think I've seen anything to indicate if they are using a desktop or a > laptop. I do see where John mentioned tapping into the VGA signal which > would imply desktop. > Yeah, Ethernet or WiFi. Why bother trying to hack your own interface when you can use PTC to phase lock loop two local clocks over the network with sub-microsecond accuracy
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-06-23 14:59 -0400 |
| Message-ID | <oijo7o$5ah$1@dont-email.me> |
| In reply to | #465401 |
bitrex wrote on 6/23/2017 2:17 PM: > On 06/23/2017 02:05 PM, rickman wrote: >> bitrex wrote on 6/23/2017 11:14 AM: >>> >>> Not talking about updating the display through the GPU hardware or altering >>> the raster. Just flipping the LED backlight and off. It's usually an ACPI >>> system device or some kind of hardware register that doesn't at all involve >>> the graphics driver in any way. >>> >>> If there's some small latency through doing it from software it's likely >>> measurable and consistent. >> >> I get what you are saying, but in a desktop PC is there a communications >> channel other than the HDMI or VGA connector? Any idea of how a backlight >> control would operate over these two interfaces? I don't think I've seen >> anything to indicate if they are using a desktop or a laptop. I do see >> where John mentioned tapping into the VGA signal which would imply desktop. >> > > Yeah, Ethernet or WiFi. Why bother trying to hack your own interface when > you can use PTC to phase lock loop two local clocks over the network with > sub-microsecond accuracy Not sure where you are going with this. The problem is controlling when the image on the screen is visible and/or knowing when it is visible. To do that you suggested using the backlight as a shutter to turn off the image while it is being updated (since the update rate is 16 ms), then turning the backlight on using ACPI comamnds to allow it to be seen. In a desktop the PC this requires a communications channel to the monitor. I'm pretty sure the VGA interface provides no millisecond control over the backlight. I don't know what HDMI provides. -- Rick C
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-06-23 18:34 -0400 |
| Message-ID | <2Ig3B.72288$lx.13651@fx43.iad> |
| In reply to | #465409 |
On 06/23/2017 02:59 PM, rickman wrote: > bitrex wrote on 6/23/2017 2:17 PM: >> On 06/23/2017 02:05 PM, rickman wrote: >>> bitrex wrote on 6/23/2017 11:14 AM: >>>> >>>> Not talking about updating the display through the GPU hardware or >>>> altering >>>> the raster. Just flipping the LED backlight and off. It's usually an >>>> ACPI >>>> system device or some kind of hardware register that doesn't at all >>>> involve >>>> the graphics driver in any way. >>>> >>>> If there's some small latency through doing it from software it's >>>> likely >>>> measurable and consistent. >>> >>> I get what you are saying, but in a desktop PC is there a communications >>> channel other than the HDMI or VGA connector? Any idea of how a >>> backlight >>> control would operate over these two interfaces? I don't think I've >>> seen >>> anything to indicate if they are using a desktop or a laptop. I do see >>> where John mentioned tapping into the VGA signal which would imply >>> desktop. >>> >> >> Yeah, Ethernet or WiFi. Why bother trying to hack your own interface when >> you can use PTC to phase lock loop two local clocks over the network with >> sub-microsecond accuracy > > Not sure where you are going with this. The problem is controlling when > the image on the screen is visible and/or knowing when it is visible. > To do that you suggested using the backlight as a shutter to turn off > the image while it is being updated (since the update rate is 16 ms), > then turning the backlight on using ACPI comamnds to allow it to be > seen. In a desktop the PC this requires a communications channel to the > monitor. I'm pretty sure the VGA interface provides no millisecond > control over the backlight. I don't know what HDMI provides. > Oh, I saw the words "PC" and "laptop" and I guess I assumed we were talking about a laptop here. A PC basically means "x86 laptop" to me these days, I can't remember the last time I saw a desktop PC in someone's home. I guess they do use them in offices sometimes, but I see them less there, too. So ah yeah, I guess it's not as simple if you're trying to control an old external display. Some monitors and adapters support "Data Display Channel" which likely would provide similar direct control over the backlight brightness without having to change the raster/route through the GPU hardware: <https://en.wikipedia.org/wiki/Display_Data_Channel#DDC.2FCI>
[toc] | [prev] | [next] | [standalone]
| From | krw@notreal.com |
|---|---|
| Date | 2017-06-23 22:15 -0400 |
| Message-ID | <7nirkc19po1qitqo1vkg4fbfpvtiid8oji@4ax.com> |
| In reply to | #465298 |
On Thu, 22 Jun 2017 20:02:12 -0700, John Larkin <jjlarkin@highlandtechnology.com> wrote: >On Thu, 22 Jun 2017 22:37:47 -0400, krw@notreal.com wrote: > >>On Thu, 22 Jun 2017 19:15:01 -0700, John Larkin >><jjlarkin@highlandtechnology.com> wrote: >> >>> >>> >>>Today a couple of guys literally walked up to our place and rang the >>>doorbell, looking for help. They are medical types who know basically >>>nothing about electronics. >>> >>>They want to plop a still image on a PC screen and simultaneously >>>trigger some external gear. They would like those to be coincident to >>>within maybe a millisecond. This will be a Windows machine, hardly a >>>realtime OS. I don't think I could load a screen and simultaneously >>>bang a serial port pin, or some USB device, accurate to a millisecond. >>>Well, probably not. >>> >>>I'm helping them for free, so I don't want to launch some big coding >>>or hardware project. >>> >>>One idea is to tape a photodiode in the corner of their screen. Their >>>image could always include a bright spot there, and we could trigger >>>off that. >>> >>>Another is to use a laptop that has a video port, like you'd connect >>>to a projector. Then somehow look at the (VGA?) signal and use that as >>>the trigger. >>> >>>In both cases, they'd have to manually arm the system before a shot so >>>normal PC screens wouldn't trigger the external gear. Make screen >>>black, throw a switch, begin the show. Maybe a serial port pin could >>>be the on/off switch? >>> >>>A serial or USB port pulse wouldn't have the false alarm problem, but >>>time sync might be tricky. I have no idea how close in time the video >>>and the electrical outputs could be aligned. I guess I could >>>experiment. >>> >>>Just possibly the VGA image/signal could contain some distinct trigger >>>pattern, like a 7 MHz or some such waveform that I could bandpass >>>filter and trigger on. Maybe RGB at different frequencies? Sounds like >>>work. >>> >>>These guys have a small chance of doing a lot of good in the world, so >>>I'd like to give them some help, without it becoming a giant project. >>> >>>Any ideas? >> >>Embed a pattern into the video signal that would have an arbitrarily >>low probability of accidental triggering (enough contrast that it >>wouldn't occur naturally). Intercept the RGB directly and compare >>digitally. > >Sure, but that's a serious project. Sounds like a just a little CPLD, to me. The "seriousness" depends on the resolution. A 4K video signal is going to take a rather fast FPGA.
[toc] | [prev] | [next] | [standalone]
| From | Don Y <blockedofcourse@foo.invalid> |
|---|---|
| Date | 2017-06-22 19:50 -0700 |
| Message-ID | <oihve2$qge$1@dont-email.me> |
| In reply to | #465286 |
On 6/22/2017 7:15 PM, John Larkin wrote: > > > Today a couple of guys literally walked up to our place and rang the > doorbell, looking for help. They are medical types who know basically > nothing about electronics. > > They want to plop a still image on a PC screen and simultaneously > trigger some external gear. They would like those to be coincident to > within maybe a millisecond. This will be a Windows machine, hardly a > realtime OS. I don't think I could load a screen and simultaneously > bang a serial port pin, or some USB device, accurate to a millisecond. > Well, probably not. What is "looking at" the still image? I.e., the image never APPEARS "instantaneously" so what point in time do you use as a reference for your "accurate to a millisecond"? And, you've specified the *accuracy* but not the magnitude of the delay/skew between that "image appearance reference point" and the "serial port pin". I.e., 47268.3ms later? (+- 500us) Does the PC have to retain its functionality as a PC? Or, can it become a dedicated "image displayer with serial port stroker"? Does it have to run on ANY PC, any version of windows, etc.? > I'm helping them for free, so I don't want to launch some big coding > or hardware project. > > One idea is to tape a photodiode in the corner of their screen. Their > image could always include a bright spot there, and we could trigger > off that. > > Another is to use a laptop that has a video port, like you'd connect > to a projector. Then somehow look at the (VGA?) signal and use that as > the trigger. Run the video into (or out of?) "sleep" mode? > In both cases, they'd have to manually arm the system before a shot so > normal PC screens wouldn't trigger the external gear. Make screen > black, throw a switch, begin the show. Maybe a serial port pin could > be the on/off switch? > > A serial or USB port pulse wouldn't have the false alarm problem, but > time sync might be tricky. I have no idea how close in time the video > and the electrical outputs could be aligned. I guess I could > experiment. > > Just possibly the VGA image/signal could contain some distinct trigger > pattern, like a 7 MHz or some such waveform that I could bandpass > filter and trigger on. Maybe RGB at different frequencies? Sounds like > work. > > These guys have a small chance of doing a lot of good in the world, so > I'd like to give them some help, without it becoming a giant project. > > Any ideas? > >
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2017-06-22 20:14 -0700 |
| Message-ID | <a61pkc15rbirru27l8e7v940b2phs0qhgd@4ax.com> |
| In reply to | #465293 |
On Thu, 22 Jun 2017 19:50:07 -0700, Don Y <blockedofcourse@foo.invalid> wrote: >On 6/22/2017 7:15 PM, John Larkin wrote: >> >> >> Today a couple of guys literally walked up to our place and rang the >> doorbell, looking for help. They are medical types who know basically >> nothing about electronics. >> >> They want to plop a still image on a PC screen and simultaneously >> trigger some external gear. They would like those to be coincident to >> within maybe a millisecond. This will be a Windows machine, hardly a >> realtime OS. I don't think I could load a screen and simultaneously >> bang a serial port pin, or some USB device, accurate to a millisecond. >> Well, probably not. > >What is "looking at" the still image? A person. And maybe my photodiode in the corner. > >I.e., the image never APPEARS "instantaneously" so what point in time do you >use as a reference for your "accurate to a millisecond"? Let's say when the image is all on the screen. That suggests that the optical sensor wins. I guess the video signal sent to the LCD screen, and the screen refresh, are asynchronous. There is probably a way to synchronize video ram loads with screen refresh, but I'm not volunteering to write any device drivers. > >And, you've specified the *accuracy* but not the magnitude of the delay/skew >between that "image appearance reference point" and the "serial port pin". >I.e., 47268.3ms later? (+- 500us) How about 1 millisecond? That's their suggestion, but then they are not electronic guys, and their idea hasn't been tested yet, so nobody knows what really matters. > >Does the PC have to retain its functionality as a PC? Or, can it become >a dedicated "image displayer with serial port stroker"? I suppose it can be dedicated for the duration of one experiment. So maybe just detecting non-black VGA signals could work. That would be fairly easy, Altoids box afternoon sort of stuff. > >Does it have to run on ANY PC, any version of windows, etc.? It only has to work. I assume that we'd use something that they have, or maybe they could buy a cheapish laptop. > >> I'm helping them for free, so I don't want to launch some big coding >> or hardware project. >> >> One idea is to tape a photodiode in the corner of their screen. Their >> image could always include a bright spot there, and we could trigger >> off that. >> >> Another is to use a laptop that has a video port, like you'd connect >> to a projector. Then somehow look at the (VGA?) signal and use that as >> the trigger. > >Run the video into (or out of?) "sleep" mode? > >> In both cases, they'd have to manually arm the system before a shot so >> normal PC screens wouldn't trigger the external gear. Make screen >> black, throw a switch, begin the show. Maybe a serial port pin could >> be the on/off switch? >> >> A serial or USB port pulse wouldn't have the false alarm problem, but >> time sync might be tricky. I have no idea how close in time the video >> and the electrical outputs could be aligned. I guess I could >> experiment. >> >> Just possibly the VGA image/signal could contain some distinct trigger >> pattern, like a 7 MHz or some such waveform that I could bandpass >> filter and trigger on. Maybe RGB at different frequencies? Sounds like >> work. >> >> These guys have a small chance of doing a lot of good in the world, so >> I'd like to give them some help, without it becoming a giant project. >> >> Any ideas? >> >> -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Date | 2017-06-23 15:20 +0200 |
| Message-ID | <oij4ba$1v2$1@dont-email.me> |
| In reply to | #465301 |
On 23/06/17 05:14, John Larkin wrote: > On Thu, 22 Jun 2017 19:50:07 -0700, Don Y > <blockedofcourse@foo.invalid> wrote: > >> On 6/22/2017 7:15 PM, John Larkin wrote: >>> >>> >>> Today a couple of guys literally walked up to our place and rang the >>> doorbell, looking for help. They are medical types who know basically >>> nothing about electronics. >>> >>> They want to plop a still image on a PC screen and simultaneously >>> trigger some external gear. They would like those to be coincident to >>> within maybe a millisecond. This will be a Windows machine, hardly a >>> realtime OS. I don't think I could load a screen and simultaneously >>> bang a serial port pin, or some USB device, accurate to a millisecond. >>> Well, probably not. >> >> What is "looking at" the still image? > > A person. And maybe my photodiode in the corner. > > How about 1 millisecond? That's their suggestion, but then they are > not electronic guys, and their idea hasn't been tested yet, so nobody > knows what really matters. > Ask them to bring along this person who can view an image in 1 millisecond, or who can see a skew of 1 millisecond between an image and the output. Then ask them to bring along a screen that can show an image in 1 millisecond. Maybe ask them to show you a 1000 frames per second movie on it, and ask their test user to distinguish between a 1000 frames per second film and a 500 frames per second film. Then explain to them that a good rule of thumb for "appears to be simultaneous" for a single event is a timing within 100 milliseconds, not 1 millisecond. For high-speed action (like a fast computer game), 20 milliseconds is the fastest timing you will ever need to consider. Once they are in the land of reality, even a Windows PC should be able to set an output and show a picture with much less than 100 (or even 20) milliseconds skew.
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-06-23 10:58 -0400 |
| Message-ID | <oija40$kp3$2@dont-email.me> |
| In reply to | #465347 |
David Brown wrote on 6/23/2017 9:20 AM: > On 23/06/17 05:14, John Larkin wrote: >> On Thu, 22 Jun 2017 19:50:07 -0700, Don Y >> <blockedofcourse@foo.invalid> wrote: >> >>> On 6/22/2017 7:15 PM, John Larkin wrote: >>>> >>>> >>>> Today a couple of guys literally walked up to our place and rang the >>>> doorbell, looking for help. They are medical types who know basically >>>> nothing about electronics. >>>> >>>> They want to plop a still image on a PC screen and simultaneously >>>> trigger some external gear. They would like those to be coincident to >>>> within maybe a millisecond. This will be a Windows machine, hardly a >>>> realtime OS. I don't think I could load a screen and simultaneously >>>> bang a serial port pin, or some USB device, accurate to a millisecond. >>>> Well, probably not. >>> >>> What is "looking at" the still image? >> >> A person. And maybe my photodiode in the corner. >> >> How about 1 millisecond? That's their suggestion, but then they are >> not electronic guys, and their idea hasn't been tested yet, so nobody >> knows what really matters. >> > > Ask them to bring along this person who can view an image in 1 > millisecond, or who can see a skew of 1 millisecond between an image and > the output. > > Then ask them to bring along a screen that can show an image in 1 > millisecond. Maybe ask them to show you a 1000 frames per second movie > on it, and ask their test user to distinguish between a 1000 frames per > second film and a 500 frames per second film. > > > Then explain to them that a good rule of thumb for "appears to be > simultaneous" for a single event is a timing within 100 milliseconds, > not 1 millisecond. For high-speed action (like a fast computer game), > 20 milliseconds is the fastest timing you will ever need to consider. > > > Once they are in the land of reality, even a Windows PC should be able > to set an output and show a picture with much less than 100 (or even 20) > milliseconds skew. Maybe they are exploring human perception at this level and need equipment faster than human perception in order to measure it accurately? -- Rick C
[toc] | [prev] | [next] | [standalone]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Date | 2017-06-26 10:31 +0200 |
| Message-ID | <oiqgi9$1r2$1@dont-email.me> |
| In reply to | #465367 |
On 23/06/17 16:58, rickman wrote: > David Brown wrote on 6/23/2017 9:20 AM: >> On 23/06/17 05:14, John Larkin wrote: >>> On Thu, 22 Jun 2017 19:50:07 -0700, Don Y >>> <blockedofcourse@foo.invalid> wrote: >>> >>>> On 6/22/2017 7:15 PM, John Larkin wrote: >>>>> >>>>> >>>>> Today a couple of guys literally walked up to our place and rang the >>>>> doorbell, looking for help. They are medical types who know basically >>>>> nothing about electronics. >>>>> >>>>> They want to plop a still image on a PC screen and simultaneously >>>>> trigger some external gear. They would like those to be coincident to >>>>> within maybe a millisecond. This will be a Windows machine, hardly a >>>>> realtime OS. I don't think I could load a screen and simultaneously >>>>> bang a serial port pin, or some USB device, accurate to a millisecond. >>>>> Well, probably not. >>>> >>>> What is "looking at" the still image? >>> >>> A person. And maybe my photodiode in the corner. >>> >>> How about 1 millisecond? That's their suggestion, but then they are >>> not electronic guys, and their idea hasn't been tested yet, so nobody >>> knows what really matters. >>> >> >> Ask them to bring along this person who can view an image in 1 >> millisecond, or who can see a skew of 1 millisecond between an image and >> the output. >> >> Then ask them to bring along a screen that can show an image in 1 >> millisecond. Maybe ask them to show you a 1000 frames per second movie >> on it, and ask their test user to distinguish between a 1000 frames per >> second film and a 500 frames per second film. >> >> >> Then explain to them that a good rule of thumb for "appears to be >> simultaneous" for a single event is a timing within 100 milliseconds, >> not 1 millisecond. For high-speed action (like a fast computer game), >> 20 milliseconds is the fastest timing you will ever need to consider. >> >> >> Once they are in the land of reality, even a Windows PC should be able >> to set an output and show a picture with much less than 100 (or even 20) >> milliseconds skew. > > Maybe they are exploring human perception at this level and need > equipment faster than human perception in order to measure it accurately? > Yes, later posts (or at least, posts that I read later) seem to suggest that. Still, it is pointless to consider timing that is faster than the screen can actually handle, or to measure timings to a resolution that is just noise. So 100 millisecond timing would be too rough for measuring reactions, but 10 millisecond timing should be accurate enough and at the limit for a good gaming screen. Windows game engines should cope with that, combined with USB 2.0 peripherals for input/output.
[toc] | [prev] | [next] | [standalone]
| From | Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> |
|---|---|
| Date | 2017-06-26 09:05 -0400 |
| Message-ID | <fd12lcl70pljbt07q58s492k9j8jmc47od@4ax.com> |
| In reply to | #465653 |
On Mon, 26 Jun 2017 10:31:36 +0200, the renowned David Brown <david.brown@hesbynett.no> wrote: >On 23/06/17 16:58, rickman wrote: >> David Brown wrote on 6/23/2017 9:20 AM: >>> On 23/06/17 05:14, John Larkin wrote: >>>> On Thu, 22 Jun 2017 19:50:07 -0700, Don Y >>>> <blockedofcourse@foo.invalid> wrote: >>>> >>>>> On 6/22/2017 7:15 PM, John Larkin wrote: >>>>>> >>>>>> >>>>>> Today a couple of guys literally walked up to our place and rang the >>>>>> doorbell, looking for help. They are medical types who know basically >>>>>> nothing about electronics. >>>>>> >>>>>> They want to plop a still image on a PC screen and simultaneously >>>>>> trigger some external gear. They would like those to be coincident to >>>>>> within maybe a millisecond. This will be a Windows machine, hardly a >>>>>> realtime OS. I don't think I could load a screen and simultaneously >>>>>> bang a serial port pin, or some USB device, accurate to a millisecond. >>>>>> Well, probably not. >>>>> >>>>> What is "looking at" the still image? >>>> >>>> A person. And maybe my photodiode in the corner. >>>> >>>> How about 1 millisecond? That's their suggestion, but then they are >>>> not electronic guys, and their idea hasn't been tested yet, so nobody >>>> knows what really matters. >>>> >>> >>> Ask them to bring along this person who can view an image in 1 >>> millisecond, or who can see a skew of 1 millisecond between an image and >>> the output. >>> >>> Then ask them to bring along a screen that can show an image in 1 >>> millisecond. Maybe ask them to show you a 1000 frames per second movie >>> on it, and ask their test user to distinguish between a 1000 frames per >>> second film and a 500 frames per second film. >>> >>> >>> Then explain to them that a good rule of thumb for "appears to be >>> simultaneous" for a single event is a timing within 100 milliseconds, >>> not 1 millisecond. For high-speed action (like a fast computer game), >>> 20 milliseconds is the fastest timing you will ever need to consider. >>> >>> >>> Once they are in the land of reality, even a Windows PC should be able >>> to set an output and show a picture with much less than 100 (or even 20) >>> milliseconds skew. >> >> Maybe they are exploring human perception at this level and need >> equipment faster than human perception in order to measure it accurately? >> > >Yes, later posts (or at least, posts that I read later) seem to suggest >that. Still, it is pointless to consider timing that is faster than the >screen can actually handle, or to measure timings to a resolution that >is just noise. So 100 millisecond timing would be too rough for >measuring reactions, but 10 millisecond timing should be accurate enough >and at the limit for a good gaming screen. Windows game engines should >cope with that, combined with USB 2.0 peripherals for input/output. > I *think* one of the "Freesync" type options together with a monitor that claims 1ms response (as some gamer monitors do) should guarantee that all the image is simultaneously updated. The symptom the former deals with is image 'tearing' which is partial update in the presence of fast motion, probably relevant to this application. AFAIUI, Freesync forces the monitor to sync to the graphics card frame update. --sp -- Best regards, Spehro Pefhany
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-06-26 12:41 -0400 |
| Message-ID | <oird85$6ih$1@dont-email.me> |
| In reply to | #465653 |
David Brown wrote on 6/26/2017 4:31 AM: > On 23/06/17 16:58, rickman wrote: >> David Brown wrote on 6/23/2017 9:20 AM: >>> On 23/06/17 05:14, John Larkin wrote: >>>> On Thu, 22 Jun 2017 19:50:07 -0700, Don Y >>>> <blockedofcourse@foo.invalid> wrote: >>>> >>>>> On 6/22/2017 7:15 PM, John Larkin wrote: >>>>>> >>>>>> >>>>>> Today a couple of guys literally walked up to our place and rang the >>>>>> doorbell, looking for help. They are medical types who know basically >>>>>> nothing about electronics. >>>>>> >>>>>> They want to plop a still image on a PC screen and simultaneously >>>>>> trigger some external gear. They would like those to be coincident to >>>>>> within maybe a millisecond. This will be a Windows machine, hardly a >>>>>> realtime OS. I don't think I could load a screen and simultaneously >>>>>> bang a serial port pin, or some USB device, accurate to a millisecond. >>>>>> Well, probably not. >>>>> >>>>> What is "looking at" the still image? >>>> >>>> A person. And maybe my photodiode in the corner. >>>> >>>> How about 1 millisecond? That's their suggestion, but then they are >>>> not electronic guys, and their idea hasn't been tested yet, so nobody >>>> knows what really matters. >>>> >>> >>> Ask them to bring along this person who can view an image in 1 >>> millisecond, or who can see a skew of 1 millisecond between an image and >>> the output. >>> >>> Then ask them to bring along a screen that can show an image in 1 >>> millisecond. Maybe ask them to show you a 1000 frames per second movie >>> on it, and ask their test user to distinguish between a 1000 frames per >>> second film and a 500 frames per second film. >>> >>> >>> Then explain to them that a good rule of thumb for "appears to be >>> simultaneous" for a single event is a timing within 100 milliseconds, >>> not 1 millisecond. For high-speed action (like a fast computer game), >>> 20 milliseconds is the fastest timing you will ever need to consider. >>> >>> >>> Once they are in the land of reality, even a Windows PC should be able >>> to set an output and show a picture with much less than 100 (or even 20) >>> milliseconds skew. >> >> Maybe they are exploring human perception at this level and need >> equipment faster than human perception in order to measure it accurately? >> > > Yes, later posts (or at least, posts that I read later) seem to suggest > that. Still, it is pointless to consider timing that is faster than the > screen can actually handle, or to measure timings to a resolution that > is just noise. So 100 millisecond timing would be too rough for > measuring reactions, but 10 millisecond timing should be accurate enough > and at the limit for a good gaming screen. Windows game engines should > cope with that, combined with USB 2.0 peripherals for input/output. I'm not sure what you have read in this thread and what you *haven't* read. There are at least two viable ideas on the table. One is Larkin's initial idea of using a photocell to *measure* when the image appears (dependent on the monitor presenting an image all at once, so may still have an issue of partial image exposure) and the other idea is to modulate the back lighting which may be much more responsive, in particular if it is LED based. In a laptop the backlight modulation may work perfectly or may suffer from software delays. In a desktop monitor there may be a need for a hardware modification, but has the potential to be an otherwise perfect solution with 1 ms time accuracy easily. -- Rick C
[toc] | [prev] | [next] | [standalone]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Date | 2017-06-27 06:47 +0200 |
| Message-ID | <oisnph$5a4$1@dont-email.me> |
| In reply to | #465710 |
On 26/06/17 18:41, rickman wrote: > David Brown wrote on 6/26/2017 4:31 AM: >> On 23/06/17 16:58, rickman wrote: >>> David Brown wrote on 6/23/2017 9:20 AM: >>>> On 23/06/17 05:14, John Larkin wrote: >>>>> On Thu, 22 Jun 2017 19:50:07 -0700, Don Y >>>>> <blockedofcourse@foo.invalid> wrote: >>>>> >>>>>> On 6/22/2017 7:15 PM, John Larkin wrote: >>>>>>> >>>>>>> >>>>>>> Today a couple of guys literally walked up to our place and rang the >>>>>>> doorbell, looking for help. They are medical types who know >>>>>>> basically >>>>>>> nothing about electronics. >>>>>>> >>>>>>> They want to plop a still image on a PC screen and simultaneously >>>>>>> trigger some external gear. They would like those to be >>>>>>> coincident to >>>>>>> within maybe a millisecond. This will be a Windows machine, hardly a >>>>>>> realtime OS. I don't think I could load a screen and simultaneously >>>>>>> bang a serial port pin, or some USB device, accurate to a >>>>>>> millisecond. >>>>>>> Well, probably not. >>>>>> >>>>>> What is "looking at" the still image? >>>>> >>>>> A person. And maybe my photodiode in the corner. >>>>> >>>>> How about 1 millisecond? That's their suggestion, but then they are >>>>> not electronic guys, and their idea hasn't been tested yet, so nobody >>>>> knows what really matters. >>>>> >>>> >>>> Ask them to bring along this person who can view an image in 1 >>>> millisecond, or who can see a skew of 1 millisecond between an image >>>> and >>>> the output. >>>> >>>> Then ask them to bring along a screen that can show an image in 1 >>>> millisecond. Maybe ask them to show you a 1000 frames per second movie >>>> on it, and ask their test user to distinguish between a 1000 frames per >>>> second film and a 500 frames per second film. >>>> >>>> >>>> Then explain to them that a good rule of thumb for "appears to be >>>> simultaneous" for a single event is a timing within 100 milliseconds, >>>> not 1 millisecond. For high-speed action (like a fast computer game), >>>> 20 milliseconds is the fastest timing you will ever need to consider. >>>> >>>> >>>> Once they are in the land of reality, even a Windows PC should be able >>>> to set an output and show a picture with much less than 100 (or even >>>> 20) >>>> milliseconds skew. >>> >>> Maybe they are exploring human perception at this level and need >>> equipment faster than human perception in order to measure it >>> accurately? >>> >> >> Yes, later posts (or at least, posts that I read later) seem to suggest >> that. Still, it is pointless to consider timing that is faster than the >> screen can actually handle, or to measure timings to a resolution that >> is just noise. So 100 millisecond timing would be too rough for >> measuring reactions, but 10 millisecond timing should be accurate enough >> and at the limit for a good gaming screen. Windows game engines should >> cope with that, combined with USB 2.0 peripherals for input/output. > > I'm not sure what you have read in this thread and what you *haven't* > read. There are at least two viable ideas on the table. One is Larkin's > initial idea of using a photocell to *measure* when the image appears > (dependent on the monitor presenting an image all at once, so may still > have an issue of partial image exposure) I don't think this is viable, for millisecond timing, precisely because as far as I know monitors do not present the whole image at once. > and the other idea is to > modulate the back lighting which may be much more responsive, in > particular if it is LED based. In a laptop the backlight modulation may > work perfectly or may suffer from software delays. In a desktop monitor > there may be a need for a hardware modification, but has the potential > to be an otherwise perfect solution with 1 ms time accuracy easily. > Switching backlighting like this is much more realistic way to show a picture very rapidly, and getting 1 ms timing accuracy should not be a problem for the hardware. It could still be a challenge if you are trying to use the Windows PC in the timing, but not for external hardware (a microcontroller that turns on the backlight, then measures the time until someone presses a button, for example). I still see it as pointless resolution if people are involved, but I am not the customer here, and the customer is always right!
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-06-27 14:07 -0400 |
| Message-ID | <oiu6m8$r4f$1@dont-email.me> |
| In reply to | #465810 |
David Brown wrote on 6/27/2017 12:47 AM: > On 26/06/17 18:41, rickman wrote: >> David Brown wrote on 6/26/2017 4:31 AM: >>> On 23/06/17 16:58, rickman wrote: >>>> David Brown wrote on 6/23/2017 9:20 AM: >>>>> On 23/06/17 05:14, John Larkin wrote: >>>>>> On Thu, 22 Jun 2017 19:50:07 -0700, Don Y >>>>>> <blockedofcourse@foo.invalid> wrote: >>>>>> >>>>>>> On 6/22/2017 7:15 PM, John Larkin wrote: >>>>>>>> >>>>>>>> >>>>>>>> Today a couple of guys literally walked up to our place and rang the >>>>>>>> doorbell, looking for help. They are medical types who know >>>>>>>> basically >>>>>>>> nothing about electronics. >>>>>>>> >>>>>>>> They want to plop a still image on a PC screen and simultaneously >>>>>>>> trigger some external gear. They would like those to be >>>>>>>> coincident to >>>>>>>> within maybe a millisecond. This will be a Windows machine, hardly a >>>>>>>> realtime OS. I don't think I could load a screen and simultaneously >>>>>>>> bang a serial port pin, or some USB device, accurate to a >>>>>>>> millisecond. >>>>>>>> Well, probably not. >>>>>>> >>>>>>> What is "looking at" the still image? >>>>>> >>>>>> A person. And maybe my photodiode in the corner. >>>>>> >>>>>> How about 1 millisecond? That's their suggestion, but then they are >>>>>> not electronic guys, and their idea hasn't been tested yet, so nobody >>>>>> knows what really matters. >>>>>> >>>>> >>>>> Ask them to bring along this person who can view an image in 1 >>>>> millisecond, or who can see a skew of 1 millisecond between an image >>>>> and >>>>> the output. >>>>> >>>>> Then ask them to bring along a screen that can show an image in 1 >>>>> millisecond. Maybe ask them to show you a 1000 frames per second movie >>>>> on it, and ask their test user to distinguish between a 1000 frames per >>>>> second film and a 500 frames per second film. >>>>> >>>>> >>>>> Then explain to them that a good rule of thumb for "appears to be >>>>> simultaneous" for a single event is a timing within 100 milliseconds, >>>>> not 1 millisecond. For high-speed action (like a fast computer game), >>>>> 20 milliseconds is the fastest timing you will ever need to consider. >>>>> >>>>> >>>>> Once they are in the land of reality, even a Windows PC should be able >>>>> to set an output and show a picture with much less than 100 (or even >>>>> 20) >>>>> milliseconds skew. >>>> >>>> Maybe they are exploring human perception at this level and need >>>> equipment faster than human perception in order to measure it >>>> accurately? >>>> >>> >>> Yes, later posts (or at least, posts that I read later) seem to suggest >>> that. Still, it is pointless to consider timing that is faster than the >>> screen can actually handle, or to measure timings to a resolution that >>> is just noise. So 100 millisecond timing would be too rough for >>> measuring reactions, but 10 millisecond timing should be accurate enough >>> and at the limit for a good gaming screen. Windows game engines should >>> cope with that, combined with USB 2.0 peripherals for input/output. >> >> I'm not sure what you have read in this thread and what you *haven't* >> read. There are at least two viable ideas on the table. One is Larkin's >> initial idea of using a photocell to *measure* when the image appears >> (dependent on the monitor presenting an image all at once, so may still >> have an issue of partial image exposure) > > I don't think this is viable, for millisecond timing, precisely because > as far as I know monitors do not present the whole image at once. > >> and the other idea is to >> modulate the back lighting which may be much more responsive, in >> particular if it is LED based. In a laptop the backlight modulation may >> work perfectly or may suffer from software delays. In a desktop monitor >> there may be a need for a hardware modification, but has the potential >> to be an otherwise perfect solution with 1 ms time accuracy easily. >> > > Switching backlighting like this is much more realistic way to show a > picture very rapidly, and getting 1 ms timing accuracy should not be a > problem for the hardware. It could still be a challenge if you are > trying to use the Windows PC in the timing, but not for external > hardware (a microcontroller that turns on the backlight, then measures > the time until someone presses a button, for example). > > I still see it as pointless resolution if people are involved, but I am > not the customer here, and the customer is always right! It is not pointless if you are trying to *measure* the responsiveness of the eye or other aspects of perception. Neurons are capable of conveying images to the brain pretty quickly. Then there are many aspects of how the brain interprets the images. If you want to measure someone running the 100 meter sprint, you aren't going to use a watch that is only capable of 1 second accuracy even though it takes some 10 seconds to run. If you don't know the range of what you are trying to measure, I don't think 1 ms is a bad place to start. I think the complaint should be that 1 ms is hard to do easily rather than 1 ms not being useful. -- Rick C
[toc] | [prev] | [next] | [standalone]
Page 1 of 4 [1] 2 3 4 Next page →
Back to top | Article view | sci.electronics.design
csiph-web