LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control lightbulb

Hello everyone, 

Can someone please help me. How can I control a light bulb in labview? 

Because of the low voltage I need to use a relay. Can I use the single keyes relay of 5v? 

And how do I connect this all? 

 

0 Kudos
Message 1 of 4
(2,608 Views)
0 Kudos
Message 2 of 4
(2,603 Views)

Hi raghnie,

 

to control an external device you need some DAQ devices.

Which one do you plan to use?

 

What is a "single keyes relay of 5v"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(2,599 Views)

Hi raghnie!

As GerdW said, you need to use a DAQ device in order to use digital and analog Inputs/Outputs. Using a DAQ, you will be able to read a current state of the light bulb and use that information for writing a signal to the light bulb in order to control it from LabVIEW.

All you have to do is use the DAQ Outputs to write the signal to the bulb and use the DAQ Inputs to read the current state of the bulb. Also you have to use the relay as a power amplifier stage.

 

I hope this information will help you 🙂

Staff Technical Support Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,551 Views)