04-18-2014 04:17 PM
I've got a polymorphic VI that I'd like to make a custom steptype out of - so when a user drags it into their sequence from the insertion palette, they get to choose which instance. Right now, it looks like I have to choose the instance when I'm making the custom step type - which means I'll need to have as many custom steptypes as instances 😞 Anyone know how to do this?
04-20-2014 06:26 PM
I don't know Mate. It seems like the LabVIEW VI link is pretty static. I bet you could do it with .Net instead of LabVIEW. I'd ask an AE.
If it is only static, you could put your polymorphic VI inside a wrapper VI that is called as a poststep by the custom step type. Then use OnNewStep to pop open your Edit Dialog right away so the user could select the instance. Once you have the instance selected, you'd have to call it in the wrapper. (Or maybe, add a PostStep for each instance of the poly VI and just skip all the poststeps except the one selected by the config. hmmm, a little wacky.)
Chris Clark
04-21-2014 08:42 AM
Cheers Chris. Yeah, I was thinking about going down the OnNewStep route to have the user select an instance, and then changing the call path of the step to that instance (shouldn't be too hard), but I'd rather not do that if there's some magical swtich in TestStand that means I don't have too.