LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LED blinking in while loop

Hi Immi,

 

Check out this 8.0 Vi.

 

 

Rgds,

Venky

0 Kudos
Message 11 of 18
(2,407 Views)

Hi Venky,

 

Thanks..I see only one ex-or gate with 2 switches and  a LED in the vi. I hope nothing is missing in it.

 

rgds

imran

0 Kudos
Message 12 of 18
(2,402 Views)

Hi Imran,

 

Yeah it is not missing anything.

It detects the transition ,whenever the Signal boolean changes its value from true to false or false to true.

Note: for help check context help (Ctrl+H) of the Edge detection.vi

 

Let me know if it meets ur requirement or not.

 

 

Rgds,

Venky

0 Kudos
Message 13 of 18
(2,395 Views)

Dear Venky,

 

To eleobrate my problem, i am attaching an image of the part of the vi. As you can see the information I am getting from the hardware through the DAQmx is a DBL precision number and I dont see any direct boolean signal readout from the counter. Hope this will give you a better view of the problem. I need to be able to read the logic level of the counter first in order to get the edge detection work.

 


Rgrds

imran
0 Kudos
Message 14 of 18
(2,385 Views)

Hi Imran:

 

Is there any reason why you cannot use a digital input rather than a counter?  This would give you a boolean value that you could use with the code from Venky.  If you do have to use a counter, can you provide some more background on what your application is doing?

Message Edited by A Person on 02-23-2009 05:27 PM
Alex Person
NI-RIO Product Support Engineer
National Instruments
0 Kudos
Message 15 of 18
(2,344 Views)

Hi Alex,

 

I am developing a laser ablation system for which i need a simple control of a laser equipment for generating specific number of pulses and stepping a stepper motor after each pulse (falling edge). I  tried to use a digital input but apparently the DAQ digital input is not able to detect the input pulses which are (50 us) short. Counter input detects is easily and accurately but I cannot get a logic level information from counter and  which is my basic problem. i read the help and the only way i can use digital input of my DAQ card is it to configure it as "detect changes" and hardware timed but in that case it i noticed it missed to detect some pulses and accuracy is compromised. Please bare with me as i am not an expert user of LabView.

 

regards

imran

0 Kudos
Message 16 of 18
(2,312 Views)