PicoLog 1000 Series problem with Labview 2014 64 bit

Post your LabVIEW discussions here
Post Reply
gamemakerh
Newbie
Posts: 0
Joined: Fri May 29, 2015 1:10 pm

PicoLog 1000 Series problem with Labview 2014 64 bit

Post by gamemakerh »

I am very fresh with labview and pico hardware.
I encountered problem when I do not know What that handler do in picoLog example files.

Why handle have to be 0 ? and why my PICO_STATUS is 3 ?

Does it mean that 3 -> 03 -> PICO_NOT_FOUND ?

I trying debug with pl1000OpenUnit block

Code: Select all

This function opens and enumerates the unit

Returns:
PICO_OK
PICO_OS_NOT_SUPPORTED
PICO_OPEN_OPERATION_IN_PROGRESS
PICO_EEPROM_CORRUPT
PICO_KERNEL_DRIVER_TOO_OLD
PICO_FW_FAIL
PICO_MAX_UNITS_OPENED
PICO_NOT_FOUND              <-------------  This error code is on my example ? yes ?
PICO_NOT_RESPONDING

handle: the function will write a value here that uniquely identifies the data logger that was opened. Use this as the [handle] parameter when calling any other PicoLog 1000 Series API function
Attachments
Problem
Problem

gamemakerh
Newbie
Posts: 0
Joined: Fri May 29, 2015 1:10 pm

Re: PicoLog 1000 Series problem with Labview 2014 64 bit

Post by gamemakerh »

I managed to fix that error, but I encountered with another problem.

pl1000GetUnitInfo block is mistery for me...

Code: Select all

This function returns a string containing the specified item of information about the unit.

Returns:
00 PICO_OK
0C PICO_INVALID_HANDLE
16 PICO_NULL_PARAMETER
29 PICO_INVALID_INFO
2A PICO_INFO_UNAVAILABLE

handle: handle returned from
pl1000OpenUnit
pl1000OpenUnitProgress

string: a location where the function writes the requested information, or [NULL] if you are only interested in the value of [requiredSize] 

stringLength: the maximum number of charakters 
that the function should write to [string] 

requiredSize: a location where the function writes the length of the information string before it was truncated to [stringLenght]. If the string was not truncated then [requiredSize] wil be less than or equal to [stringLength].

info: the information that the driver should return. These values are specified in [picostatus.h]
PICO_DRIVER_VERSION
PICO_USB_VERSION
PICO_HARDWARE_VERSION
PICO_VARIANT_INFO
PICO_BATCH_AND_SERIAL


From labview I get this:
PICO_STATUS 13 (decimal) 0D (hex). does it mean that 0D error is PICO_INVALID_PARAMETER ?


How to fix this problem ?

BTW I found mistake in programers guide (I think) PICO_INFO have to be Unsigned Long 32 integer with pointer.


This is screen of my program.
Attachments
screenas.JPG

Hitesh

Re: PicoLog 1000 Series problem with Labview 2014 64 bit

Post by Hitesh »

Hi gamemakerh,

Could you please detail the data types for the parameters defined in the Parameters tab of the pl1000GetUnitInfo Call Function Library Node?

It's possible that a data type might be defined incorrectly.

You are right, the PICO_INFO type should be an unsigned 32-bit integer as that is how it is defined in the picoStatus.h file in the SDK.

Regards,

gamemakerh
Newbie
Posts: 0
Joined: Fri May 29, 2015 1:10 pm

Re: PicoLog 1000 Series problem with Labview 2014 64 bit

Post by gamemakerh »

This is all blocks which I created with Programmers guide.
Attachments
PICOLOG_DLL_PROGAMA_R1.vi
(14.17 KiB) Downloaded 540 times

AndrewA
PICO STAFF
PICO STAFF
Posts: 400
Joined: Tue Oct 21, 2014 3:07 pm

Re: PicoLog 1000 Series problem with Labview 2014 64 bit

Post by AndrewA »

Hi gamemakerh,

I opened your vi file, PICO_INFO in pl1000GetUnitInfo function is value not a pointer.
See page 10- https://www.picotech.com/download/manua ... g-en-3.pdf
Regards Andrew
Technical Specialist

gamemakerh
Newbie
Posts: 0
Joined: Fri May 29, 2015 1:10 pm

Re: PicoLog 1000 Series problem with Labview 2014 64 bit

Post by gamemakerh »

When I change Pointer to Value only and try to run program, Labview Instantly Crash.

Hitesh

Re: PicoLog 1000 Series problem with Labview 2014 64 bit

Post by Hitesh »

Hi gamemakerh,

Could you please post the following screenshots:

1. What inputs are going into the Call Function library node (if it has changed from your earlier post).
2. The Properties windows for the pl1000GetUnitInfo Call Function Library Node so we can see how each of the parameters has been defined.

Thanks,

Post Reply