LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

structure using dll

Hello all,
does anyone know how to operate on the structure in LABVIEW?
I need to develope the interface in LabVIEW to call the external code WinMCL Plus (developed by GSI Lumonics),
but I do not know how
to operate on the global parameter sets. I try to use DLL to call the function
"MC_set _ParamSet" (see below), but I cannot point to the parameter sets in the "Call Library Function".

MC_set_ParamSet
//         Routine Description:
//                     Set the global DLL Parameter set at Params[Index] to
//                     the values stored in *p
//
//         Parameters:
//                        Index - Parameter set index.
//                        *p             - Pointer to the parameters to set.
//
//          Return Value:
//                        WMCL_OPERATION_OK or WMCL_OPERATION_FAILED.
//
//           Comments:
//
WINMCL32_SPEC unsigned long_stdcall MC_set_ParamSet(int Index, PSET *p);


Any help would be greatly appreciated. Thanks in advance for your help.

Gennady
0 Kudos
Message 1 of 3
(2,852 Views)
 

Gennady,

Check out this link to get some more info...

https://www.ni.com/docs/en-US/bundle/labview/page/configuring-the-call-library-function-node.html

Near the bottom of this link it has the section ;

Calling Functions That Expect Other Data Types

It looks like your best solution would be to create a wrapper that splits up this structure into more basic elements for labview.  Hope this helps.

0 Kudos
Message 2 of 3
(2,842 Views)

Hi Gennady,

I'm starting to work with the same WinMCL plus and LabView.Have you just developed some VIs that can be used to mark and set the card ?

Thanks in advance

Paletta.

0 Kudos
Message 3 of 3
(2,657 Views)