LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use 8-pin DIN connector in LabVIEW

Hi

 

I want to connect a light sensor (PASCO CI-6504A) with a 8-pin DIN connector to the analog ports of an NI-USB 6002 in order to measure the light intensity of an LED. I am unfamiliar with what each pin is supposed to do and how to connect it to the analog terminals of the daq device. Are there any resources or help available that can show me how to get a direct lux reading or take the voltage signal and convert it to light intensity? 

0 Kudos
Message 1 of 4
(3,766 Views)
0 Kudos
Message 2 of 4
(3,748 Views)

Thank you for your reply Dennis, I did not get the 3rd page of that manual with the connector specifications when I received the device.

 

I was able to connect the sensor and read the voltage output through LabVIEW. Do you have any recommendations on how to begin writing the voltage output to a measurement file once the output goes over a certain amount/threshold? Specifically, I have a LED circuit that I want the light sensor to begin recording and logging measurements once I turn the light on. Currently, I have a VI where I can manually turn on the LED but the light sensor continuously logs the voltage output regardless of value (the voltage output of the light sensor reads 0.002 in (assumed) dark room of no ambient light so I would like it to log the voltage output once it reaches over that amount). I have tried the triggering function but haven't had any success with my current VI which is attached to this reply.

 

Thank you for any help again

0 Kudos
Message 3 of 4
(3,689 Views)

Take a blank piece of paper and a pencil.  Write down what you want to happen, including such things as how often you want to read the light intensity, a time sequence of what you expect to happen (include the LED switch, the output from light intensity readings, the criterion you use to decide when to start writing data to disk, how you decide when to stop writing data to disk, how you stop the program.

 

Now think about Data Flow.  Think about what LabVIEW structures you would use for a task that you repeat at regular intervals.  What structure would you use to "make a decision" (like whether or not to save data)?  How do you determine the sequence of (program) events?

 

If you have no clue how to do this, spend an hour or so viewing the LabVIEW tutorial material listed in the upper right part of the Forum main page.  Google the White Paper whose title starts "Learn 10 Functions in NI-DAQmx ...", don't use Dynamic Wires, and try to avoid using Express VIs.

 

Once you've done all that, your program will probably work.  If not, post the revised code and we'll make more suggestions.

 

Bob Schor

0 Kudos
Message 4 of 4
(3,673 Views)