Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #465286 > unrolled thread

PC timing problem

Started byJohn Larkin <jjlarkin@highlandtechnology.com>
First post2017-06-22 19:15 -0700
Last post2017-06-24 23:36 -0700
Articles 20 on this page of 67 — 26 participants

Back to article view | Back to sci.electronics.design


Contents

  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 2 of 4 — ← Prev page 1 [2] 3 4  Next page →


#465881

FromLasse Langwadt Christensen <langwadt@fonz.dk>
Date2017-06-27 11:44 -0700
Message-ID<159daa5b-bf77-4dd7-aaf1-8af3bb46005c@googlegroups.com>
In reply to#465877
Den tirsdag den 27. juni 2017 kl. 20.07.48 UTC+2 skrev rickman:
> 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.

human reaction time to light stimuli is ~190ms, sound ~160ms 
in 100m sprints and the like you get a false start if you react in less 100ms

-Lasse

[toc] | [prev] | [next] | [standalone]


#465957

Fromrickman <gnuarm@gmail.com>
Date2017-06-28 02:11 -0400
Message-ID<oivh40$in6$1@dont-email.me>
In reply to#465881
Lasse Langwadt Christensen wrote on 6/27/2017 2:44 PM:
> Den tirsdag den 27. juni 2017 kl. 20.07.48 UTC+2 skrev rickman:
>> David Brown wrote on 6/27/2017 12:47 AM:
>>>
>>> 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.
>
> human reaction time to light stimuli is ~190ms, sound ~160ms
> in 100m sprints and the like you get a false start if you react in less 100ms

Who said anything about reaction times?  We don't know what they are 
measuring really.  It could be something that doesn't require the person to 
push a button.  I can't imagine that hasn't been studied to death.

-- 

Rick C

[toc] | [prev] | [next] | [standalone]


#465960

FromDavid Brown <david.brown@hesbynett.no>
Date2017-06-28 09:03 +0200
Message-ID<oivk4o$uu3$1@dont-email.me>
In reply to#465877
On 27/06/17 20:07, rickman wrote:
> 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.

Yes, I understand that.  But 1 ms accuracy is noise here - both for
reaction time measurements, and for sprinters.  And I know that in
top-level sprint races, people take timings with 1 ms resolution - but
it is pure noise - pure luck.  Even at the 10 ms level it is noise -
there are tens of milliseconds differences in the times that each
competitor hears the starting gun.

For measuring reaction times to visual stimulus, 10 ms resolution is
more than accurate enough.

(Having said that, now that you have mentioned neurons - if the customer
here is measuring electrical activity in neurons as well as the time
taken for a reaction, then 1 ms resolution is appropriate.)

> 
> 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.
> 

1 ms is maybe not a bad place to start, I agree.  But if a customer came
to me and said "I want a 1 ms accurate timing of people's reaction to a
picture on a screen", I would suggest that they lower their requirements
to a more realistic 10 ms.

[toc] | [prev] | [next] | [standalone]


#465963

Fromrickman <gnuarm@gmail.com>
Date2017-06-28 03:53 -0400
Message-ID<oivn28$6pv$1@dont-email.me>
In reply to#465960
David Brown wrote on 6/28/2017 3:03 AM:
> On 27/06/17 20:07, rickman wrote:
>> 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.
>
> Yes, I understand that.  But 1 ms accuracy is noise here - both for
> reaction time measurements, and for sprinters.  And I know that in
> top-level sprint races, people take timings with 1 ms resolution - but
> it is pure noise - pure luck.  Even at the 10 ms level it is noise -
> there are tens of milliseconds differences in the times that each
> competitor hears the starting gun.
>
> For measuring reaction times to visual stimulus, 10 ms resolution is
> more than accurate enough.
>
> (Having said that, now that you have mentioned neurons - if the customer
> here is measuring electrical activity in neurons as well as the time
> taken for a reaction, then 1 ms resolution is appropriate.)
>
>>
>> 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.
>>
>
> 1 ms is maybe not a bad place to start, I agree.  But if a customer came
> to me and said "I want a 1 ms accurate timing of people's reaction to a
> picture on a screen", I would suggest that they lower their requirements
> to a more realistic 10 ms.

Even before you asked how large their budget was?  I don't try to change my 
customer's expectations unless there is a clear reason.  This is not one 
that can't be met, so I would just give them what they asked for.  They are 
in the business of being customer, not me.

-- 

Rick C

[toc] | [prev] | [next] | [standalone]


#465968

FromDavid Brown <david.brown@hesbynett.no>
Date2017-06-28 11:28 +0200
Message-ID<oivsk6$oka$1@dont-email.me>
In reply to#465963
On 28/06/17 09:53, rickman wrote:
> David Brown wrote on 6/28/2017 3:03 AM:

>> 1 ms is maybe not a bad place to start, I agree.  But if a customer came
>> to me and said "I want a 1 ms accurate timing of people's reaction to a
>> picture on a screen", I would suggest that they lower their requirements
>> to a more realistic 10 ms.
> 
> Even before you asked how large their budget was?  I don't try to change
> my customer's expectations unless there is a clear reason.  This is not
> one that can't be met, so I would just give them what they asked for. 
> They are in the business of being customer, not me.
> 

Clearly this is not something that can be boiled down to a few fixed
rules that can be described in a paragraph on a Usenet post - how you
handle customer requests is going to vary greatly between customers.

In general, however, I would say that my aim with a customer is to have
them end up with the most appropriate solution for their needs.  It is
rare that this matches 100% with what they initially ask for - customers
generally have a rough idea of what they are look for, but are missing
many of the details and subtleties.  Sometimes they walk out of the
initial brainstorming meetings with a completely different solution from
the own they specified when they came in.

In this case, I would be likely to say that 1 ms timing is not possible
on a Windows machine with a normal screen, but 10 ms timing is
achievable with a quality gamers screen.  If they respond with "we have
lots of money, we want 1 ms" then I would /still/ say it is impossible
on a Windows machine with a normal screen.  But I would be happy to do
them a Linux laptop (using the backlight trick discussed elsewhere) as
an alternative.  If they respond with "we have lots and /lots/ of money,
and we want 1 ms timing on any Windows system with normal screens" -
then I would tell them we can't do it and I don't expect anyone else to
do it either.

Some development companies work on the basis of getting a detailed
specification from a customer, giving them an offer for the time and
cost of implementing it, then do the job.  For us, and for our "typical"
customer, the contact usually starts a lot earlier during idea,
prototyping, and specifications stages.  My customers expect me to tell
them "your idea sucks" (but politely, of course!) if necessary.

[toc] | [prev] | [next] | [standalone]


#465411

FromDon Y <blockedofcourse@foo.invalid>
Date2017-06-23 12:05 -0700
Message-ID<oijojh$6vq$1@dont-email.me>
In reply to#465301
On 6/22/2017 8:14 PM, John Larkin wrote:
> On Thu, 22 Jun 2017 19:50:07 -0700, Don Y
> 
>>> 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.

Light pens (of various forms) can sense the bright spot on the screen.

A traditional light pen was just a photodiode that caused the contents
of the CRT controller's (CRTC) "refresh address" (the display row,column
being driven onto the CRT's pins at that INSTANT) to be captured in an
internal register (and the CPU informed of this event).

Arcade "shooter" games mounted a photodiode in the barrel of a
plastic "gun" and would overdrive ALL of the screen video (resulting
in a bright flash) at the instant the plastic gun's trigger was pressed
(i.e., the player was SHOOTING something) to effect this sort of capture
event.

Vector graphic displays (e.g., Imlac PDS-1) didn't have an inherent raster
that would allow the entire display to be "stimulated" in the hope of
stumbling across the lightpen's photodiode so, instead, they required the
user to drag a tracking "cross" to the point of interest and signify that
event by actuating a button (press the pen against the glass).  Software
in the terminal would track the output of the photodiode as it was *drawing*
the various arms of the cross to detect if the pen was being moved to the
left of the cross's current position, right, up or down -- and the position
of the cross updated in real time to reflect that.

Note that in each of these, there is a tight coupling between the display's
"drive signals" (the raster in the traditional CRT and the deflection amplifer
voltages in the vector display) and the signal detected from the light pen.

You want the opposite case:  you want the software to be able to dictate a
specific point in time to the external sensor.  You know *where* the sensor
will be located.  But, in the PC architecture, you don't know *when* the
signal will make it out to the actual "display".

[Notice the TV's in a department store all *trying* to display the same CONTENT
but with *noticeable* time skews in their presentation!]

In theory, you should be able to perceive a "spot" as small as the visible
field of the photodiode conditioned by the persistence of the display
"phosphor".  And, the skew between the appearance of the dot and its
detection should only be determined by the delay in your photodiode signal
processing.

In reality, the time at which the dot appears on the screen will be dictated by
many factors:
- when is signal containing its information passed out to the video interface
- what delays are introduced in the (external?) display hardware
- time it takes the display to visually respond to the signal
- time it takes the photodiode to detect it

Typical refresh rates are in the 60Hz region.  So, any dot that persists
for less than ~16ms is not guaranteed to EVER appear on the display!

And, as you don't know the point on the screen that the "current display
signal" is painting happens to be at any instant, you may be unfortunate
to discover that it *just* moved past that portion of the display that
your sensor is monitoring.  So, you have to wait for another frame
(or, at best, *field*) to be painted to hit that point, again.

[unless you take the video game approach and FLASH the entire display
and let the photodiode monitor the entire frame -- easier to do this
electrically than optically]

In that case, assuming you can reserve a special "color" (i.e., combination
of video signal levels) for your "flash", you could detect it as soon as the
signals propagated out of the display (software) subsystem.

If you can't reserve a "color", then you'll have to resort to looking at a
group of time-contiguous display signals to deduce "hey, video is consistently
at <whatever> signal level across multiple lines/columns/fields/frames and
infer that the entire screen is being flashed.

Nowadays, the GPU (not the CPU) paints the display so there's an added level
of decoupling from the software.  SAYING you want to paint the display bright 
chartreuse doesn't mean it will happen *now*.

[The DirectX libraries might give some finer-grained assurances]

Point of all this is to loosen your timing constraint.  Can a *human* actually
perceive the events you (they) are trying to specify?

[Some idea of what they're trying to do might help]

>> 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.

No.  The CPU (without hooks into the video hardware) can't guarantee
that what its ASKING to be painted on the display will actually be
"displayed" at any particular time.

The bottom half of the display might be updated before the refresh comes
around to the top half.  Or, the other way around.  The CPU can't control
the display's *raster*.

>> 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.

Again, if humans are the intended receptors of this information, I
challenge them to differentiate a 1ms event from a 10ms event;

            *POPCORN*

or, recognized that its been skewed by 20ms!

Simple (unreliable) test:  write a piece of code that paints the display
white, waits 16ms (to ensure its propagated to a 60Hz display device)
and then paints it black.  Then, add delays before and after this event
and see if they can tell the difference.

>> 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.

For video hardware that supports a CLUT, you can just update the CLUT
to signify that "event", then restore it to its previous state to
"undo".

>> 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.

Does it have to be an *image*?  Presumably, they'd want to be able to CHANGE
the image?

Sure sounds like they're specifying 4.72396K ohm resistors...

>>> 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]


#465294

Fromwhit3rd <whit3rd@gmail.com>
Date2017-06-22 19:56 -0700
Message-ID<99b85156-e28d-45f8-bccf-9bebd03b7cd5@googlegroups.com>
In reply to#465286
On Thursday, June 22, 2017 at 7:15:09 PM UTC-7, John Larkin wrote:
> Today a couple of guys...
>...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. 

So, what's the problem?  Just put any old video out to a screen, with the
backlight boogered so it only flashes on at the critical time.

All modern displays have slow-changing pixels, but the LED backlight can
be altered faster than a millisecond.

[toc] | [prev] | [next] | [standalone]


#465302

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2017-06-22 20:16 -0700
Message-ID<5u1pkcp4on18l51592rtnet74hkd9n559o@4ax.com>
In reply to#465294
On Thu, 22 Jun 2017 19:56:08 -0700 (PDT), whit3rd <whit3rd@gmail.com>
wrote:

>On Thursday, June 22, 2017 at 7:15:09 PM UTC-7, John Larkin wrote:
>> Today a couple of guys...
>>...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. 
>
>So, what's the problem?  Just put any old video out to a screen, with the
>backlight boogered so it only flashes on at the critical time.
>
>All modern displays have slow-changing pixels, but the LED backlight can
>be altered faster than a millisecond.

That might work, if I can get into the backlight circuits somehow. A
serial port pin could switch the backlight on and off and
simultaneously trigger the external gear.



-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#465305

Fromtabbypurr@gmail.com
Date2017-06-22 20:31 -0700
Message-ID<2e6ba083-2b25-4a8c-91e7-fd3c4399983c@googlegroups.com>
In reply to#465302
On Friday, 23 June 2017 04:17:05 UTC+1, John Larkin  wrote:
> On Thu, 22 Jun 2017 19:56:08 -0700 (PDT), whit3rd <whit3rd@gmail.com>
> wrote:
> >On Thursday, June 22, 2017 at 7:15:09 PM UTC-7, John Larkin wrote:
> >> Today a couple of guys...
> >>...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. 
> >
> >So, what's the problem?  Just put any old video out to a screen, with the
> >backlight boogered so it only flashes on at the critical time.
> >
> >All modern displays have slow-changing pixels, but the LED backlight can
> >be altered faster than a millisecond.
> 
> That might work, if I can get into the backlight circuits somehow. A
> serial port pin could switch the backlight on and off and
> simultaneously trigger the external gear.

I suspect that's your only option, you're not going to get 1ms precision from the LCD part of the screen.


NT

[toc] | [prev] | [next] | [standalone]


#465364

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-06-23 10:51 -0400
Message-ID<KV93B.51563$eP5.6325@fx20.iad>
In reply to#465305
On 06/22/2017 11:31 PM, tabbypurr@gmail.com wrote:
> On Friday, 23 June 2017 04:17:05 UTC+1, John Larkin  wrote:
>> On Thu, 22 Jun 2017 19:56:08 -0700 (PDT), whit3rd <whit3rd@gmail.com>
>> wrote:
>>> On Thursday, June 22, 2017 at 7:15:09 PM UTC-7, John Larkin wrote:
>>>> Today a couple of guys...
>>>> ...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.
>>>
>>> So, what's the problem?  Just put any old video out to a screen, with the
>>> backlight boogered so it only flashes on at the critical time.
>>>
>>> All modern displays have slow-changing pixels, but the LED backlight can
>>> be altered faster than a millisecond.
>>
>> That might work, if I can get into the backlight circuits somehow. A
>> serial port pin could switch the backlight on and off and
>> simultaneously trigger the external gear.
> 
> I suspect that's your only option, you're not going to get 1ms precision from the LCD part of the screen.
> 
> 
> NT
> 

ugggh you don't have to get into the backlight circuits, on laptops it's 
an ACPI DMA device, you can flip it on and off near instantly by 
flipping a bit in the memory-mapped IO

[toc] | [prev] | [next] | [standalone]


#465312

FromJoe Chisolm <jchisolm6@earthlink.net>
Date2017-06-23 00:36 -0500
Message-ID<Uo6dnaUU4rp8NdHEnZ2dnUU7-VednZ2d@earthlink.com>
In reply to#465286
On Thu, 22 Jun 2017 19:15:01 -0700, 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. 
> 
> 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?

https://superuser.com/questions/321342/turn-off-display-in-windows-on-command

turn the screen off
load image
turn screen on
assert serial port DTR or some other control signal

If the PC does not have a serial port or parallel port (too many these days)
you could probably trigger something on USB within some reasonable time
frame.  Isochronous endpoints do a transfer every 125 uS.  I'm not a big
windows guy so I'm not sure how you would send a message to a device that
enumerates as a ISO endpoint.  You could probably do it with one of the FTDI
chips.  I think they do ISO end points.  Hack one of those usb to serial
gadgets.

Maybe do a tone burst out the audio port.  Do some level detector to
manage the noise threshold, any signal above that triggers the device.

-- 
Chisolm
Republic of Texas

[toc] | [prev] | [next] | [standalone]


#465318

FromMartin Brown <'''newspam'''@nezumi.demon.co.uk>
Date2017-06-23 08:39 +0100
Message-ID<oiigjt$1ps3$1@gioia.aioe.org>
In reply to#465286
On 23/06/2017 03:15, 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.
> 
> I'm helping them for free, so I don't want to launch some big coding
> or hardware project.

How about doing it the other way around?

Active TV goggles connected to the external hardware and the PC always 
showing the picture. Then the sync can be absolute and realtime.

> 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.

You could do that and add a particular sequence of black white flashes 
to indicate arm/disarm the external gear eg Manchester code.

I'd still have an external big on/off switch though.

-- 
Regards,
Martin Brown

[toc] | [prev] | [next] | [standalone]


#465321

Fromtabbypurr@gmail.com
Date2017-06-23 02:01 -0700
Message-ID<ad248e3b-774a-4a75-89cb-382e982079b0@googlegroups.com>
In reply to#465318
On Friday, 23 June 2017 08:39:48 UTC+1, Martin Brown  wrote:
> On 23/06/2017 03:15, John Larkin wrote:

> > 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.
> 
> You could do that and add a particular sequence of black white flashes 
> to indicate arm/disarm the external gear eg Manchester code.

So let's say you use just 4 bits in your sequence, requiring 4 frame scans. Let's optimisticly imagine that all other system delays are zero. What frame scan rate do you need to get 1ms system response time? Where do you get such a screen?


NT

[toc] | [prev] | [next] | [standalone]


#465328

FromMartin Brown <'''newspam'''@nezumi.demon.co.uk>
Date2017-06-23 10:24 +0100
Message-ID<oiimnu$5r9$1@gioia.aioe.org>
In reply to#465321
On 23/06/2017 10:01, tabbypurr@gmail.com wrote:
> On Friday, 23 June 2017 08:39:48 UTC+1, Martin Brown  wrote:
>> On 23/06/2017 03:15, John Larkin wrote:
> 
>>> 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.
>> 
>> You could do that and add a particular sequence of black white
>> flashes to indicate arm/disarm the external gear eg Manchester
>> code.
> 
> So let's say you use just 4 bits in your sequence, requiring 4 frame
> scans. Let's optimisticly imagine that all other system delays are
> zero. What frame scan rate do you need to get 1ms system response
> time? Where do you get such a screen?

You misunderstand the purpose of the encoding is to allow the screen to 
enable and disable the external hardware that is acting on the image 
appearing flash signal so that you can do it all in software.

Someone else suggested a RaspPi which seems ideally suited to the task.

-- 
Regards,
Martin Brown

[toc] | [prev] | [next] | [standalone]


#465331

Fromtabbypurr@gmail.com
Date2017-06-23 02:38 -0700
Message-ID<9334da24-5bba-4419-b65b-29a0a4e75b86@googlegroups.com>
In reply to#465328
On Friday, 23 June 2017 10:24:18 UTC+1, Martin Brown  wrote:
> On 23/06/2017 10:01, tabbypurry wrote:
> > On Friday, 23 June 2017 08:39:48 UTC+1, Martin Brown  wrote:
> >> On 23/06/2017 03:15, John Larkin wrote:
> > 
> >>> 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.
> >> 
> >> You could do that and add a particular sequence of black white
> >> flashes to indicate arm/disarm the external gear eg Manchester
> >> code.
> > 
> > So let's say you use just 4 bits in your sequence, requiring 4 frame
> > scans. Let's optimisticly imagine that all other system delays are
> > zero. What frame scan rate do you need to get 1ms system response
> > time? Where do you get such a screen?
> 
> You misunderstand the purpose of the encoding is to allow the screen to 
> enable and disable the external hardware that is acting on the image 
> appearing flash signal so that you can do it all in software.
> 
> Someone else suggested a RaspPi which seems ideally suited to the task.

No I don't misunderstand that. It's rather clear it won't hit the required timing spec.


NT

[toc] | [prev] | [next] | [standalone]


#465338

From"Tim Williams" <tiwill@seventransistorlabs.com>
Date2017-06-23 05:38 -0500
Message-ID<oiiqss$3da$1@dont-email.me>
In reply to#465331
<tabbypurr@gmail.com> wrote in message 
news:9334da24-5bba-4419-b65b-29a0a4e75b86@googlegroups.com...
>> You misunderstand the purpose of the encoding is to allow the screen to
>> enable and disable the external hardware that is acting on the image
>> appearing flash signal so that you can do it all in software.
>>
>> Someone else suggested a RaspPi which seems ideally suited to the task.
>
> No I don't misunderstand that. It's rather clear it won't hit the required 
> timing spec.
>

It's not a sampling problem.  Display of video data is, but a single event 
is a single sample anywhere in time, so does not need an obscene refresh 
rate, say.  There was no mention of absolute timing of display-event or 
external-event, just that the two are close together. 

[toc] | [prev] | [next] | [standalone]


#465327

Fromjack4747@gmail.com
Date2017-06-23 02:14 -0700
Message-ID<1a081f5c-7375-47b5-a6f9-50c714c874a5@googlegroups.com>
In reply to#465286
Il giorno venerdì 23 giugno 2017 04:15:09 UTC+2, John Larkin ha scritto:

> 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 images? with what program? why? what they want to do exactly?
does it has to be a Win PC or can be anything else? A raspberry pi for example.
Write down a Python program that will visualize an image on screen and toggle a GPIO pin is kind of easy, I bet that there is already some code out there that does the trick.

Bye Jack

[toc] | [prev] | [next] | [standalone]


#465329

FromReinhardt Behm <rbehm@hushmail.com>
Date2017-06-23 17:34 +0800
Message-ID<oiin3v$mt8$1@dont-email.me>
In reply to#465286
AT Friday 23 June 2017 10:15, 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.
> 
> 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?

This looks like some test for the reaction of a human (?) when presented the 
image.

No ideas, just some pitfalls.

As others have already pointed out, the picture on the monitor will not be 
anything like real time.
First the update from the video generation circuitry to the monitor will 
have a jitter of at least the frame rate (16ms @60Hz). In addition the 
reaction time of the LCD comes on top of that. That will also vary with 
temperature.

But this timing jitter will also be valid for the test person.
Anything where the picture is changed on the screen will have this jitter 
for the test person. Measuring in the 1ms range does not make any sense for 
me.
The only possibility I see would be to manipulate the backlight. But then 
the reaction of the test person will be influenced by the change in 
brightness, too.

-- 
Reinhardt

[toc] | [prev] | [next] | [standalone]


#465413

Fromwhit3rd <whit3rd@gmail.com>
Date2017-06-23 12:18 -0700
Message-ID<0aac3ba0-b8bc-4567-ac11-cd1ab8aef430@googlegroups.com>
In reply to#465329
On Friday, June 23, 2017 at 2:34:26 AM UTC-7, Reinhardt Behm wrote:
> AT Friday 23 June 2017 10:15, John Larkin wrote:
> 
> > 
> > 
> > Today a couple of guys ... 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.

> The only possibility I see would be to manipulate the backlight. But then 
> the reaction of the test person will be influenced by the change in 
> brightness, too.

There's a way around that, with a half-silvered mirror and two monitors, driven
with complementary backlight enable signals.
Or, two projectors (the lamps in those aren't quick to turn on) with some LCD
shutters; probably that could do the deed with mainly COTS equipment behind
a rear-projection screen.

[toc] | [prev] | [next] | [standalone]


#465343

FromJasen Betts <jasen@xnet.co.nz>
Date2017-06-23 11:41 +0000
Message-ID<oiiuq2$kh8$1@gonzo.alcatraz>
In reply to#465286
On 2017-06-23, 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. 

*VGA frame rate is several milliseconds per.  what do they really want?

> 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. 

It seems to me that should be fairly easy (esp. for you) to sample a pixel 
in the VGA raster, trigger off vertical sync.... might need some tuning 
to work reliably.

> 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?

perhaps use an aux output (USB? serial?) to both blank both the RGB signal
and trigger the hardware? 

-- 
This email has not been checked by half-arsed antivirus software 

[toc] | [prev] | [next] | [standalone]


Page 2 of 4 — ← Prev page 1 [2] 3 4  Next page →

Back to top | Article view | sci.electronics.design


csiph-web