From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-13-2020 07:38 AM
Help required, if anybody knows how to loop this waveform continuously! I tried to make this waveform using arbitrary wave generator VI. I am able to make the waveform but cannot loop it continuously.
Help in any form will be appreciated. Thanks!
03-13-2020 07:59 AM
Hi inji,
@injimamul wrote:
Help in any form will be appreciated.
You VI is huge and can be simplified like this:
@injimamul wrote:
I am able to make the waveform but cannot loop it continuously.
Just output the waveform again. What is the problem?
03-13-2020 08:16 AM
What are you trying to loop this waveform on? A DAQ analog output? A function generator? Or are you just trying to repeat an operation in software? We need a lot more context for what you are trying to do with this waveform in order to actually help.
03-13-2020 08:20 AM
Thank you for replying.
I want to continuously loop the waveform. When the waveform ends, it should start again from the beginning, like all the inbuilt waveforms present in labview.
03-13-2020 08:28 AM
Hi inji,
@injimamul wrote:
I want to continuously loop the waveform. When the waveform ends, it should start again from the beginning, like all the inbuilt waveforms present in labview.
No "inbuilt waveform" does "start again from the beginning"…
Create the waveform, then "play" it in a loop.
You still don't explain where you want to play/output the waveform!?
03-13-2020 08:34 AM - edited 03-13-2020 08:38 AM
Yes, I tried to loop it using a while loop 😐.
Sorry if I being lame. I want the waveform to repeat periodically. Also, what is the process to change the units of time.
I want to get the output of the waveform using a NI USB 6001.
Thanks again!😊
03-13-2020 09:20 AM - edited 03-13-2020 09:22 AM
@injimamul wrote:I want to get the output of the waveform using a NI USB 6001.
There's the key information I was looking for. Luckily for you, there is a DAQmx Write property called Regeneration Mode. Just set that to be "Allow Regeneration", write your waveform to the DAQmx task, and then start the task.
NOTE: This VI was based on having multiple channels in the task. Hence why Waveforms is an array. It will still work with a single (scaler) waveform.
03-13-2020 01:40 PM
Could you please share the VI file of this?
Thank you so much. I cannot believe of getting such great response in this short period of time.
Keep helping sir!
03-13-2020 07:54 PM
Save the PNG file to your desktop. Then drag that file into your block diagram. If you are using LabVIEW 2019, then you'll have the code!
03-13-2020 11:01 PM
Sorry, our institution has provided us with the 2013 version. This feature is not working in this version.