05-21-2015 05:03 AM - edited 05-21-2015 05:17 AM
Hi All,
I am developing a device driver which based on serial communication. Attached project file represents a base class Communicant and other child classes of it. Let’s focus on ‘CommuncantSeriaPort class’,
Method VI’s: OnStart.vi :- Is for initializing the Communication – VISA Open
OnSend.vi :- Is for sending a string through Established Communication – Visa Write
OnReceive.vi:- is for Receiving string through Established Communication – Visa Read
I am new LVOOP, What I want to achieve is,
If there are two serial port devices connected and user wants to use them simultaneously then how to achieve this using singleton concept and DVR concept?
It will be great if anybody would guide me through..
Thank you..
Regards,
Amit
05-21-2015 06:47 AM
05-21-2015 06:49 AM
05-21-2015 07:08 AM
Hi Mike,
Thank you for your response. My understanding is Singlton is making sure to have only ONE copy(Instance) in memeory .
For example at the very begining user initalize COM1 port, so one instance of class is created in the memory,
Now, user wants to initialze COM port 2 then, I need to call fresh copy of Class instance but at the same time how to save and reuse first instance ?
Thank you.
05-21-2015 07:39 AM
05-21-2015 08:49 AM - edited 05-21-2015 08:51 AM
Start here...
http://www.notatamelion.com/2015/04/06/objectifying-labview/
and then here...
http://www.notatamelion.com/2015/04/13/objectifying-the-testbed/
Mike...
05-22-2015 02:59 AM
Thank you Mike..this links have significant info for beginner like me.