AC coupling

Post general discussions on using our drivers to write your own software here
Post Reply
ARC
Newbie
Posts: 0
Joined: Wed Aug 08, 2012 8:38 am

AC coupling

Post by ARC »

Hello,

I need to change the channel settings to AC rather than DC, im controlling the C console code as a DLL, and the struct for CHANNEL_SETTINGS only contains DCcoupled.
To change the channel to read in AC do i simply add short AC (for example) to the CHANNEL_SETTINGS struct and change ps2000aSetChannel to:


status = ps2000aSetChannel(unit->handle, (PS2000A_CHANNEL) PS2000A_CHANNEL_A + i,
unit->channelSettings[PS2000A_CHANNEL_A + i].enabled,
(PS2000A_COUPLING) unit->channelSettings[PS2000A_CHANNEL_A + i].AC,
(PS2000A_RANGE) unit->channelSettings[PS2000A_CHANNEL_A + i].range, 0);


Thanks for the help :)

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

Re: AC coupling

Post by Martyn »

In ps2000aSetChannel the type needs to be from the following enumeration

Code: Select all

typedef enum enPS2000ACoupling
{
	PS2000A_AC,
	PS2000A_DC
} PS2000A_COUPLING;
Martyn
Technical Support Manager

ARC
Newbie
Posts: 0
Joined: Wed Aug 08, 2012 8:38 am

Re: AC coupling

Post by ARC »

ah great thanks :)

Post Reply