Skip to Navigation

Example code for the UD Windows driver (U3, U6, UE9)

Comments

#1

 

--------------------Configuration: LabJava - JDK version 1.7.0_01 <Default> - <Default>--------------------

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.labjack.labjackud.LJUDJavaJNI.OpenLabJack(IILjava/lang/String;I[I)I

at com.labjack.labjackud.LJUDJavaJNI.OpenLabJack(Native Method)

at com.labjack.labjackud.LJUD.OpenLabJack(LJUD.java:21)

at LabJava.main(LabJava.java:19)

 

Process completed.

**I used JCreator and try to interface with UD but when i run the code, it keeps pop up this results..can u help? UnsatisfiedLinkError?

 

#2

Did you load LJUDJava.dll in your Java code?  Usually that error arises when the dll is not loaded or cannot be found.  The examples show how to do this with the System.loadLibrary call.  Also, take a look at this forum topic as it helps with issues like this: http://forums.labjack.com/index.php?showtopic=4899.

If this does not help to resolve your problem, a better place to continue this issue would be in the Java section of our forum or by support email.

#3

Hi!

I am using a Labjack U3 (Driver Version 3.25, Firmware 1.52, Harware 1.21) to sample date from a self constructed data glove. Though it is possible to sample data using single requests it does not seem possible to get the streaming mode to work. In fact the "U3 Simple Stream" example always crashes with an "unhandled exception" when calling "eGet(lngHandle, LJ_ioSTART_STREAM, 0, &dblValue, 0);" (VC6 example). Does anyone know a sollution to that problem, experienced the same or has an explanation? I would be very grateful for any help I can get on that matter.

#4

Is this our unmodified U3_SimpleStream example?  If not does that example run for you?

Does LJControLPanel work?  What about our LJStreamUD program?

#5

Thank you very much for your answer. I tried your unmodified U3_SimpleStream and U3_StreamCallback example many (!) times then I started modifying it to see if I can get some change in program behavior but without much of a result. Sometimes when starting the LJControlPanel before running the example it works though. LJStreamUD works as well. By the way I am using MS Visual Studio 2010.

#6

hello

i will be grateful if you help me with using the " Frequency Output (Mode 7)" timer (u3)  in vb.net with code please

#7

For VB.NET you should use our .NET download which can be found here:

http://labjack.com/support/ud/examples/dotnet

In
the examples folder there for each of the LabJackUD devices (U3, U6,
UE9) you should be able to find a VB.NET TimerCounter example that
should provide a starting place.