LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GoF Adapter design pattern

Hi, all,

Is it possible to implement anything like the Adapter design pattern in LabVIEW? I'm thinking of a situation where we are running a system test application in which the devices in the system may be either simulated or real. The Adapter pattern would allow such decisions to be deferred until runtime by plugging hardware implementations into VIs representing the abstract devices.

Thanks,
- Steve.
0 Kudos
Message 1 of 6
(3,202 Views)
Sure, I've done that a few times.

I have used VI Server for this. If you use Run VI function, it's almost the
same as calling a normal VI. But all connector panes of the VI's you want to
call have to be the same. If you want to determine the connector pane
controls at run time you can do so with Set Control methods.

LabGOOP can also do this, although I'm not sure if you can load objects
during run time. It's to heavy for me.

Regards,

Wiebe.


0 Kudos
Message 2 of 6
(3,178 Views)
Thanks. I modified a copy of the LVOOP stopwatch demo to insert different "movements." -S.
0 Kudos
Message 3 of 6
(3,113 Views)
Can you post a link to the stopwatch demo that you mentioned? I haven't heard of it before.

0 Kudos
Message 4 of 6
(3,044 Views)
0 Kudos
Message 5 of 6
(3,042 Views)
Thanks
0 Kudos
Message 6 of 6
(3,040 Views)