|
|
| Author |
Message |
Spyguy33 Guest
|
Posted: Thu Feb 08, 2007 5:03 pm Post subject: Picoscope 3424 ps3000_flash_led doesn't work |
|
|
| I am trying to use the ps3000_flash_led function and when I call it, the LED in the front of the 3424 stays solid. Any ideas? |
|
| Back to top |
|
 |
ziko Site Admin

Joined: 01 Dec 2006
Posts: 706
Location: St Neots
|
Posted: Fri Feb 09, 2007 10:32 am Post subject: |
|
|
Hi and thank you for your post.
Could you send me your code.
Kind regards |
|
| Back to top |
|
 |
spyguy33 Guest
|
Posted: Fri Feb 09, 2007 7:14 pm Post subject: Code |
|
|
I am making a JNI interface to the dll that you guys have created. Here is the C code:
JNIEXPORT jshort JNICALL Java_ps3000_PS3000JNI_ps3000_1flash_1led
(JNIEnv *, jobject, jshort handle){
return ps3000_flash_led(handle);
}
Here is an example of what would be calling it.
public static void main(String[] args){
PS3000JNI ps3000jni = new PS3000JNI();
short handle = ps3000jni.ps3000_open_unit();
ps3000jni.ps3000_flash_led((short)1);
System.out.println(handle);
System.out.println(ps3000jni.ps3000_close_unit(handle));
}
In this example I am creating an instance to the dll called ps3000jni. The interface is able to use block data collecting without a problem, however whenever one goes to make the led flash, there is no change in the led. |
|
| Back to top |
|
 |
|