LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

help on structure

Dear all,
 
I need big help. Please see the link and give me a sample structure how to initialize this in a dll. I can't able to understand it.
 
Thanks,
Mathan
0 Kudos
Message 1 of 9
(1,871 Views)

Dear all,

How to implement this in LabVIEW?

struct {
    BYTE
        bCla,   // The instruction class
        bIns,   // The instruction code
        bP1,    // Parameter to the instruction
        bP2,    // Parameter to the instruction
        bP3;    // Size of I/O Transfer
} CmdBytes;

Thanks,

Mathan

0 Kudos
Message 2 of 9
(1,855 Views)

Hi mathan,

you can create a cluster of 5 U8 elements.

Mike

Message 3 of 9
(1,853 Views)

how to initialize this?

Mathan

0 Kudos
Message 4 of 9
(1,846 Views)
Hi Mathan,

After you create the cluster constant with U8, you would just have to type the initial value in. Check the second step of this link
Warm regards,
Karunya R
National Instruments
Applications Engineer
Message 5 of 9
(1,817 Views)

Hai,

Thanks for the response. I have created a cluster constant with 5 U8 values.

my problem is i have to pass this structure as an input(LPCBYTE) to pbsendbuffer parameter in that dll.

how to do this?

Thanks,

Mathan

0 Kudos
Message 6 of 9
(1,790 Views)

Hi mathan, Smiley Happy

use as type "adapt types" or similar, it´s the the last but one element.

Mike



Message Edited by MikeS81 on 06-05-2008 02:22 PM
Message 7 of 9
(1,788 Views)

Dear mike,

Thanks for that reply. I will give it a try.

BTW,

BOOL QueryPerformanceCounter(      
    LARGE_INTEGER *lpPerformanceCount );

Parameters:      lpPerformanceCount     [out] Pointer to a variable that receives the current performance-counter value, in counts.

Return Value:  If the function succeeds, the return value is nonzero.

How to initialize this in the dll(kernel32.dll)

Thanks,

Mathan

0 Kudos
Message 8 of 9
(1,753 Views)
Hi Mathan,

I just need some information on what you are trying to achieve. Are you trying to call external code in LabVIEW? Or are you just trying to create an equivalent program in LabVIEW for your text based program?

If the answer to the first question is true, then I would take a look at this. Have you checked this out?


Warm regards,
Karunya R
National Instruments
Applications Engineer
Message 9 of 9
(1,729 Views)