NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

passing struct pointer from teststand to cvi labwindows

Hi,
I'm using teststand 3.5 (3.5.0.725) & cvi 8 (8.0.1).
The teststand struct will be used to send data message which is diffrent every time (meaning a new teststand struct will be created
for every data message) to the cvi driver, for exp:
 
teststand structes (containers)
----------------------------------------
data_msg1
               {
                int var1;
                char var2;
                }
 
data_msg2
               {
                char var1;
                short var2;
               }
 
cvi function
---------------
myFonction (void *DataMsgSent,void *DataMsgRecieved)      
 
The idea is passing (and also recieving)  the pointer of a struct which is defined at teststand (as container) to the cvi driver where in it the needed operations will be poerformed on the memory where the struct is located (using the pointer of course).
When I'm trying to run the teststand I recieve the following error message: "-17704: CVI ActiveX automation server command failed."
I don't even reach the debug step in the cvi.
 
Regards,
             
                Zohar
 
 
0 Kudos
Message 1 of 2
(2,917 Views)
There is no need to answer I've found the problem to be a bad adaptor
 
Regards,
Zohar
0 Kudos
Message 2 of 2
(2,910 Views)