LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dll calling with LabView

I'm calling a DLL that uses structures as the
data type, I'm using Labview 5.1, but I don't
know how to define this type of data in the
LabView Dll datatype dialog. Does anybody can
help me?

Carlos


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 5
(2,795 Views)
Hi Carlos,

> I'm calling a DLL that uses structures as the
> data type, I'm using Labview 5.1, but I don't
> know how to define this type of data in the
> LabView Dll datatype dialog. Does anybody can
> help me?
If there are pointers in the structures, you have to write
a interface DLL or CIN.
If not, you can build a string in labview containing the
data of the structure and pass it to the dll as pointer
to the string.

Martin


Martin Henz Systemtechnik
Dipl. Ing. (FH) Martin Henz
Walchensee Str. 3
70378 Stuttgart
Tel. ++49-711-5302605
Fax ++49-711-5058649
http://www.mhst.de
0 Kudos
Message 2 of 5
(2,795 Views)
You can select "adapt to type". Build a bundle with all the datatypes in the
structure and wire it to the dll. (save the vi, LabVIEW will crash if it
isn't exactly the same). This will work in most cases. Make sure the cluster
order is right. If the dll requires string pointers, you've got a problem...

Regards,

Wiebe Walstra

--
AIR technical Automation
www.air.nl
wrote in message
news:8st6p0$s76$1@nnrp1.deja.com...
I'm calling a DLL that uses structures as the
data type, I'm using Labview 5.1, but I don't
know how to define this type of data in the
LabView Dll datatype dialog. Does anybody can
help me?

Carlos


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 3 of 5
(2,795 Views)
You can write your DLL, include this dll, and to describe structure as single
elements in your DLL. This work in all cases.
Sorry for my English 🙂

"AIR Tech. Autom." wrote:

> You can select "adapt to type". Build a bundle with all the datatypes in the
> structure and wire it to the dll. (save the vi, LabVIEW will crash if it
> isn't exactly the same). This will work in most cases. Make sure the cluster
> order is right. If the dll requires string pointers, you've got a problem...
>
> Regards,
>
> Wiebe Walstra
>
> --
> AIR technical Automation
> www.air.nl
> wrote in message
> news:8st6p0$s76$1@nnrp1.deja.com...
> I'm calling a DLL that uses structures as the
> data type, I'm using Labview 5.1, but I don't
> know how to de
fine this type of data in the
> LabView Dll datatype dialog. Does anybody can
> help me?
>
> Carlos
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
0 Kudos
Message 5 of 5
(2,795 Views)
Hi,

Select the "Adapt to type" option. You can then wire a bundle to the dll.
Dll's requiring string pointers, cannot be handled this way. If you have
only one string, you can download the vi 'StringToPointer' from our
homepage. This causes problems if you need more stringpointers.

Regards,

Wiebe Walstra.

--
AIR technical Automation
www.air.nl
wrote in message
news:8st6p0$s76$1@nnrp1.deja.com...
I'm calling a DLL that uses structures as the
data type, I'm using Labview 5.1, but I don't
know how to define this type of data in the
LabView Dll datatype dialog. Does anybody can
help me?

Carlos


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 4 of 5
(2,795 Views)