07-28-2014 09:23 AM
Hi everyone
I need to know how to implement a single VI (without using the copies of that VI) which takes different inputs at different instance but the inbuilt functionality being same.
For example, I need to write data of COM1 to one excel at time instance T1
I need to write data of COM2 to another excel at time instance T2. (T1+n)
According to above example the functionality is same i.e writing to excel file. But inputs are taken from different Port outputs. I tried concept of Polymorphic VIs but i found it id restricted to variation in data types.
Plese let me know whether I can use concept of Polymorphic VI in any way to solve this problem? Or completely different solution is there?
Thanks in advance!
07-28-2014 09:32 AM
I understand your request to fit to "reentrant VI settings".
But depending on the content of the VI, this can create race conditions and other hard-to-debug things....
Norbert
07-28-2014 09:33 AM
Hi divyaa,
split functionality into several VIs:
- one VI to communicate with your COM ports (one for each port?)
- one VI to save data "in Excel"
Call each subVI when needed (according to your T1/T2 parameters).
I don't think polymorphic VIs will help you here!