TA301 Current Probe channel Setup

Having problems ? let us know the details here
Post Reply
Nikola
User
User
Posts: 3
Joined: Thu Sep 05, 2024 9:16 am

TA301 Current Probe channel Setup

Post by Nikola »

Hi guys

I have looked at your PS4000ABlockMode example for C# on your github page. I want to set up 3 channels where a and b are voltage channels and c is a current channel using the ta301 current probe.

I have tried setting up the current clamp range by using nearly all of the options in the PicoConnectProbeRange namespace and I cannot manage to set the channel up from my C# app. the moment I make it a voltage channel then the channel setup is fine and I can sample the data from the channels. Problem is that I see nothing on channel C if I set it up as a voltage channel (for example using: PicoConnectProbes.PicoConnectProbes.PicoConnectProbeRange.PICO_X1_PROBE_10V) I would expect at least 300mV (assuming 1mV/A as stated in the datasheet) because when I use my PicoScope oscilloscope app, the current clamp auto detects and I can see readings on that channel of up to 300A.

I am just wondering how should I set the channel up so that I can measure the same 300A measurement when I run the block?
bennog
Advanced User
Advanced User
Posts: 225
Joined: Mon Nov 26, 2012 9:16 am
Location: Netherlands

Re: TA301 Current Probe channel Setup

Post by bennog »

As far as I know you do the conversion calculation in your own software.

Benno
Nikola
User
User
Posts: 3
Joined: Thu Sep 05, 2024 9:16 am

Re: TA301 Current Probe channel Setup

Post by Nikola »

When I use the TA167 probe, my application works as intended.

When I use the TA301, I am reading 0V (or A) on the channel the whole time.
Martyn
Site Admin
Site Admin
Posts: 4568
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: TA301 Current Probe channel Setup

Post by Martyn »

You need to set the probe up as PICO_CONNECT_PROBE_CURRENT_CLAMP_200_2KA as this will provide the power to the clamp and then chose a range as one of

PICO_CURRENT_CLAMP_200A_2kA_1A = 4000,
PICO_CURRENT_CLAMP_200A_2kA_2A,
PICO_CURRENT_CLAMP_200A_2kA_5A,
PICO_CURRENT_CLAMP_200A_2kA_10A,
PICO_CURRENT_CLAMP_200A_2kA_20A,
PICO_CURRENT_CLAMP_200A_2kA_50A,
PICO_CURRENT_CLAMP_200A_2kA_100A,
PICO_CURRENT_CLAMP_200A_2kA_200A,
PICO_CURRENT_CLAMP_200A_2kA_500A,
PICO_CURRENT_CLAMP_200A_2kA_1000A,
PICO_CURRENT_CLAMP_200A_2kA_2000A,

Running in voltage mode will not do this and so you will read nothing.
Martyn
Technical Support Manager
Nikola
User
User
Posts: 3
Joined: Thu Sep 05, 2024 9:16 am

Re: TA301 Current Probe channel Setup

Post by Nikola »

Hi Martyn

This is how I am attempting to set the range:

Imports.SetChannel(_handle, Imports.Channel.CHANNEL_C, 1, Imports.Coupling.DC,
PicoConnectProbes.PicoConnectProbes.PicoConnectProbeRange.PICO_CURRENT_CLAMP_200A_2kA_500A, 0);
_channelSettings[2].enabled = true;
_channelSettings[2].range = PicoConnectProbes.PicoConnectProbes.PicoConnectProbeRange.PICO_CURRENT_CLAMP_200A_2kA_500A;

This is how I set up the trigger on channel C:

short triggerVoltage = Scaling.mv_to_adc(300, (uint)_channelSettings[(int)Imports.Channel.CHANNEL_C].range, maxADCValue);

Imports.SetSimpleTrigger(_handle, triggerVoltage, Imports.Channel.CHANNEL_C, 0, Imports.ThresholdDirection.Rising, 0, 0);

How ever I get a runtime exception here on the return statement:

/****************************************************************************
* mv_to_adc
*
* Convert Scaled value (voltage or Probe units) to ADC value
* Inputs:
* - double - "scaled" value
* - ChannelRangeInfo (Used to scale the raw data)
* - Scopes "maxADCValue" used
****************************************************************************/
public static short mv_to_adc(double scaled, uint ChannelRange, short maxADCValue)
{
return (short)((scaled / (double)(inputRanges[ChannelRange])) * maxADCValue);
}


Saying:
System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'

My input arguments to the function are:
scaled = 300, ChannelRange = 4008, maxADCValue = 32767.

Is there something I am missing for the channel setup to set the trigger up on the current clamp channel?
Post Reply