Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

C Pointers and Labview ?

Hello,
 
I am using a GT658 TIA board and I would like to have some help running it with LabVIEW.
 
I can setup the board using the Call Library Function and the board's DLL. My problem is with these 2 functions:
 
GT65X_add_unpacked_chan(&MeasureObj, 0, TimeData, EventData, ARRAY_SIZE);
GT65X_mrs_obj_read(&MeasureObj, ARRAY_SIZE, 0);
 
MeasureObj: Structure
TimeData: Array of doubles
EventData: Array of UINT32
ARRAY_SIZE : UINT32 constant.
 
My problem is that when I do the obj_read, the measured values I want are in the TimeData/EventData array, but the function doesn't return the arrays. So I am guessing that the obj_read function is using a pointer to the TimeData/EventData array to return the data.
 
How can I access the TimeData/EventData array if the obj_read function doesn't return the array ? Is there a way I can access the wanted array from memory ?
 
Take care,
 
 
Joao Araujo
0 Kudos
Message 1 of 3
(5,907 Views)

Hi Joao,

I think this example will give you an idea of how to accomplish the task:

Retrieve Data from a C Array Pointer in LabVIEW

Hope this helps,
Ankita
0 Kudos
Message 2 of 3
(5,895 Views)

Hi Ankita, Do you know how to write values from labview to a pointer?

0 Kudos
Message 3 of 3
(3,598 Views)