Content area

Abstract

Java is becoming a popular programming language for PC-based applications programs for many reasons. Java’s language rules force a natural structured approach to writing code, its strong data typing eliminates some of the subtitle errors encountered in C/C++ language, it’s thoroughly object oriented, it’s platform independent, and it is relatively easy to write programs with a Windows GUI using the language.

Java has a significant downside when used in data acquisition and control applications. Because Java programs run on a virtual machine and the language is strictly platform independent, there are no provisions for I/O such as that encountered when using a PC based instrumentation board. To access this type of I/O, the Java program must leave the virtual machine it runs on and run native code. A software interface can be written that will allow all of the board functionality needed to be accessed using Java calls. This paper presents the techniques to interface a Java program to native hardware using a National Instruments card as the example native hardware. The technique can be readily adapted to a variety of boards. When using the interface, student’s programs can make Java function calls to access an instrumentation card.

Java, which has long been a popular language for web applets, is becoming more popular for stand-alone applications. Programs with graphical user interfaces (GUI) are easy to write in Java, the language is fully object-oriented and programs written in Java can run, without modifications, on different platform types such as Sun workstations, Apple computers and PCs. In addition the software is free. There is reason to believe that Java’s popularity will grow.

To facilitate running on different computer platforms, Java programs run on an interpreter called the Java Virtual Machine (JVM). The only system-specific I/O Java programs can perform is that allowed by the JVM such as file, keyboard, and computer monitor access. Java programs do not have a direct way of getting past the Java Virtual Machine interpreter to interface to non- standard I/O devices such as an instrumentation board. The designers of the Java language realized there would be times when Java programs need to leave the JVM and go into the nether

“Proceedings of the 2003 American Society of Engineering Education Annual Conference & Exposition Copyright © 2003, American Society for Engineering Education”

Details

Identifier / keyword
Title
Native Instrumentation Board Interface For Java Based Programs
Source details
Conference: 2003 Annual Conference; Location: Nashville, Tennessee; Start Date: June 22, 2003; End Date: June 25, 2003
Pages
8.872.1-8.872.9
Publication year
2003
Publication date
Jun 22, 2003
Publisher
American Society for Engineering Education-ASEE
Place of publication
Atlanta
Country of publication
United States
Source type
Conference Paper
Language of publication
English
Document type
Conference Proceedings
Publication history
 
 
Online publication date
2015-03-10
Publication history
 
 
   First posting date
10 Mar 2015
ProQuest document ID
2317731846
Document URL
https://www.proquest.com/conference-papers-proceedings/native-instrumentation-board-interface-java-based/docview/2317731846/se-2?accountid=208611
Copyright
© 2003. Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the associated terms available at https://peer.asee.org/about .
Last updated
2025-11-18
Database
ProQuest One Academic