LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wie kann ich ereignisgesteuerte Stopuhr programmieren?

Hi,

 

wie kann ich eine Stoppuhr programmieren, die auf einen externen positiven Spannungssprung am DIO0 reagiert und startet und durch einen Sprung von 5V auf z.B. 3V am Analogeingang AI0  stoppt und die Zeit für eine spätere Auswertung speichert?

 

Martin

0 Kudos
Message 1 of 41
(4,892 Views)

Sorry ich habe vergessen zu sagen was für eine Hardware ich genau nutze. Ich nutze die Karte Rio 7833R und die Box SCB 68. Die Zeiten die ich messen möchte liegen typischerweise so um di 200µs.

 

Martin

0 Kudos
Message 2 of 41
(4,886 Views)

Seems your hardware has a FPGA.

First thing to do write code that can read DIO0 and detect transitions.

Second thing to do write code to read AI0 and detect voltage jumps

Third thing to do write code to store the time to be measured

Fourth thing to do write code to measure the time between a DIO transition and a voltage jump on the AI0

Regards,
André (CLA, CLED)
0 Kudos
Message 3 of 41
(4,872 Views)

Thanks for the help!

 

I tried this but it didn't work. Please can you take a look at the vi send_comand.vi from my Project? Please can you maybe correct my code? I try and try but it wouldn't work how I want that it should work.

 

Martin

0 Kudos
Message 4 of 41
(4,868 Views)
0 Kudos
Message 5 of 41
(4,866 Views)
I'm unable to map the requirements stated in the first post to the code you posted. There is no detection of DIO transitions, no code to detect voltage jumps. No code to measure time between two events. No code to send the measured time via DMA.FIFO.
Regards,
André (CLA, CLED)
0 Kudos
Message 6 of 41
(4,863 Views)

Sorry !

 

That was teh Wrong Version of my work. I work on twice PC one for LabVIEW an other Electonicthings and the other for Internet. So now it should be the right Version. Please can you maybe look on this Version in the VI send_command.vi

 

Thanks and sorry that I want help and send the wrong Version of code.

 

Martin!

0 Kudos
Message 7 of 41
(4,861 Views)
I can't see the difference in send_command.vi.
Regards,
André (CLA, CLED)
0 Kudos
Message 8 of 41
(4,835 Views)

Why not?

 

Isn't there a squenz with the dedection of DIO0?´I could not understand why this is not submitted. I try it again to submit. The last try

 

thanks

 

Martin

0 Kudos
Message 9 of 41
(4,830 Views)
0 Kudos
Message 10 of 41
(4,827 Views)