Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/15/2014 in all areas

  1. Of course when you create the constant it is only the VI reference which is strictly typed. If it is subject to change, it should be encapsulated like anything else, and as drjdpowell just mentioned, the Type Def is a natural choice. Somedays I'd say that makes a pretty good slogan for LV....
    1 point
  2. You can also create a constant from a strict reference to the VI, then just delete the reference.
    1 point
  3. Simply create a constant from the reference terminals of Open VI reference or any of the ACBR or CBR nodes and you get a VI Type Specifier constant. You can drag a VI on top of the constant to set the type, or choose browse under Select VI Class on the right-click menu. Either way, the VI you choose is not statically linked, it simply sets the type.
    1 point
  4. Yeah I assume flush would fix this, but cause the index file to be larger than it could be. I handle this by only having the open in one place and reading and writing all comes from that one actor, with messaging to other actors if they want to write, or read data. I understand the concurrent references idea and that is an appealing feature, but race conditions like this can happen and sometimes that doesn't matter, but it sounds like in this case it does.
    1 point
  5. Here is my watchdog example. Just threw this together this morning, so not the greatest coding job, but shows one way I implement this type of thing. Just run the Test-Main.vi. It will launch an "actor" (not a real actor, but something to act as one). If you use the abort, the watchdog will kick in a close the clone, if you use the stop the shutdown will kick in and close the actor. I use a user event within the actor to tell my watchpuppy to stop if the actor has finished its task. WATCHDOG EXAMPLE.zip
    1 point
  6. Jeremy, It was great to see you again and a pleasure to meet your wife. She's probably pre-registered for next year already. She looked like she was having an awesome time. We'd love to have you over for the European CLA summit next year !! You guys should visit Europe. Failing that, see you at NI Week 2015 :-) Chris
    1 point
×
×
  • Create New...

Important Information

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