Solved

Java vs digital i/o card (CIO-PDISO8) from Omega UK

Posted on 2002-03-31
7
210 Views
Last Modified: 2010-03-31
Hi Experts,

I installed a digital i/o card (CIO-PDISO8) in my company's PC which I use to do the signal communication with machines.

Currently my Visual Basic base firmware is using "vbInp" (to read port from address &H301) & "vbOut" (to write port from address &H300) public methods provided by windows driver "win95io.dll".

I am going to develope a pure java based tools to do the same communication with CIO-PDISO8 but currently the vendor has no driver/api for java?

Does anybody can help on this.

P/S: You can find the device info as at http://www.omega.com/pptst/CIO-PDISO8.html

Thanks,
jiada
0
Comment
Question by:jiada
7 Comments
 
LVL 4

Expert Comment

by:pellep
ID: 6910084
Hi,

Sounds like you're going to have to use JNI. JNI is the method by which JAVA interfaces into platform-specific code. Basically, you write a .dll to wrap the win95io.dll where you expose the proper functions to the JVM using the JNI spec. Look at

http://java.sun.com/products/jdk/1.2/docs/guide/jni/spec/jniTOC.doc.html

0
 

Author Comment

by:jiada
ID: 7555309
I am looking for a straight forward PURE java solution to access the I/O addressing for reading/writing without any windows component such as dll.

Anyway, thanks for your time. Sorry for the late reply.
0
 
LVL 4

Accepted Solution

by:
pellep earned 100 total points
ID: 7555859
well, there is no pure JAVA sollution to it. JAVA was designed so that hardware would not be an issue, hence direct hardware control (or in this case, access to the I/O bus) is not possible with JAVA. The way to make such services available to JAVA is to create a native interface (JNI). Now, there may be someone out there who has already created a native implementation to do what you require, but i know of none such. since this question is pretty old, i suggest you delete it and post a new one and maybe someone else here can help you out.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 9

Expert Comment

by:Venci75
ID: 7923926
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by: pellep
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venci75
EE Cleanup Volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7939159
A request for deletion has been made.  If no response or you feel this is in error, comment.  If no objection, I will delete in three days.

Computer101
E-E Admin
0
 
LVL 9

Expert Comment

by:Venci75
ID: 7940084
I really think that pellep answered this question.
In the worse case the question should be PAQ'd and proints removed.
0
 

Expert Comment

by:modulo
ID: 7978537
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
web services creation SOAP vs REST 5 56
configure dependency in POM for new database 3 34
Configure a Bean in an XML file 4 42
Java syntax, or is it Selenium 6 30
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
The viewer will learn how to implement Singleton Design Pattern in Java.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question