05-27-2008 08:58 PM
05-28-2008
07:40 PM
- last edited on
07-18-2025
03:52 PM
by
Content Cleaner
Hello swngiam,
Thanks for your post! Glad to hear that your univeristy is uisng LV for your projects.
I would like to first address your NI 6230 DAQ general questions.
Your question "Are the AI or AO ground pins strictly coupled per channel, or is one free to use any?" The AI and AO grounds are not coupled per channel so you are free to use them as you choose.
For connecting your "DIY preamp" I might suggest to use RSE for the inputs or Single-Ended-Ground Referenced. This way you hook up the positive signal coming from your preamp to the AI channel + input and then the (-) signal or ground signal to the the AI ground. Also take a look at the link below as it shows how to deal with noise and hooking different devices to DAQ boards.
I want to refer you to table 1 in the link above as it shows the different recomended connections to daq cards for analog inputs. Specifically columb 1 which shows connections for battery operated devices.
LabVIEW PID Control Toolkit User Manual
Above is the LabVIEW PID manual that I would use as a reference on how to make your feedback loop. However we have reached my knowledge of PID control.
As for your PID and motion (motor) questions, I would like to suggest for you to post on the "Motion Control and Motor Drives" Forums as customers that are familiar with motors and PID control are more likely to see your post and be able to make some good suggestions for your program.
Please post if you have any more questions and Good Luck!
Corby_B
06-02-2008
12:19 PM
- last edited on
07-18-2025
03:53 PM
by
Content Cleaner
Ngiam,
I would like to comment on the following question:
This part is rather mission critical; while the windows environment be sufficiently fast? Will the PID example be sufficient as a start point?
I believe the answer is no, unless your movement is slow enough and over a small enough range that a PID loop running in Windows LabVIEW can respond quickly enough. Using a while loop with a PID loop in LabVIEW, you could achieve a fairly reliable 1000 Hz loop rate that would be subject to all of the interruptions that might happen in Windows. To give you a ballpark, NI Motion boards default to 4000 Hz.
I would suggest looking at one of the following options:
1. NI-Motion boards
NI makes plug-in PCI boards that have a variety of capabilites, with the one of interest to you being the PID loop that will run on the card independently of the host computer.
2. Real-Time System
You can use a Real-Time system that will give you two things, determinism and a more accurate clock. This would allow to specify reliable timing, and also allow you to use a microsecond clock rather than the millisecond clock used by Windows. You can find more information on these at https://www.ni.com/en/shop/data-acquisition-and-control/add-ons-for-data-acquisition-and-control/wha...
3. FPGA System
This is where you will head if you need the absolute fastest response. You will be able to create a PID system that will respond orders of magnitude faster than realtime or Windows. You can find more information at ni.com/fpga.
With both the Real-Time and FPGA based solutions, you will be able to use PID toolkit VI's to execute your PID loop. With NI-Motion, this is taken care of for you by the driver and you will be able to specify settings.
Thanks,
Luke H