10-10-2023 12:40 PM
I have two questions:
Solved! Go to Solution.
10-10-2023 02:58 PM
A follow up question:
Is there any reason why I couldn't just use one of the example VIs for, let's say, an autotuning PID controller copy/pasted into my program? Of course, I'd have to modify some parts like the process variable and data output type. I don't want to have to re-invent the wheel, so is that a common or recommended thing to do as a beginner?
10-11-2023 08:13 AM
Yes, studying LabVIEW Examples is often helpful. Be sure, when you open them, you do a "Save As" and make a copy on your Desktop or in your My Documents, close LabVIEW, and open your new Copy to prevent "messing up" the Example.
Being an "example", NI often "overloads" the code -- don't be afraid to simplify, replacing "choices" with the "value I plan to use" and getting rid of "Cases I'm not using" -- you can always go back to the Original Example.
I'm doing a project involving a Stepper Motor (new to me). I'm using a USB-6212 to generate the Stepper Pulses -- haven't done much with Counter/Timers, so I used the DAQmx example to get me started. [Shows even Knights sometimes need Squires to get them up on their horses].
Bob Schor
10-11-2023 08:20 AM
Bob, thank you for your reply. It sounds like one way to learn is to take these over-the-top examples, and break them down (or break them entirely) to learn what makes them tick. I expect there will be some challenges without physically having the equipment I need to properly test my code, but hopefully with this practice now that transition will go smoothly.
I had a proper giggle at your title. Thanks for that too.