Test and Measurement Forum

PICO_INVALID_CHANNEL errors

Post your LabVIEW discussions here

PICO_INVALID_CHANNEL errors

Postby MarkPotter » Tue Jun 12, 2012 9:07 pm

Hi;- I have recently got Labview V11.0.1 (32 bit) and am writing an application for a Picoscope 3204B oscilloscope using the PS3000asdk_r10_4_1_1 SDK (which was the newest one a couple of weeks ago when I downloaded it)

In all the examples and when trying to use the VIs included in the picoscope3000a LLB in my own program I get PICO_INVALID_CHANNEL errors (chiefly from the error handler in picoscope3000asettings.VI at the ps3000aSetSimpleTrigger step). the 4 channel card flag is set to FLASE in all cases (correct for my card). Oddly, the only time the card acquires data without triggering an error is with the trigger disabled and the channel number set to C or D (which shouldnt exist). Sometimes the card also returns data despite the error condition stopping the program.

I am tempted to simply rip out the error trapping and see if I get good data, but would prefer to know why it is doing this - is it a known problem? I know that in some bits of the code the channels are listed D to A rather than A to D, and wonder if the channel order may be wrong in the code, but this still doesn't explain all the errors.

thanks for any help anyone can give.

<edit> - update after further analysis (OK you may spot this is about a minute after my original post, but thats just coincidence, i am posting as i work on the problem...)

I can confirm that with Trigger Enabled set to FALSE the card will only run with channels C or D selected, so it looks like the channel order is transposed.

HOWEVER, when I turn trigger Enabled on, if channel A or B is selected i still get the PICO_INVALID_CHANNEL error as above. if C or D is selected, which presumably are "valid" channels I get a PICO_INVALID_TRIGGER_PROPERTY error instead (it seems to work in EXT trigger mode, so at least I have a workable option to get data).

Is it possible to trigger from the data channels with this card (it certainly was with the previous generation picoscopes), and what do i need to do to make it work?

Mark.
MarkPotter
User
User
 
Posts: 2
Joined: Thu Oct 09, 2008 3:43 pm
Location: Coventry

Re: PICO_INVALID_CHANNEL errors

Postby Hitesh » Wed Jun 13, 2012 11:37 am

Hi Mark,

I'll contact you via the Helpdesk to provide an updated dll.

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: PICO_INVALID_CHANNEL errors

Postby BenQ_5 » Sat Jun 23, 2012 5:38 am

hello, if you are tri¡ying to use the chanel A or B calling the function setsimple trigger you will be obtain the error described for you, so you must able the external trigger or if you want to use the same channel for data adquisition and for trigger you need to use the advanced trigger obtion contained into the SDK, you cant read about it in the programmers guide.

Best regards
BenQ_5
Newbie
 
Posts: 0
Joined: Mon Feb 13, 2012 2:39 am

Re: PICO_INVALID_CHANNEL errors

Postby Joachim198 » Thu Sep 13, 2012 8:34 am

Hi!
I read the answers but have still got the same Problem. Newest SDK from homepage and a Picoscope 3204 B. The examples in the SDK only show PICO_INVALID_CHANNEL. When I start error 5016 by ps3000aSetSimpleTrigger. What do I have to change and where? Thanks

Regards
Joachim
Joachim198
Newbie
 
Posts: 0
Joined: Thu Sep 13, 2012 8:30 am

Re: PICO_INVALID_CHANNEL errors

Postby Hitesh » Fri Sep 14, 2012 10:04 am

Hi Joachim,

Please download the latest PS3000a SDK version 10.4.3.1 from our website:

http://www.picotech.com/software.html

In Step 1, select your device and in step 2, select the Software Development Kit option - this will contain the updated dll.

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: PICO_INVALID_CHANNEL errors

Postby Joachim198 » Mon Sep 17, 2012 8:23 am

Works fine now! Thanks!
regards
Joachim
Joachim198
Newbie
 
Posts: 0
Joined: Thu Sep 13, 2012 8:30 am


Return to LabVIEW

Who is online

Users browsing this forum: No registered users and 0 guests