LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get rid of the error-"CVI has detected inconsistency in runtime stack.This may be due to calling convention mismatch in last function call."

Hi,
 
Thanks for your information.
 
Now that error is not coming.But the driver function is not returning correct value.
I also checked all parameters passed to it,they are correct only.
 
i32err1=(*ProcAdd1)(resourceName,topology,simulate,resetDevice,vi);
 
i32err1 ,it is giving some garbage value.
 
Please suggest one solution for this.
 
Regards,
Harika.
 
0 Kudos
Message 11 of 15
(1,363 Views)
Hi Harika,

I don't work on the NI Switch R&D team so I wouldn't feel comfortable providing you with educated guesses on that issue. I would suggest posting to the Switch Hardware and Software forums. That forum is for the NI Switch products.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 12 of 15
(1,355 Views)
Hi Harika,

If you have already posted to the NI switch forum, please post a link to that discussion.

I will be looking into that error, but it would be helpful to know which switch module you are working with.

If you could also show which switch driver function is being called.  I will be looking into this, but that information would help us to resolve your issue more quickly.

Have a great day,

Michael D
Applications Engineering
National Instruments
0 Kudos
Message 13 of 15
(1,342 Views)

Hi,

I have posted the link in NISwitch forum.

I am working with PXI 2532(switchmatrix) and PXI 2569(Relay).For every driver function i am calling it is giving some garbage value.

I have called niswitch_InitWithTopology,niswitch_close,niswitch_Connect,niswitch_Disconnect,niswitch_DisconnectAll driver functions.

For every function it is giving same garbage value as -1074130544

Please suggest some solution for this.

Regards,

Harika.

 

 

0 Kudos
Message 14 of 15
(1,334 Views)
Hi Harika,

The error you are seeing is caused by not getting a proper instrument session started.  I think the best place to pursue this further will be in the NI-Switch forum.  Can you please post a link to that discussion in this thread, so that I can help you further in that forum?

I would begin by looking at this document and its related links, but will investigate this further and carry on with you getting this resolved in the NI-Switch fourm.

Have a great day,

Michael D
0 Kudos
Message 15 of 15
(1,324 Views)