Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
What is Developer Zone?
United States

Document TypeTutorial
NI Supported: Yes
Publish Date: Nov 26, 2012


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links -Products and Services

Connecting a Micron Optics sm130 with a cRIO Controller

1 Ratings | 4.00 out of 5
 Print |  PDF

Overview

The sm130 Optical Sensing Interrogator is a field proven, industrial grade dynamic optical sensor interrogation module provided by Micron Optics. This is a standalone instrument that uses Ethernet cabling for communication, which allows easy integration with LabVIEW and NI-VISA. An NI certified driver which includes LabVIEW VI’s and examples can be found on ni.com. Using the sm130 cabled to a cRIO chassis through Ethernet is a solution for users that desire high speed optical interrogation and integration with their cRIO platform.


Required Software:

LabVIEW 2009 or higher
LabVIEW 2009 Real Time or higher
NI-VISA 5.1 or higher
NI-RIO 12.0 or higher
Micron Optics sm130 Instrument Driver from ni.com


  1. Install the required software on the host computer.  The Micron Optics driver should be unzipped to the LabVIEW's instr.lib folder, for example:  C:\Program Files\National Instruments\LabVIEW 2012\instr.lib\Micron Optics sm130
  2. Connect the cRIO chassis to the network.
  3. In Measurement & Automation Explorer (MAX), find the cRIO controller and remotely install LabVIEW Real-Time, NI-RIO, and NI-VISA.

  1. Enable the secondary Ethernet port of the cRIO controller. This can be done through Measurement & Automation Explorer or through a web browser by typing in the IP address of the cRIO controller. The IPv4 Address should be statically set to: 10.0.0.125.
    Subnet Mask: 255.255.255.0
    The default IP address of the sm130 is 10.0.0.126.  The cRIO's IPv4 address is set to 10.0.0.125 to ensure the devices will be on the same subnet.

Note:  If you only have one Ethernet port or configuring wirelessly, set the primary Ethernet port to static with the same settings as above.)

  1. Connect the sm130 directly to the configured Ethernet port with a crossover cable, or connect the sm130 and the configured port to a shared Ethernet switch/hub with a normal (not crossover) Ethernet cable.
  2. To test the connection, you could open a command window (Run  -> cmd) and ping the sm130.

  1. Open LabVIEW and start a new project.  Add the cRIO system to the project.

  1. Add an example VI from the Micron Optics sm130 driver to the cRIO system, such as Micron Optics sm130 Acquire Continuous Spectrum.vi.

  1. The VISA resource name that should be used is TCPIP0::10.0.0.126::1852::SOCKET. The IP address and port number are required values by the sm130.  In case of connection error, you may try a different TCPIP number, such as TCPIP1::10.0.0.126::1852::SOCKET.

  1. The system is now ready to be used.  Start from other example programs found in the Micron Optics sm130 driver or build your own VIs with the API made available under the Instrument I/O->Instr Drivers palette. 

1 Ratings | 4.00 out of 5
 Print |  PDF

Reader Comments | Submit a comment »

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).