06-03-2008 01:39 AM
06-03-2008 03:54 AM
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
06-03-2008 03:59 AM
Hi mathan,
you can create a cluster of 5 U8 elements.
Mike
06-03-2008 04:35 AM
how to initialize this?
Mathan
06-03-2008
03:13 PM
- last edited on
12-09-2025
10:48 PM
by
Content Cleaner
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
06-05-2008 07:17 AM
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
06-05-2008 07:21 AM - edited 06-05-2008 07:22 AM
Hi mathan, ![]()
use as type "adapt types" or similar, it´s the the last but one element.
Mike
06-06-2008 06:04 AM
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
06-06-2008
11:56 AM
- last edited on
12-09-2025
10:49 PM
by
Content Cleaner
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?