LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use waveform to control LED?

Hi GerdW,

 

I have created this sketch with timing. Now the LED appears to be blinking properly. Kindly have a look and give me your feedback. (I can upload the project VI file should you need.)

 

Moreover, on the 'Elapsed Time (s)' indicator on the Front panel, the time does not increment by integer values. Do you know what could be causing that?

 

Best,

Shashank

 

P.S: The 'x+y' counter is for my reference and can be ignored.

0 Kudos
Message 11 of 15
(1,311 Views)

This all seems rather pointless. Why don't you e.g. generate the waveform ptbypt so you don't need the inner loop at all?

 

Please attach your VI (or a snippet) instead of a picture. We cannot run or edit a picture.

 

Your timing is not integers because your waits only define a minimum time. each iteration will take as long as it needs to complete all code within it.

Message 12 of 15
(1,305 Views)

@altenbach wrote:

This all seems rather pointless. Why don't you e.g. generate the waveform ptbypt so you don't need the inner loop at all?

 


Wow, I did not know that existed. I have attached the file with this comment.

0 Kudos
Message 13 of 15
(1,302 Views)

Here's what I had in mind. I am sure you can get your desired time scaling by tweaking the various constants. You also want to change dx of the x axis.

 

DutyCycle.png

0 Kudos
Message 14 of 15
(1,298 Views)

@altenbach wrote:

Here's what I had in mind. I am sure you can get your desired time scaling by tweaking the various constants. You also want to change dx of the x axis.

 


Dear Altenbach,

 

Thank you very much for your input 🙂

 

Best regards,

Shashank

0 Kudos
Message 15 of 15
(1,267 Views)