Link to home
Start Free TrialLog in
Avatar of MrNov
MrNov

asked on

Camera Tester

ok I'm going quite well with the course. But to save me a bit of time, can you tell me how I can get 5 text boxes/labels to display a different time value, to time has to be accutate up to 10,000th of a second. Basicly as i  mentioned in my earlier comment i'm doing a program to time a cameras shutter speeds and run time.
I need 2 boxes to display the run time of the shutter and 3 boxes to display the shutter speeds. i can explain in more detail how it will all work if needed.

Can i have 5 of VB's timers to do it or is there any easier way to time this at these speeds and very very accuratly??

Andy :-)
Avatar of PNJ
PNJ

The standard VB timers are only accurate to the speed of the real time clock in your PC. This value is about 18 msec (ie one tick per 0.02 (ish) seconds) depending on the operating system - so you're way off the 0.0001 second mark.

There's also a Multi-Media Timer (see  http://www.vbaccelerator.com/codelib/ssubtmr/hirestmr.htm) but this only says it'll do up to 1 msec (0.001) - still 10 times too slow.

Can I have a bit more information as to what you're trying to achieve?
Avatar of MrNov

ASKER

The prject is to write a program that will A) measure how long it takes shutter to open and close and B) the spped of the shutter ie.
 the probe I'm making will have five light sensors (will only worry about 3 of them at the mo as only 3 are used at any one time) set out in a line

               3    2    1
               *    *    *
RUN TIME,
when cell 1 recieves light it will starts timer - A, and when it stops recieving light it starts timer B.

When cell 3 recieves light it stops timer A and when it stops recieving light it stop timer B.

SHUTTER SPEED
When cell 1 recieves light it starts timer 3, when it stops recieving light it stops timer 3.....
and the same on cells 2 and 3.

If possible i would like all this to be done on one screen and one program, but it can be done on two screens and done seperatly.

Hope this is enough info for the help i need.

Andy
 
ASKER CERTIFIED SOLUTION
Avatar of PNJ
PNJ

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MrNov

ASKER

I was told on here that I could possibly use the "hand shake" routine to reconise the start/stop of the switches, so i was just going the make the probe with 5 light sensative diodes that will send a posative signal to the pc through the serial port. but i also have to use an A/D converter to work out the exposure side of the program, but at the moment i want to concentraite on the run time and shutter speeds.......1 step at a time...lol


Andy
Avatar of DanRollins
Hi MrNov,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept PNJ's comment(s) as an answer.

MrNov, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer