ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pointer on integer

Solved!
Go to solution

Hello all and sorry for this dumb question.

I have done some research on this forum but I didn't find any answers...maybe it is too obvious!

I use the Call Library Function Node to reach a DLL and I have to pass a pointer on an integer but I don't succed.

I tried on a very simple function: void FctIntEtoile (int* Data), which increment Data variable (Data=Data + 1) but it doesn't work!!

Can you help me please?

 

 

Download All
0 Kudos
Message 1 of 6
(3,232 Views)

Since you already selected the correct setup, what is the error you get?

 

Norbert 

 

 

Message Edited by Norbert B on 03-05-2009 10:08 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 6
(3,215 Views)

Hello Norbert.

It is not really an error but if I put, for example, 5 as input I have the output to 5 also when I expect 6. 

0 Kudos
Message 3 of 6
(3,201 Views)

Could you post the sources to your DLL? What is the developement system used to create the DLL?

 

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 6
(3,194 Views)
Solution
Accepted by topic author matbog

Hi,

 

Of course, you perform increment like this:

 

void Your_Functions (short int *Data)
{
    *Data += 1;
}

 

Isn't?

 

Andrey.

Message 5 of 6
(3,152 Views)

Of course......no!

Shame on me!

Sorry for the disturbance and thank you very much!!

0 Kudos
Message 6 of 6
(3,126 Views)