C#/VB Query on SetTriggerProperties PS4224-11

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

C#/VB Query on SetTriggerProperties PS4224-11

Post by staffa »

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
User
User
Posts: 6
Joined: Tue Feb 26, 2019 2:39 pm

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

Post by staffa »

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: 4499
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

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

Post by Martyn »

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

Post Reply