NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug Error thrown by custom steps

 Hi All,

Greetings to All.
I have created a Custom Step type which has two Pre-steps,1 Edit step and a Post step. I have used C# to develop the code modules.

When i include the Custom step as a part of Sequence file and try to edit it,the pre-step throws error and i'm unable to dubug into the code.Is there  anyways or some settings i need to do ,so that i can debug into my C# code.

The Code runs perfectly  well if i include all the Code modules used to create pre-step,edit step and post-step ass action step in the sequence file.


0 Kudos
Message 1 of 6
(3,882 Views)

Hi,

You have to attach the picture in the attachment control.

Then post the message.

Then immediately Edit the post using the Option Control on the right hand side.

Then make a short cut to the attached file and use that short-cut to insert a picture.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 6
(3,877 Views)
Hi,

Error snap attached
0 Kudos
Message 3 of 6
(3,863 Views)
Post also found here.
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 4 of 6
(3,838 Views)
Hi DRock,

Thanks for the correction.I have mistakenly posted in Machine Vision forum.

Anyways,Switching to problem reported by me.
I'm getting error from Edit step,when i try to edit the Custom step(After adding to sequence at Edit time).
I have created the Object in the Edit step as well as called the method after creation.

I'm attaching MyTypes.ini file,where Custom step is created for your perusal.

Regards
VDC
0 Kudos
Message 5 of 6
(3,814 Views)
Hey VDC,

I think that perhaps this thread will provide you with some more insight into what I think is going on here.

Based upon the dialog in the above thread, it sounds to me like perhaps your Edit module contains references to an object that isn't actually in existence yet - I would recommend investigating this first.

That being said, if you can't figure out what's wrong, I'm happy to continue to try to help. 

Unfortunately without a small example of the assembly and a demonstration sequence file, I won't be able to do much with the Types Palette - though it does look like you've situated the Edit step appropriately. 

Would you be willing to post a small example Assembly that demonstrates this and an example sequence file that demonstrates 1) the error you're getting when using the custom step in your sequence and 2) the fact that this works when using .NET Action steps to call all of the pre-step and edit-steps?






Derrick S.
Product Manager
NI DIAdem
National Instruments
Message 6 of 6
(3,793 Views)