Picoscope 3424 ps3000_flash_led doesn't work

 
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
Author Message
Spyguy33
Guest





PostPosted: Thu Feb 08, 2007 5:03 pm    Post subject: Picoscope 3424 ps3000_flash_led doesn't work Reply with quote

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
Site Admin


Joined: 01 Dec 2006
Posts: 667
Location: St Neots

PostPosted: Fri Feb 09, 2007 10:32 am    Post subject: Reply with quote

Hi and thank you for your post.

Could you send me your code.

Kind regards
Back to top
spyguy33
Guest





PostPosted: Fri Feb 09, 2007 7:14 pm    Post subject: Code Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
All times are GMT
Page 1 of 1

 


Pico Technology topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group