NI InsightCM Desktop Simulated Device

Updated Jul 26, 2018

Reported In

Software

  • NI InsightCM

Issue Details

How can I use LabVIEW SDK Source Code to Simulate CMS-9068 device on Windows Machine?

Solution

After installing NI InsightCM SDK 3.1+, sourcecode is located in the path below.
C:\Program Files (x86)\National Instruments\LabVIEW 2017\InsightCM\Devices\Cms\CMS_Desktop.lvproj

This device shares code with other devices. Be sure to not overwrite shared VIs by creating copies and only modifying your copies.

1. Preparing the Device Definition File

 The device definition file, contains all necessary information, which are required to configure the CMS Device from NI InsightCM server application. After configuration of the CMS device the server will send the appropriate json files to the device. Please check the NI InsightCM SDK help for further details regarding the device definition file. The device definition file contains also the information regarding the application and firmware image (rt.exe). The Desktop Simulated Code is running within the LV IDE, therefore these parameters are not required.

2. Import Desktop Device Definition File

 A. Export definition file of CMS-9068 with the command prompt. You can change the path in the red box to desired path. Please check the SDK help for further details regarding exporting definition files.

  InsightCMConsole.exe exportdefinition -t device -n "CMS-9068" -o "C:\Temp\CMS-9068.json"
 

 B. Open exported CMS-9068.json file and remove the SysCfgDeployer capability at the top of the definition file. Don't forget to change the device name so it doesn't override one of the shipping definitions. (Save as "Desktop9068.json")

 C. Import the device definition file with the command prompt. Please check the SDK help for further details regarding importing definition files 

 InsightCMConsole.exe importdefinition -t device -f "C:\Temp\Desktop9068.json"



3. NI InsightCM Server - Create offline Device
 
 A. Open a web page to the NI InsightCM web application and navigate to the Device page (Refresh the page if you were already there)

 B. Click Add. Select Create an offline device, click Next

 C. Select Desktop CMS-9068 from the Device Type drop down list. See image below.
 

 
 D. Click Next until you can enter a name for the device, then click Finish. When prompted if you want to export the device connection information file, click Yes.
 
 E. A Connection Info will be exported. This file will be used by the simulated device to connect to the server.

4. Import the connection file to the Windows target

 A. Copy downloaded .json file to the following path on the Windows machine you installed the desktop device on.
  <User>\Documents\LabVIEW Data\InsightCM\conn

 B. Rename the file you copied into the directory to ConnectionInfo.json. If existing - delete the old ConnectionInfo.json file in this directory. Check image below.
 
 
5. Run the Main.vi LV Code

 A. Press the Run button to execute the Main.vi LV Code
 
 B. Check Connection Status on NI InsightCM Server like the image below.
 

6. Using the Simulated Device and Recommendations Settings

 A. Configure the Asset which you would like to monitor with the simulated device.
 
 B. Configure the Device with following channels like image below.
  • Mod1/Ch0 - Tachometer
  • Mod2/Ch1 - Accelerometer (Default)
  • Mod2/Ch2 - Accelerometer (Default)
  • Mod8/Ch0 - Thermocouple
 

 C. Update the Device Configuration
    Push the Update Configuration button for the latest config

 D. Restart the Main.vi
    Restart the Main.vi
    Now the simulated Device is running and you are able to simulate the dynamic (vibration) and static signals on opened FrontPanels of the device code. See image below.
 

7. Customize the Desktop Device

 A. This device shares code with other devices. Be sure to not overwrite shared VIs by creating copies and only modifying your copies.
 
 B. You can modify the device code as needed and use any Windows supported software and hardware.

WAS THIS ARTICLE HELPFUL?

Not Helpful