03-01-2011 07:17 AM
hi all swordmen,
I have the problem with following dll call parameter setup.Who can help me to done it? after function declare is parameter instructions. Waiting for the solutions on line.
Thank you very much.
MIL_ID MbufAlloc2d(
)
Specifies the system on which to allocate the buffer. This parameter should be set to one of the following values:
Value | Description | |
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. Specifies the default Host system of the current MIL application. |
|
MIL system identifier |
Specifies a valid system identifier, which you have allocated using the MsysAlloc() function. |
Specifies the buffer width. The units are determined by the selected buffer attribute. For example, if the buffer has an image buffer attribute, specify the width in pixels.
Specifies the buffer height. The units are determined by the selected buffer attribute. For example, if the buffer has an image buffer attribute, specify the height in pixels.
Specifies a combination of two values: the depth and type of the data. Specify the depth of the buffer as one of the following:
Specifies the address of the variable in which to write the buffer identifier. Since the MbufAlloc2d() function also returns the buffer identifier, you can set this parameter to M_NULL. If allocation fails, M_NULL is written as the identifier.
03-02-2011 07:01 AM
is anybodu can help me? I waiting.... Please ...
03-02-2011 10:37 AM
@Bit880 wrote:
is anybodu can help me? I waiting.... Please ...
Have you tried anything yourself yet? If so, what were the results, and can you attach your VI? Do you have any more documentation or a better explanation of what you are trying to accomplish? What is the definition of the MIL_ID data type? Assuming that MIL_ID is a simple numeric type, there's nothing complicated about this - just set up the call library node to match the parameter list.
03-04-2011 09:09 PM
thank you,, I try it, because it must be get hardware to test, I setup the parameter to test it, not response.So that I show the pictures, please give me advices. the last two parameters setup.
03-04-2011 11:05 PM - edited 03-04-2011 11:06 PM
I'm sorry, but your dialog box is unreadable. Is that Japanese or Chinese or something else?
Unless you can post a screenshot with a dialog box in English, the help you will be able to get will be extremely limited.
03-22-2011 07:52 AM
hi ,swordmen,
only this function, can anyone help me to solute this?
MIL_ID MbufAlloc2d(
)
03-22-2011 03:00 PM
@Bit880 wrote:
hi ,swordmen,
only this function, can anyone help me to solute this?
MIL_ID MbufAlloc2d(
MIL_ID SystemId,long SizeX,long SizeY,long Type,MIL_INT64 Attribute,MIL_ID *BufIdPtr)
Honestly we can't. We can only guess what MIL_ID means without the header file and seeing your Call Library Node setup I would assume that you forgot to set your last parameter to be passed by Pointer, but I can't say much more than that without more information.
03-23-2011 07:48 AM
hi rolfk,
at the tip head, you can see the detail of all of this function parameters describe, so you can see it and whether you can help me to solute this question. thank you !!!
best wishes.
03-23-2011 08:07 AM - edited 03-23-2011 08:12 AM
No I can't. Tell me where the type definition of MIL_ID should be found! And M_DEFAULT_HOST, and MIL_INT64, and M_NULL. I can guess most of them except MIL_ID, but by guessing you always have a good chance to guess wrong, according to Murphy! With the header attached to the post I could make sure!
This doesn't even address the fact that due to the Chinese characters I can't be sure if you forgot to configure the last parameter to be passed by Pointer or if that fact is simply just hidden by those characters. With the VI attached to the post I could verify this.
03-25-2011 07:16 AM
MIL_ID MbufAlloc2d(
)
I read some files,so I can give
MIL_ID ----INT32
MIL_ID systemid ---INT32
long sizex ---INT32
long sizey ---INT32
long type ---INT32
MIL_INT64 Attribute ---INT64
only this I really confuss how to setup it
--------------------------
MIL_ID *Ptr
-------------------------