10-11-2016 03:59 AM
Hi,
I'm quite new Labview programming and finding a hard time coding a simple program. So can someone help me find a way to control the no. of cycles of a triangle pattern.ie, if a button is pressed the code should send a particular no. of waveform Once it's completed the button should toggle back to the orginal state. I have attached the code that I been using working on. The hardware used are NI 6013 & NI6723, together with two BNC-2110 as input and output.
Thanks & Regards,
George
Solved! Go to Solution.
10-14-2016 06:12 AM
Hi,
first of all, if you want to have an application like this, a simple while loop will not be enough. You will need to use a state machine or producer-consumer pattern. You read about them here, you also have quite a few templates and examples in LabVIEW.
Another thing is that for finite generation, it would be better to use the "Finite Samples" sample mode (in the DAQmx Timing.vi configuration).
10-31-2016 09:04 PM
Hi,
Thanks for the help. I used state -machine and it worked.