Jump to content

SteveChandler

Members
  • Posts

    161
  • Joined

  • Last visited

  • Days Won

    3

SteveChandler last won the day on June 14 2012

SteveChandler had the most liked content!

Profile Information

  • Gender
    Not Telling

LabVIEW Information

  • Version
    LabVIEW 2010
  • Since
    2000

Recent Profile Visitors

28,477 profile views

SteveChandler's Achievements

Newbie

Newbie (1/14)

19

Reputation

  1. Did you specify the project in the step settings? I am by no means a TestStand expert and am just starting to use it but that got me last week. If that isn't the problem then hopefully someone else will be able to help.
  2. In the while loop try terminating on a Server Closed Connection error. Check for and clear that error (I think it is error 56)
  3. Has anyone ever read Vehicles: Experiments in Synthetic Psychology by Valentino Braitenberg?
  4. Many of you have probably seen this, but for those of you who do not frequent the ni forums, I wrote an Apple][ emulator in LabVIEW. http://forums.ni.com...ary/m-p/2017254 [Edit: I just stripped out the ROMs and posted the code on Sourceforge . https://sourceforge.net/projects/labviewapple2/ Feel free to criticize ] Contains sound <object width="560" height="315"><param name="movie" value="http://www.youtube.com/watch?v=l6rnUHIffOA?version=3&hl=en_US&rel=0"></param><param'>http://www.youtube.com/watch?v=l6rnUHIffOA?version=3&hl=en_US&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/watch?v=l6rnUHIffOA?version=3&hl=en_US&rel=0" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
  5. I posted the sprinkler controller here a while ago.
  6. Thanks everybody. I think I have read about the command pattern in the past but never fully understood it. The parts that I did understand must have been stuck somewhere in back of my head because I ended up implementing it. The mini LVOOP Design Pattern KB is awesome! I have never seen those three patterns summed up so concisely like this. jgcode, I am working on something that might end up being cool if I am successful, but mostly I am working on improving my skills. If I ever do anything cool I will definitely share it.
  7. I think that I might take a different approach. The above obviously doesn't work. [Edit: I just saw jgcodes post New LVOOP Design Pattern KB. Is what I am doing below considered the Command Pattern?] What I am thinking is to separate the parent from the children. What used to be the parent in my example will not have any children. Instead I will create another "execution" class that Child A, Child B and Child C inherit from. They will have a dynamic exec.vi that takes the class that used to be the parent as their input. These dynamic VIs will modify the data in that class through it's accessors. I know what I am trying to do is not unique and there is probably a design pattern for this. The dynamic VIs look like this And just for reference here is the "Get Type" VI in the first image.
  8. Because I need to keep the state of the parent for each call to the dynamic VIs. Something similar to this:
  9. I have a class with some attributes. Based on an external integer input I want to execute an algorithm to manipulate the attributes. In the simple example the parent class has a string as it's private data. If the external input is a 0 I want a dynamic VI to store 'Child A' in the private data, 1 stores 'Child B', and 2 stores 'Child C'. The dynamic VIs take no inputs as shown. I got it working. I had the target and reference reversed! I attached the project. Is this the best way to accomplish this type of thing? Children.zip
  10. Thanks both of you. I think I understand. drjdpowell, I am just wiring a constant to the write accessor. All the children look like this I want to select a dynamic VI to execute and modify the parent data based on an index value.
  11. Hopefully the image explains my question pretty well. Can anyone tell me why this doesn't work? What is the correct way to determine which child to cast to based on an external index selection? Do I really need a case structure with the child class constant and a to more specific class for each child?
  12. Do you ever create a control or indicator on a front panel by copying an existing one rather than going to the palette? Maybe you set a bunch of properties on the original and want to copy from that so you don't have to set them again on another control. What is the very first thing you do after copying a new control? You edit the label to give it a new name. But after you make a copy the control is selected and not the label text. This idea is to select the text in the label after making a copy so that it is ready to start typing the new name. About ten percent of the time that I double click the text to select it all I end up turning off size to text. Grr..
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.