From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Discussions au sujet des autres produits NI

annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

counter for Led

Hello,

 

I am a beginner in labview and I  want measure the time the LED spend on and off.

 

thank you

0 Compliments
Message 1 sur 4
2 400 Visites

Hello rabab,

 

Can you provide us more context?

What LED are you talking about?
Is it a boolean indicator? Is its value set from a measurement or a calculus?

 

Don't hesitate to join your code.

 

Have a nice day.

Kind regards,

Armando

0 Compliments
Message 2 sur 4
2 381 Visites

hello,

thank you for replying,

the led is of type boolean. I want to make a connection between step7 and labview,  when I activate the PLC entry the led turn On  and when I disable the LED turn off.

I want to measure how much time the LED stays on.

sorry for my bad English.

 

0 Compliments
Message 3 sur 4
2 377 Visites

Hello rabab,

 

I would suggest you to use an event structure for doing it (http://zone.ni.com/reference/en-XX/help/371361P-01/glang/event_structure/).

You can start a timer (VI Counter) when the boolean is changing its value and then stop it once again at second value change.

 

Good luck!

Kind regards,

Armando

 

0 Compliments
Message 4 sur 4
2 335 Visites