Example Program Drafts

Showing results for 
Search instead for 
Did you mean: 

Data Dashboard Engine Simulator

by Member MAltmann on ‎11-16-2012 07:43 AM

Description:

This example is an Engine Simulator that uses a combination of Shared Variables and Web services to display data on the dashboard.  Inputs on the Data Dashboard are Throttle, Gear and Trip reset which, can be used to control the engine and trip counter respectively.  The rest of the dashboard is made up of gauge, numeric and string indicators which are used to display the various engine variables.  By manipulating the throttle and gear inputs you will see the engine's RPM and MPH change as well as the the turbo psi and engine oil temp rise.  The display in the center displays time, current gear, engine horse power and torque (on overlapped graphs), engine running time in seconds and a trip time in seconds that can be rest.  If the engine is left at maximum throttle for too long the oil temperature will rise and trigger the oil warning light.

IMG_0104.PNG

Installation Instructions:

PC Steps:

  1. Unzip EngineSimulator.zip and open EngineSim.lvproj.
  2. Deploy the Engine Variables library by right-clicking on the library and selecting Deploy.
  3. Deploy the stats Web service by right-click on stats and selecting Build.  After the building has completed right-click the Web service and select Deploy.  The project should now be ready for your data dashboard connections.

iPad Steps:

There are two ways you can setup the dashboard in this example, the first is to use the Data Dashboard Retargeter Application and the second is described below.

  1. To connect this example Data Dashboard, Engine Simulator.lvdd. first, load the .lvdd file on to your iPad.  You can either navigate to this example on your iPad and download the example directly or you can download the application to your computer and email it to your iPad.
  2. Once the loaded on your iPad you can open the Engine Simulator dashboard.
  3. For the dashboard to work with your computer you must point the controls, indicators and Web service calls to the computer you are running the LabVIEW application on.
  4. To map a control or indicator select the object on the dashboard and tap the data link icon.  Then, choose Shared Variable and point to the correct variable in the library on your computer.

IMG_0106.PNG

  1. To map a Web service select the Web service object on the dashboard and tap the Web link icon.  Then, choose your host and correct Web method on your computer.

IMG_0105.PNG

This example was built using LabVIEW 2012, you can download a trial version here.

Comments
Member chula
Member

Hello Mr.Maltmann

I'm relatively new for data dashboard user. I read of your document ,Downloaded your example and followed step-by-step i have problem that Engine sim project havn't had build function when I want to Deploy the stats Web service by right-click on stats and selecting Build. I have wonder that stats Web service that you meant is Reset_Trip.VI isn't it?  So i built the webservice  select stats.vi and built and deployed , i just wonder that what 's .VI that  you choose on PC to build and deploy?,what's source file that you choose? and what's URL mapping that you use?

this is my setting
photo2.JPG

so my result is Dashboard of my Ipad cannot connect to webservice like this image as below

photo1.PNG

what should I do? Please give me an advice

Mimi

Member MAltmann
Member

Hi Mini,

The web service is comprised of three VIs.

The first, Test Panel which runs as an Auxiliary VI that runs at start up. The second, stats.vi is a web methods that displays data on the graphs and the third, rest_trip.vi is used to reset the trip counter.

the URL mappings are /stats and /Reset_Trip

From the iPad screenshot it looks as though your shared variables are not working and that the web service it working correctly.  You may want to try moving the gear or throttle slider to write to a variable and see it that makes you successful.  Check to see if the Engine Variables library is deployed.  You may want to create a test dashboard and try to connect to the variable library from that.

Mike