ps3000_set_trigger() function, urgent!

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


Joined: 05 Oct 2004
Posts: 4

PostPosted: Mon Nov 22, 2004 1:58 pm    Post subject: ps3000_set_trigger() function, urgent! Reply with quote

Hello!
have written my own software for picoscope 3206 in VB.NET, everytheing works fin but the ps3000_set_trigger() function.
Its the last assignment before my software degree, and I am gonna present it for the company that
gave me the assignment tomorrow, 23/11. I am therfore greatfull for a fast reply!!

calling like this:
ps3000_set_trigger(device, channelTr, niva, flank, nivaX, autoTrigger).
the arguments(all short) are set to:
device(eg. handle) = 1
channelTr = 0
niva = 0
flank = 1
nivaX = 0
autoatrigger = 0
the function returns 0, and the trigger doesnt work!! why?
please help!!

//Philip
Back to top
markspencer
Site Admin
Site Admin


Joined: 07 May 2003
Posts: 610

PostPosted: Fri Nov 26, 2004 9:43 am    Post subject: Reply with quote

Hi,

I beleive that I have answered this by email, but incase you did not recieve the email here is the solution.

In the visual basic example the .bas file declaration for the ps3000_set_trigger is incorrect. The last parameter (auto_trigger_ms) is being passed by reference where infact it should be passed by value. This means that the new declaration should look like this:

Code:
 Declare Function ps3000_set_trigger Lib "\ps3000.dll" (ByVal handle As Integer, ByVal source As Integer, ByVal threshold As Integer, ByVal direction As Integer, ByVal delay As Integer, ByVal auto_trigger_ms As Integer) As Integer


Best regards,
Back to top
Staffan Ek
Guest





PostPosted: Fri Jul 08, 2005 12:13 pm    Post subject: ps3000_set_trigger vb6 Reply with quote

markspencer wrote:
Hi,

I beleive that I have answered this by email, but incase you did not recieve the email here is the solution.

In the visual basic example the .bas file declaration for the ps3000_set_trigger is incorrect. The last parameter (auto_trigger_ms) is being passed by reference where infact it should be passed by value. This means that the new declaration should look like this:

Code:
 Declare Function ps3000_set_trigger Lib "\ps3000.dll" (ByVal handle As Integer, ByVal source As Integer, ByVal threshold As Integer, ByVal direction As Integer, ByVal delay As Integer, ByVal auto_trigger_ms As Integer) As Integer


Best regards,
Mad Mad



Hi!

Why haven't you correct this problem ????
I have working at least 6 hours to find out what the problem was ..
I bought a 3204 for 5 days ago .. If you have som problem correct them directly !!
/Staffan
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