LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem collecting laser voltages

I am unable to obtain voltages from my laser.  The program should should store distance data for 3 blades of a wind turbine test rig.

 

I am using the following: 

Sick DT50 laser powered by 6V DC connected via USB6218.

Samples to read 10

Rate 100Hz

1-6V

 

I am only getting a waveform with 0.02V max which I guess is just noise/error signal.

 

Any suggestions on what signals I should be getting and how to convert the voltages to distances?

 

0 Kudos
Message 1 of 2
(2,066 Views)

Do you even know your laser works? (have you burned yourself yet?) I don't even see anywhere in the BD to turn it on.

 

What voltages do you want to turn into distances? That makes no sense. In fact, from what you've shown here, I can't tell what data you're trying to work with.

 

Frankly, it looks like you have written a program to do your entire project before you even know if Step 1 works. Concentrate on that, once it works OK, substitute real DAQ VIs for the DAQ Assistant to lower overhead, increase efficiency, and teach you what you're really doing here. Then make that part a separate VI, use it as a subVI in your project - at the moment, on my computer the whole thing takes up about 12 screens (3 across x 4 down) and that's a real pain to debug with all the scrolling. In turn modularize the rest and use FOR loops (you've got a whole bunch of repeated code), and this will make it much easier to modify/fix when your professor tells you to. (sorry, you sound like a student, scratch that last clause if not)

 

(Oh, and a personal pet peeve,  learn how to spell - there are some of us that excessive misspellngs just drive crazy.)

 

Cameron

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 2 of 2
(2,038 Views)