LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Intensity VS. Time

I'm just modifying a small program that can turn on the laser diode and take a data using a detector. we have a program that runs this kind of experiment with laser diode and detector are in motion using a motor. However, what I need is to modify this program to run and take data with the source and the detector are not in motion. Therefore, I don't need to use the motor that move the source and the detector. By doing this, I modify the program that we already have. when I play with the program, there is some mistakes that I could not figure out. i do not know how to fix it. To make more clear, I'm using labview 6.0 with hardware of NI-6023E and CB-68LP board.I just need to know what is the problem is?And also, need to know if the program that I
modify is working or not?I attached the modified program.
0 Kudos
Message 1 of 2
(2,557 Views)
Hello,

I�m not sure I understand your application. From you block diagram, it looks like you are turning on a laser with a digital line 3. Then it appears that you are writing some analog input data to a file until the user presses the stop button. When the stop button is pressed it looks like you�re turning off the laser control line. Does this accurately summarize your application?

There were several possible issues I noticed with your VI:

1. The �Laser On/Off� button was connected to the Port Width input of the Digital Line Write VI. I believe this should be connected to the Line State input of this VI. Having this Boolean value connected to the wrong input was not allowing your VI to run. Also, the iteration input of this VI should be connected to t
he iteration counter of the While Loop.

2. I�m not certain of what is being done in the Case Structure attached to the Stop button. Are you trying to read from the digital line 0, and then write this value to digital line 3? If so, a Digital Line Read VI should be used to get the value of digital line 0. This VI can be found in the same function palette as the Digital Line Write VI.

Please let me know if there is anything I can help with or clarify. Have a great day!

Ken S.
National Instruments
0 Kudos
Message 2 of 2
(2,557 Views)