From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

intersense inertiacube labview driver

HI,
 
Im working on a school project and I have a problem. I am working with a 3D orientation sensor (intersense inertiacube3). I can read this sensor with the help of a joystick emulation driver. But i have some problems installing this driver on some of the test PCs. So i have to develop a labview driver. I have downloaded the intersense intertrax driver for labview but this isnt working. I tried writing a driver myself based on the api and documentation provided with the sensor. but the documentation is about C++ and I have no experience with C at all. I tried to compile the C++ code to labview by using the call library function.
 
I hope someone can help me, I include the documentation.
 
thnx in advance
 
B Bakels
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 1 of 5
(2,938 Views)
The PDF that you included seems to show that you have the necessary library (isense.dll) to access the device.
The functions in that library and the necessary parameters are all listed in the PDF. You should be
able to call the library functions directly with the call library function node. You simply need to be
careful how you pass data to the functions, i.e. pointers to structures can be passed as pointers
to strings of suitable length. You can pack/unpack the structures in Labview.
0 Kudos
Message 2 of 5
(2,930 Views)

I know.. but the input parameters arent clear for me (translating C++ datatype to labview datatype)... and I had a lot of blue screens 😉 when i configured them and ran the VI.

Thnx

Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 3 of 5
(2,922 Views)
Oh, ok. The datatypes are generic and often defined in Windows programming documents. They are not unique to C or C++.

the mappings that you need are:

hwnd, DWORD, Bool, handle -> U32
WORD -> U16
float -> SGL
struct ISD_TRACKER_INFO_TYPE -> character string or U8 array

pointers to structures -> pass as pointer to data for string or U8 array
all others parameters pass as value

Pack data into the ISD_TRACKER_INFO_TYPE according to the same mappings as shown above.


0 Kudos
Message 4 of 5
(2,920 Views)

ok mike thats very usefull i think. The bool is al boolean? How do i use this as u32? 0=False 1=true?

 

 I will work on it tonight, an let you know... thanx

Message Edited by bartb on 03-13-2007 02:56 PM

Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 5 of 5
(2,915 Views)