SMC100CC & SMC100PP
4.0
LabVIEW Example with SMC100 instrument
4.1
LabVIEW project creation
Create a labVIEW project (refer you to the National Instrument manuals to know how
to create a LabVIEW project) in the NSTRUCT "Labview" directory of the selected
instrument. It's a necessary step to develop with the Newport LabVIEW driver. The
labVIEW development must be done from this opened project.
NOTE: Project must be opened when you do the LabVIEW coding work.
4.2
First step: instrument connection
In your labVIEW project, open a new Labview diagram, right click to open the
"functions" panel and choose the "User libraries" menu. Next, select the "Instrument
for NSTRUCT" menu to open the panel of functions. For SMC100, the "SMC100 for
NSTRUCT" menu is selected to open the panel of functions for SMC100.
Select the VI LWInstrument_Connect.vi from the panel of the selected instrument.
For SMC100, the selected VI will be LWSMC100_Connect.vi as the selected
instrument is a SMC100.
It is the first step to be able to communicate with your instrument. At this step, an
instance of your instrument is created.
The "LWInstrument_Connect" VI returns a "ComponentID" that refers to the
NSTRUCT server. This "ComponentID" must be used with each subsequent function
from the instrument instance.
Single-Axis Motion Controller/Driver for DC or Stepper Motor
7
EDH0312En1010 – 10/11