LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview square wave measurement problem

Solved!
Go to solution

Hi Engeneers,

 

i have a problem

 

i've got a square wave that is 1 second high and 1 second low. High:12V Low:0V

 

if i put the a LED on the output the LED blinks, I want to keep that LED light on so i can see if it worked or not.

 

I heard that i can solve this issue with Frecuenty measurement and then put that LED on the value of that measurement.

but i dont know how to do that, im new to labview

 

 

i've made a simple VI to show my problem, the LED has to stay ON

 

 

Thanks

 

 

0 Kudos
Message 1 of 18
(4,270 Views)

Hi Asrih,

 

are you using a "real" LED or do you talk about a boolean LED indicator on a LabVIEW frontpanel?

 

 

For both you can implement this pseudocode:

led := led OR (wave>2.7V)
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 18
(4,266 Views)

a boolean LED

0 Kudos
Message 3 of 18
(4,262 Views)

Hi Asrih,

 

why do you write you expect amplitudes of 12V when your simulated signal just has an amplitude of 1?

 

Do the same as suggested before, but use 0.5 for comparison!

You need a shift register, a comparison and an OR function.

 

And for clarity I suggest recommend to stay away from ExpressVIs and DDT wires!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 18
(4,254 Views)

Hi GertW,

 

it was just a simulation of my problem,

 

im very new to labview, so i dont know how to do that,

 

could you please make a VI to show me what you mean?

 

With kind regards,

 

Asrih

 

0 Kudos
Message 5 of 18
(4,248 Views)
Solution
Accepted by topic author N.Asrih

Hi Asrih,

 

when you are "very new" to LabVIEW you should take the free lessons provided by NI (like on learnni.com)!

 

Try something like this:

check.png

(It's pretty pointless as the LED will always be ON/TRUE in this example…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 18
(4,226 Views)

1 more question,

where did you get the value 2.7 from?

0 Kudos
Message 7 of 18
(4,222 Views)

Hi Asrih,

 

2.7V: standard TTL high level…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 18
(4,195 Views)

Hi GertW,

 

Last question Smiley Embarassed

 

I want to use this program on my ExtendedRio device (Module NI9375 DI1), The input will be high or low (12V in reality but in sortware 1 or 0).

What can i change to use this software.

 

With kind Regards,

 

Asrih 

0 Kudos
Message 9 of 18
(4,192 Views)

something like this?

0 Kudos
Message 10 of 18
(4,187 Views)