Dear all,
I am trying to measure the time between the activation of 2 light gates (response time <500us) with a Visual Basic app. The precision I need is in the order of 10ms. I am trying to use a USB-6003 that I already have. What I have done so far is to program a Timer at 1ms elapsed time and read inside the digital channels where I have my light gates connected. But the time I get is not realistic, the loop is too slow (probably ReadSingleSampleMultiLine is slowing down the loop).
readData = myDigitalReader.ReadSingleSampleMultiLine()
LG1_Flag_Temp = readData(0)
LG2_Flag_Temp = readData(1)
I could also connect the light gates to the analogue input (Sample rate up to 100kS/s in USB-6003), but I don't know how to measure the time between the two rising edges doing it like this.
Could anyone give me some advice please?