crewex
2008-08-12 17:10:08 UTC
I have a sub vi that is supposed to detect when a new com port becomes active, however it is not supposed to run everytime, only when the number of com ports change. That part is figured out.I am using an event structure to determine when it runsI desire the event to be run when length of the com port name array changes (i.e. when a new device is added, or removed). I attached a value change event to the array that list all the com ports (visa find output)However, from what I can tell, events are only triggered by controls(inputs), not by indicators(outputs)Anybody know why? or how to make it work in this fashion?Addendum: Can the event be inside of the sub VI or does it have to be in the VI?
visa probe ports (SubVI).vi:
http://forums.ni.com/attachments/ni/170/348722/1/visa probe ports (SubVI).vi
visa probe ports (SubVI).vi:
http://forums.ni.com/attachments/ni/170/348722/1/visa probe ports (SubVI).vi