|
|
| Author |
Message |
PG74 User

Joined: 05 Oct 2004
Posts: 4
|
Posted: Mon Nov 22, 2004 1:58 pm Post subject: ps3000_set_trigger() function, urgent! |
|
|
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

Joined: 07 May 2003
Posts: 610
|
Posted: Fri Nov 26, 2004 9:43 am Post subject: |
|
|
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
|
Posted: Fri Jul 08, 2005 12:13 pm Post subject: ps3000_set_trigger vb6 |
|
|
| 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, |
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 |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|