LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-threading with multiple while loops... trouble?



@Nickerbocker wrote:
Awesome.  Thanks for the tip.  I will look into those as I am a CPU% nazi 😛 and whatever I can do to lower that the better.

Just an aside: I love LabVIEW.  My company purchased for me the NI Developer Suite a little over a year ago and I've learned so much from using it.  Everytime I build something in LabVIEW it becomes increasingly simplified as I am exposed to more and more of the internal libraries and capabilites of LabVIEW.  I have a pretty extensive programming background: Visual Studio .NET, PHP/SQL for web pages, and C/Assembly for microcontrollers.  The other day in LabVIEW I wrote a program that consisted of a PID controller that controlled a heater band, a state machine to control a bunch of solenoids with complicated timing, and a data recorder that was taking in a plethora of transducer data and making state machine/PID controller decisions based on that data.  I was able to accomplish all of this with rather modest NI hardware and LabVIEW enabled me to get the program up and running from scratch in about 4 hours time.  I was telling my boss that with traditional programming languages on that particular setup we would have been in "beta testing" after about a week and a half of development.  Instead we were in production mode by the afternoon.  Worth every penny.



Hi Nickerbocker,

Please go thro' the below link to know more of the Event Structures.

http://zone.ni.com/reference/en-XX/help/371361B-01/lvhowto/caveatsrecmndtnsevnts/

BTW, U had said that U could finish Ur entire programming stuff in <4 hrs for a PID control.

Can U pl post the code in LV 7.1 for me to go thro' it & learn ? I ve never got a chance to prog a PID controller... Smiley Sad


 

- Partha ( CLD until Oct 2027 🙂 )
Message 21 of 23
(906 Views)
I used the PID VI's that come with the Fuzzy Logic Toolkit :/.  I can't take any real credit for developing the PID controller.... and who really has time for that anyway?  I've only done PID controllers using Op-Amps in labs back in school days and have never really done a software one though.

The ones in the Fuzzy Logic Toolkit work very well.  There is also a "Simple PID.vi" available on NI's website somewhere that will do the job.  I was wiring the output of the PID controller to some pulse width modulation code that I modified from an article on the NI website.

I'd post my code if you really want me to...however, it is a bit of a mess, and I'm not sure how much it would really help you 🙂

-nickerbocker
0 Kudos
Message 22 of 23
(872 Views)
Nickerbocker,

I was perusing the forums, and came across your post. 

Just an aside: I love LabVIEW.  My company purchased for me the NI Developer Suite a little over a year ago and I've learned so much from using it.  Everytime I build something in LabVIEW it becomes increasingly simplified as I am exposed to more and more of the internal libraries and capabilites of LabVIEW.  I have a pretty extensive programming background: Visual Studio .NET, PHP/SQL for web pages, and C/Assembly for microcontrollers.  The other day in LabVIEW I wrote a program that consisted of a PID controller that controlled a heater band, a state machine to control a bunch of solenoids with complicated timing, and a data recorder that was taking in a plethora of transducer data and making state machine/PID controller decisions based on that data.  I was able to accomplish all of this with rather modest NI hardware and LabVIEW enabled me to get the program up and running from scratch in about 4 hours time.  I was telling my boss that with traditional programming languages on that particular setup we would have been in "beta testing" after about a week and a half of development.  Instead we were in production mode by the afternoon.  Worth every penny.


I love reading about LabVIEW success stories and hearing from users how LabVIEW was able to simplify their job.  I would be very interested in setting up a follow-up with you regarding this information so that I could ask you a few follow-up questions.  I can get your contact info from the forums manager, so you don't have to post it, but I need to get your permission first. 

Would you be willing to talk with me regarding your experiences with LabVIEW?

Thanks,

Message Edited by Jeffrey P on 03-27-2007 09:38 AM

Message 23 of 23
(839 Views)