I have to build a dll under cvi and use it under labview. my problem
is to pass a value to this dll from labview.
But when I use it, labview return an error code and close the
software...
I can return value from the dll to labwiew but not the contrary. can
you help me please.
I am a beginner and I am sorry for my english..."
don't think it's a calling convention beceause When I use the box
"call a dll" in labview and I select my dll, I can see all functions I
have create in the dll (just the extern functions). for the datatype,
I use int or unsigned int and sometimes char. and I can receive this
value in labwiew...
but for the pointer that's certainly my problem
this is the sourcecode of my function. I drive a digital to analogue
converter and I want to select the exit (There is 4 exit 0x00,01,10,11
)and a voltage (0 to 255 in d=E9cimal):
void __stdcall dac_sortie_tension (int sortie, int tension)
{
=09outp(LPT1+0x000,4); /* not important*/
=09outp(LPT1+0x400,sortie);
=09outp(LPT1+0x000,2); /* ecriture de l'adresse2*/
=09outp(LPT1+0x400,0x00); /* not important*/
=09outp(LPT1+0x000,3); /* not important*/
=09outp(LPT1+0x400,tension);/*write voltage*/
}
if I use a constant to "sortie" & "tension" it's OK...
I try to use this:
void __stdcall dac_sortie_tension (int *sortie, int *tension)
but it's the same..."
when I select the fonction in labview, I can see them
but there isn't argument' ("sortie" & "tension") and I have a void
like this:
void fonction (void)
what is the problem..
I can give argument to the function but there aren't used..."