Dear all,
Hope this message finds all well.
About a year ago my university wanted to try constructing a scanning tunneling microscope from scratch. The project was adjourned and recently revived with less time but a bigger budget.
My past experience as a novice LV-user was that I got too much amatuerish coding out before realising it was all wrong, albeit too late. And hence this time I would like to set out on the right footing, and would appreciate all help possible. Many thanks in advance for that.
The analog-control components consists of the 4 AO channels on the NI 6230 DAQ, voltage outputs control XY motion (scanning), sample bias (fixed DC voltage), and a Z-motion (negative feedback loop required); and 1 Voltage input (which is associated with the negative feedback loop).
First of all, may I refer to the NI 6230 pinouts:

1) Are the AI or AO ground pins strictly coupled tper channels, or is one free to use any? If it is strictly coupled, how do I identify which for which?
2) We are using a DIY preamp which is running off batteries (for fear of AC noise). Are there any ways of 'assigning' a common ground point which is common for all inputs and outputs with respect to the batteries?
In essence, the Labview program needs to accomplish the following (in a somewhat chronological order):
3) Automated Tip Approach control
(with reference to http://link.aip.org/link/?RSINAK/60/181/1) (Purchase order for a motorized actuator underway)
the program will have to drive the linear translation by the smallest possible increment, then extend the Z-piezo from most contracted to the fullest extension in (relatively) coarse steps. If there is no voltage read on the AI channel, the Z-piezo is contracted, and the cycle repeated, until AI channel reads a voltage.
4) When (3) is achieved, a PID loop controlling Z-piezo must kick in, doing fine motion (smaller voltage increment/decrement as compared to the coarse approach in 3) while trying to maintain AI constant. This part is rather mission critical; while the windows environment be sufficiently fast? Will the PID example be sufficient as a start point?
5) a raster scan in XY motion will record the Z-voltage value at each data point. A (array or matrix? not sure of these stuff you see..) of variable size (32X32, 256X256 etc) should form a 3D representation of the data desired.
Sorry if the post has been lengthy and amateurish, but I will definitely be thoroughly grateful to any form of help rendered.
Best regards,
Ngiam