Test and Measurement Forum

Data types

Post general discussions on using our drivers to write your own software here

Data types

Postby Karunen » Thu Sep 04, 2014 8:13 am

Hi All,

As some of you many have noticed the data types have changed in the Software Development Kits for our products from version 10.5.0.32 to use data types defined in the stdint.h header file. This is because the drivers now are created in compliance for 64-bit operating systems.

To make thing clearer I have created a table that shows all the new data types and how they vary using some different programming languages:

Data types.png
Data Type Table (Click to view larger image)

* As we generate prototype files for MATLAB it is best to use these files rather than making calls using the API we provide for the C examples as these will also provide access to enumerations and structures defined in the header files.

Normally you can use the same data types independent of the number of bits that your compiler uses, but 64-bit versions of National Instruments LabVIEW can have an issue with the C-style callback functions and so you will need to change the IpReady and pParameter to Unsigned 64-bit Integer data types in the RunBlock ‘Call library Function Block’.

For more information about the LabView ‘Call library Function Block’ please have a look at http://www.picotech.com/support/topic12601.html

I hope this helps you get started in coding in your preferred language with the PicoScope/PicoLog API functions.

Kind Regards,
Karunen

Technical Specialist
Pico Technology
Karunen
Zen Master
Zen Master
 
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: Data types

Postby dfergenson » Tue Mar 08, 2016 10:37 pm

AndrewA asked if I would post Xojo equivalent data types for C/C++ as well. I've omitted all other programming environments other than VB.net which is Xojo's closest relative.

Please contact me through the forum if you find any errors or additions and I will update the chart.
Attachments
Screen Shot 2016-03-08 at 2.29.31 PM.png
dfergenson
Newbie
 
Posts: 0
Joined: Fri Mar 04, 2016 8:58 am


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests