12-10-2015 10:44 AM
Hi,
I have a serie of polymorphic VIs, that leads to an output problems (broken arrow), see images. I would like the case selector to handle 2 two types (purple and light blue) depending of if it is COM port or TCP/IP communication.
How can I do that? the select funtion isn't polymorphic enough ...
Thanks
FB
Solved! Go to Solution.
12-10-2015 11:36 AM - edited 12-10-2015 11:36 AM
Upload your actual VI(s), we cannot help by only looking at a screenshot...
12-10-2015 12:25 PM
here they are, the VIs
fb
12-10-2015 12:50 PM
Use a variant.
12-10-2015 01:30 PM
Thanks Zou,
Thanks for the reply, have you an idea on how to do that?
12-10-2015 01:31 PM
http://www.ni.com/white-paper/4998/en/
You can use the Variant as input or output for your subVI. You just need to know what is the expected data type to make the conversion. In this way you can use (almost) any data type...
12-10-2015 01:43 PM
12-10-2015 01:44 PM
haha, now i got it 🙂
12-10-2015 08:31 PM
12-10-2015 10:28 PM
Or simply use VISA for both TCP/IP and COM.
Take a look this document:
http://digital.ni.com/public.nsf/allkb/80C28CC795611E4A86256AB100209521