Test and Measurement Forum

Programming Sample in VB for AdvTrigger with Pico 2205

Post your VB and VBA discussions here

Programming Sample in VB for AdvTrigger with Pico 2205

Postby ChristianScherer » Wed Apr 04, 2012 12:21 pm

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
ChristianScherer
Newbie
 
Posts: 0
Joined: Mon Mar 19, 2012 2:19 pm

Re: Programming Sample in VB for AdvTrigger with Pico 2205

Postby Martyn » Wed Apr 04, 2012 12:51 pm

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 Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2350
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to VB and VBA (Excel, Access)

Who is online

Users browsing this forum: No registered users and 0 guests