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.
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.
le 04-18-2019 09:27 AM
Hello,
I am a beginner in labview and I want measure the time the LED spend on and off.
thank you
le 04-19-2019 04:58 AM
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
le 04-19-2019 08:03 AM
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.
le 04-23-2019 04:31 AM
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