Jump to content
  • 0

Plz Help me, digital Pulse generation in LV (DigitalOut_Pulse.py)


ysrevol

Question

I found out today that there is a "labview" board.
I want to create a pulse with LabView using AD2 (Analog discovery2). Among the Python programs included in the Waveform SDK, "DigitalOut_Pulse.py" was translated into LabView. 

When I set the frequency and duty and run it, the result is in the attached picture. Only a single pulse comes out. . I thought the execution result would be pulse trains with the set frequency and duty that repeats infinitely. However, only a single pulse appears.

I would be very grateful if you could tell me what I have set up incorrectly.

fig. 1 (pulse.vi) 

image.thumb.png.14aacafc2d046898c8cbc6465d8dafeb.png

fig. 2 

image.thumb.png.dd07a0908418e511a1b462db9924592c.png

DigitalOut_Pulse.py pulse.vi

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
On 12/2/2023 at 9:11 AM, Fausto said:

Hello @ysrevol.

Add a While Loop before the F Dwf Device Close All.vi to manually control when to stop the output pulses.

image.png

 

Regards,

Fausto

Dear Fausto,

I run it as instructed and it worked well.
Thank you very much for your kind comment. ^^

I have one more question.
Is there a way to adjust the number of pulses?
  When I set it up as shown below to make only 3 pulses come out, the pulses come out continuously.

image.png.dbc504d17049d788af409ad57d9aa84c.png

Thanks to the solution you provided, I can go further. Thank you again.

Regards,

YoungSik Kim. 

 

Edited by ysrevol
Link to comment
Share on other sites

  • 0
2 hours ago, ysrevol said:

Dear Fausto,

I run it as instructed and it worked well.
Thank you very much for your kind comment. ^^

I have one more question.
Is there a way to adjust the number of pulses?
  When I set it up as shown below to make only 3 pulses come out, the pulses come out continuously.

image.png.dbc504d17049d788af409ad57d9aa84c.png

Thanks to the solution you provided, I can go further. Thank you again.

Regards,

YoungSik Kim. 

 

I found the answer.

All you have to do is set the input "secRun" of "F Dwf Digital Out Run Set" to pulse period accurately and adjust the number of repeats!!

thank you,
I started to become interested in AD2 and labview. ^^

Regards

YoungSik Kim

Edited by ysrevol
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...