C#/VB Query on SetTriggerProperties PS4224-11

Post your .Net discussions here
Post Reply
staffa
Newbie
Posts: 0
Joined: Tue Feb 26, 2019 2:39 pm

C#/VB Query on SetTriggerProperties PS4224-11

Post by staffa » Thu Feb 28, 2019 8:47 am

We are using a PS4224-11 scope.

Our original program is in VB.Net. We are porting this to C#.

In our original VB program we used this function from your wrapper to set the trigger level for channel A:

Declare Function SetTriggerProperties Lib "ps4000wrap.dll" (ByVal handle As Short,
ByRef triggerChannelPropertiesArray As Integer,
ByVal nProperties As Short,
ByVal autoTrig As Integer) As Integer

The call in the application is:

triggerarray(0) = 150

status = SetTriggerProperties(_handle, triggerarray(0), 1, 0)

I’ve gone through your literature and cannot find a reference to the SetTriggerProperties function. Nor can I find a reference on a search of the website.

Could you please advise the equivalent C# call.

Thanks.

staffa
Newbie
Posts: 0
Joined: Tue Feb 26, 2019 2:39 pm

Re: C#/VB Query on SetTriggerProperties PS4224-11

Post by staffa » Thu Feb 28, 2019 2:45 pm

Apologies, I’ve realised how badly my question was phrased.

It is my understanding that the wrapper class “ps4000Wrap.dll” is only used in VB because some calls directly to the main “ps4000.dll” cannot be made in VB.Net.

Therefore I would like to know the underlying call in the “ps4000.dll” made by the SetTriggerProperties call in the “ps4000Wrap.dll”.

Thanks.

Martyn
Site Admin
Site Admin
Posts: 3691
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: C#/VB Query on SetTriggerProperties PS4224-11

Post by Martyn » Thu Mar 07, 2019 10:53 am

The code for the Wrappers can be found on our GitHub Pages
Martyn
Technical Support Manager

Post Reply