NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

null testData->seqContextCVI

I am calling a dll from within teststand 3.0 using the CVI adapter. I have CVI 7.0. The function prototype inmy DLL is:

int __declspec(dllexport) __stdcall PrepareDatabaseFile(tTestData *testData, tTestError *testError)

Whenever TS executes this step testData->seqContextCVI is null. This is the first step in my sequence.

I don't know how to start debugging this problem. Where can I look to see why the sequence handle is not being passed correctly to CVI.

Thanks!
Martin Blandon
martin.blandon@gmail.com
0 Kudos
Message 1 of 4
(3,087 Views)
Hello,

You can look at what you are passing to the dll. In the Specify Module window, look to see what TestStand variable you are passing to the first input. Make sure that you are the sequence context is being passed correctly to the dll from there. If you continue to have problems, I would recommend creating looking at the code template for the CVI Action step. You could access the code template yourself, or use the Create Code option in the Source Code tab of the Specify Module window. I hope this helps you get started. Take care and good luck!

Regards,

Aaron B.
National Instruments
0 Kudos
Message 2 of 4
(3,079 Views)
In the specify module dialog box, select your tTestData parameter and make sure the Pass Sequence Context option is checkmarked in the Parameter Details box.
0 Kudos
Message 3 of 4
(3,071 Views)
Thanks Aaron and James.

It turns out that the Pass Sequence Context option was unchecked when I choise to verify the function prototype in the other tab where you specify the source code and project files.

I had to re-check it and I now get the sequence context handle.

Thansk for the help!
Martin Blandon
martin.blandon@gmail.com
0 Kudos
Message 4 of 4
(3,064 Views)