11-14-2011 09:04 AM
Hello,
I realise a calibration application using lvoop
I created class for device and class for xy data containing arrays of mesurements. For the moment devices and class are linked using index. I mean when i realise measurment i have a list of devices and list of xy data so to know wich devices provided wich measurements i use index.
I feel that adding xydata as a property of device could strengten coherence but i’m asking to myslef what impact it could have regarding performance. Because each time i will have to pass a device , attached mesurement will follow.
Do you suggest me to create a reference as property of device pointing on xy data or adding xy data class as a component of device class ?
Regards
Tinnitus
11-14-2011 09:26 AM
Tinnitus,
I do something remarkably similar. I have a generic instrument class which is inherited by a variety of different instrument types. Each Instrument class carries with it a generic "Data" class which in-turn is the parent of data classes specific to the particular instrument. I run fairly high performance applications (that do things such as collect AI at ~2.5 MS/s, perform fits on the data, etc, etc) and I have noticed no major performance issues. That being said - adding an xy data property will increase the memory footprint of the device class. But, I like this approach. Just my two cents.
Cheers, Matt