Programming Sample in VB for AdvTrigger with Pico 2205

Post your VB and VBA discussions here
Post Reply
ChristianScherer
Newbie
Posts: 0
Joined: Mon Mar 19, 2012 2:19 pm

Programming Sample in VB for AdvTrigger with Pico 2205

Post by ChristianScherer »

Hello Everybody

I need a programming Sample in VB to aquire some messurments with EXCEL.
I have tried some examples form the web and SDK but i can't find the reason.
The chalange is a outgoing-window-trigger (From -5V to +5V)...

My Source:
'Trigger Presetting
Dim triggerConditions As TRIGGER_CONDITION
triggerConditions.channelA = 1
triggerConditions.channelB = 0
triggerConditions.channelC = 0
triggerConditions.channelD = 0
triggerConditions.external = 0
triggerConditions.pulseWidthQualifier = 1

triggerChannelPropertiesArray(0) = 8000 'obere Schwelle
triggerChannelPropertiesArray(1) = -8000 'untere Schwelle
triggerChannelPropertiesArray(2) = 0 'Hysterese
triggerChannelPropertiesArray(3) = 1 'Kanal
triggerChannelPropertiesArray(4) = 1 'Modus
'End Trigger Presetting

'Set trigger

Cells(37, "Q").Value = ps2000SetAdvTriggerChannelConditions(ps2000_handle, triggerConditions, 1)

Cells(39, "Q").Value = ps2000SetAdvTriggerChannelDirections(ps2000_handle, PS2000_EXIT, 0, 0, 0, 0)

Cells(38, "Q").Value = ps2000SetAdvTriggerChannelProperties(ps2000_handle, triggerChannelPropertiesArray(0), 1, 0)


'Call ps2000SetAdvTriggerDelay(ps2000_handle, 0, 0)

has anybody an idea or a reason?

Greez from Switzerland
Christian

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

Re: Programming Sample in VB for AdvTrigger with Pico 2205

Post by Martyn »

Can you draw the signal you wish to trigger on, with parameters, and post it back then we can help with the setup.
Martyn
Technical Support Manager

Post Reply