LAVA: LabVIEW OOP By Ref? - LAVA

Jump to content

  • (4 Pages)
  • +
  • « First
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

LabVIEW OOP By Ref? Rate Topic: ***** 1 Votes

#61 User is offline   Thang Nguyen 

  • Very Active
  • PipPipPip
  • Group: Members
  • Posts: 192
  • Joined: 06-February 07
  • Location:Massachusetts
  • Version:LabVIEW 2009
  • Since:2006

Posted 20 November 2009 - 07:36 PM

Hi,
I would like to know what is the advantage of this reference solution compare with using a data queue + semaphore? It should be similar with command queue in the active pattern of SciWare but it has the semaphore to protect the read and write data.

Best regards,
Thang Nguyen
Nothing is impossible, just do it!!!
0

#62 User is offline   Aristos Queue 

  • LV R&D: I write C++ so you don't have to.
  • Group: NI
  • Posts: 1,873
  • Joined: 15-August 06
  • Location:Austin, TX
  • Version:LabVIEW 8.6
  • Since:2000

Posted 20 November 2009 - 11:00 PM

View PostSciWare, on 22 September 2009 - 10:55 PM, said:

I view it as child needs to be able to lock parent, but parent shouldn't lock child.
If you're facing this situation, I think the correct answer is to eliminate the inheritance relationship in favor of a container class that contains both "parent" and "child" as separate internal objects. Then you are back to only having mutex locking on an entire object.
0

#63 User is offline   Aristos Queue 

  • LV R&D: I write C++ so you don't have to.
  • Group: NI
  • Posts: 1,873
  • Joined: 15-August 06
  • Location:Austin, TX
  • Version:LabVIEW 8.6
  • Since:2000

Posted 15 January 2010 - 09:10 PM

View PostTomi Maila, on 22 September 2009 - 09:01 AM, said:

Can you Stephen please update the document to contain reasons why DVR terminals do not support dynamic dispatching?

I never did get around to updating the white paper, but I typed this up today:
http://forums.ni.com...p/1054548#C3855
0

#64 User is offline   Daklu 

  • The 500 club
  • Group: Premium Member
  • Posts: 832
  • Joined: 26-January 07
  • Location:Seattle
  • Version:LabVIEW 8.6
  • Since:2006

Posted 16 January 2010 - 06:06 PM

View PostAristos Queue, on 15 January 2010 - 09:10 PM, said:

I never did get around to updating the white paper, but I typed this up today:
http://forums.ni.com...p/1054548#C3855


Good info AQ. Can I talk you into a cut 'n paste into the white paper? Posted Image I'm much more likely to be able to find that again than a post in the Idea Exchange.
Dak's First Law of Problem Solving: If the solution looks simple, I don't know enough about the problem.

Pimping my Ideas: Interfaces, Constructors, and Quick Drop
0

Share this topic:


  • (4 Pages)
  • +
  • « First
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic