LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pulse generator

Solved!
Go to solution

              Hi,

 

      I have attached the programm and a PrintScreen of block diagram and front panel. My programm provide just a single achievement of the signal. How can I make my signal to become periodicaly?

Thanks.

 

0 Kudos
Message 1 of 10
(5,620 Views)

Hi Matei,


Good afternoon and I hope your well today. Thanks for your post!

 

Why do you want to make this period? In terms of signal anylsis you won't gain anything more from having it repeated. Are you looking to output this waveform? If so, is it an NI DAQ device? These can take a one period waveform and repeat it without running the code i.e. you can use your one period. Please let me know your intention. 

 

However, if you still want to simulate a continuous signal, how about the code below. LabVIEW 8.6. Basically, create the waveform outside of the loop, and then use an append waveform to add the previous to the next period of the wave. And then, update the chart. 

 

Hope this finds you well, 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 10
(5,608 Views)

Thank you.

Unfortunately, i can't open the code in LabVIEW 8.6, because i have LabVIEW 8.5. Can you please send it again, but in LabVIEW 8.5 so I can open it?

This programm is part of  my diploma project.

 

Regards, 

Matei

0 Kudos
Message 3 of 10
(5,600 Views)
Saying that it is part of your diploma project does not explain what you are trying to do.
0 Kudos
Message 4 of 10
(5,588 Views)
I want to simulate a continous signal.
0 Kudos
Message 5 of 10
(5,582 Views)
You've done that. With each iteration of the loop, you generate a new pulse. It is continuous. The chart shows that. The chart has a history that limits the number of points displayed. Old data is discarded when the history value is reached. With the graph, there is no history and it only displays the latest unless you use some mechanism (i.e. shift register/build array) to append new data to old.
0 Kudos
Message 6 of 10
(5,577 Views)

Hi Matei,

 

Did you manage to get this sorted?

 

Please let me know, 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 7 of 10
(5,526 Views)

   Hi Hillman,

 

   I connected my block to your programm (period.vi) and I have another question.

Can you tell me if  I can make a connection between'"dt" and frequency.

I  attached the fully programm.

 

Thanks,

Matei

0 Kudos
Message 8 of 10
(5,523 Views)

Matei wrote:

  

Can you tell me if  I can make a connection between'"dt" and frequency.


I don't understand your question.  In your VI, you have dt connected and it is based on calculations determined by your enum called frequency.

0 Kudos
Message 9 of 10
(5,498 Views)
Solution
Accepted by topic author Matei

Hi Matei,


Good Morning and I hope your well today.


Sorry I never posted my code in LabVIEW 8.5 - here it is.


Hopefully it will help.


As already noted, the dt is the sample period which is the inverse (1 / fs) of the sample rate. 

 

Please let me know if I can be of any more help, 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 10 of 10
(5,488 Views)