LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass an int64 variable by reference from CVI to Teststand

I have a function called AA_Dat_Get_Statistics written in C. When I call this function in TestStand, system errors show up later, sometimes TestStand will hang, and showing a variable in the watch window will also crash TestStand. If I take out this function from my sequence calls, Teststand stops crashing or returning system level errors.
 
The function AA_Dat_Get_Statistic( Stats_Records *p_stats ) allocates memory, calls a device to get statistics, and populates p_stats. I can call AA_Dat_Get_Stastics without seeing any problem with a program written in C.
 
I think the system level errors (typically -17000) are because Stats_Records contain unsigned _int64 variables. I represent these variables in TestStand with two 32 bit doubles. There is also a union that converts a _int64 variable to a double.
 
AA_Dat_Get_Statistic( *p_stats ){
 
typedef union {
 
 
}
 
 
}
0 Kudos
Message 1 of 1
(2,869 Views)