LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to measure ambient light Sensor functionality??

Thank you very much for reply...

May be I am lacking of lots of knowledge....

Actually I asked to design a window  on front panel in order to see numeric value which is change accordingly  the light intensity means if full light  then value should be maximum and if its dark then value should be 0 and it varied according to the light intensity.

We are using photo cell..And I have to start from beginning and I have no idea about how to design this and which kind of software is needed..

Will you please guide me that which driver I have to download and what the information I should collect in order to start designing of vi.

Thank you very much for understanding......

0 Kudos
Message 11 of 19
(1,098 Views)

Okay, before you start with any software, you need to find out how you connect the Photo cell to the PC.

Who has made the Photo cell ?

Does is give a voltage out ?

Does it have a RS232 connection ?

Does it have a USB connection ?

0 Kudos
Message 12 of 19
(1,097 Views)

Also, once you answer the questions DKfire asked, you will need to learn some LabVIEW. There are a bunch of free LabVIEW lessons on the NI site. From your LEGO analogy it sound like your light sensor generates an analog voltage. Depending on the voltage all you need to do what you want is an in-expensive DAQ like a USB 6008 or 6009. Unless of course you already have some DAQ equipment. (that question has been asked at least twice). Then you really do not need any special drivers besides DAQmx. Things you will need to know about LabVIEW before you start the Front Panel and Block Diagram are:

for loops,shift registers and arrays, and for starters you could get away with using DAQ express. I think if you learn all those things you should be able to continuously pull in the analog signal, stick it in an array, make decisions based on the analog voltage level and then out put an action based on the decision.

 

0 Kudos
Message 13 of 19
(1,090 Views)

A correction to my reply, you will need a while loop to continuously pull in the analog signal, and my suggestion for a beginner to try using DAQ assist, you will need to study up on Dynamic Data and how to convert from Dynamic Data.  So once you study up on LabVIEW basics, you can drop DAQ assist into the while loop and configure it to acquire your data, the rest should be easy.

 

Alan

0 Kudos
Message 14 of 19
(1,086 Views)

Hello,

thank you for your guidance. I have refered tutorials regarding to DAQ and also Modbus..

My case is regarding to transducer.

And ambient light is implement in another device and we are communicate with that device by using RS485...

My question is now suppose I want to measure all the data regarding to ambient light sensor in VI front panal then I should have sufficient information about registers, starting address of register ,and from that I have to implement modbus and then I have to use DAQ in order to measure data.

Is this right or I should know any thing else.

Thank you for your reply.

0 Kudos
Message 15 of 19
(1,068 Views)

And why do you think you need DAQ?

What will you be using the DAQ for?

0 Kudos
Message 16 of 19
(1,065 Views)

Thank you for reply..

No I don't have idea about this I thought DAQ should be necessary in order to communicate with other devices like transducer...

OK it means I don't need DAQ and by using Modbus I can directly communicate with Ambient light sensor and can measure the intensity..

In my company's software I can see the values are changes according to intensity of light and I asked to do same in front panel of labview so it means I have to call Ambient light register from That software(device) by using modbus.That device is connected with PC by using RS485 cable.

Am I right Or any thing else should I consider..???

Thank you very much for your reply....

0 Kudos
Message 17 of 19
(1,060 Views)

First I will give you some ,'s, it seems that you don't have too many of them.

 

Second, so fare you have only talk about a decive connected to the PC through RS485.

So as long as you know modbus and the device information you should be good to go. 

0 Kudos
Message 18 of 19
(1,055 Views)

Thank you for reply...

now everything looks ok...

but i got time out error after some time from second modbus write in my vi.

can you please tell me that how can i avoid that time out error..??

Thank you...

0 Kudos
Message 19 of 19
(1,041 Views)