-
Posts
4,971 -
Joined
-
Days Won
309
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by ShaunR
-
Sweet. I'll take a look! Indeed. That's where the "Disp Service Handler.vi" comes in. This dispatcher uses a similar method to a web server where each incoming connection is negotiated to a different port and a process is spawned to handle that client. However. This spawning only happens for the Publishers. If you look in the Registration part of the Dispatcher you will see I dynamically launch the service handler (whos front panel is hidden). The publisher writes to the service handler, not the clients and the handler deals out the data to the clients. There is a service handler for each publisher and when a subscriber wishes to connect, the Dispatcher sends a new subscriber list to the handler for that service.
-
Indeed. Also If you cut and then paste back again, it will reveal the terminals. 'twas just an idle moment whilst rummaging around the script stuff. But in doing so I did find also that using this "feature" I could remove the thick border around terminals and variables which was one of requests from the idea exchange.
-
It's difficult to say why. But as NI have reported this as a bug in 8.5 for loading vi's saved to a previous version then its likely to be the case. As you were able to load it the first time.I would suggest you over-write the vi from the zip. Then reboot to make sure memory is clean, and open the VIs again. You should now be in the same position as when you downloaded the file originally (hopefully). If you are able to load the VI again, save it to a different location so that it is not a "converted" vi. Hopefully by doing this whatever the issue is with loading converted VIs will be removed. I have also posted the VIs diagrams below (they aren't difficult). It would only take a few minutes to re-write them.
-
Sweet. Those old USB drivers should be taken off the NI site. I've just noticed I forgot to "Dispose" the IMAQ image reference. Not a big deal in this case but this is how memory leaks start.
-
Were a bit off topic. But I'm going to steam ahead anyway since I don't think it'll last long otherwise I would have started a new thread. We must have the same customers . Its pretty much what I get (initially). Only my approach is for me to write the spec over a series of sit-downs (hand-holding). That way I can include stuff in the spec that perhaps they hadn't considered, but important to their operational situation (back-up and data storage is a common one they overlook). It also means I get a very good picture of the customers "minds-eye" of what they expect the system to be like. I usually also try and get one of their technical people to be actively assigned to the project then you get out of a lot of the "status reporting" 'cos thats his job Your thoughts about what constitutes a change (and therforre the customer incurrsa cost) is identical to mine. However, you sneakily said "correctly working software", which, is normally the bit that starts arguments. And it needs to be extremely well defined right at the start of the project what and how testing will be done by both parties to ascertain its "correctness". I would go 1 further and say "correctly working system! I take the (some may think draconian) view if its not working "correctly" then its not completed and therefore not released to the customer (expecting customers to do alpha and beta testing is a cop-out). V1.0 is the first time a customer will get the system and Its very rare you will find an up-issue that is a bug-fix release in either software, hardware or mechanics.
-
Make sure that your camera is working properly in Measurement and automation explorer. It should auto-detect your camera and In the main window area you can press "Grab" to make sure you get an image. Use this for capture instead (I've saved a version in LV 9.0 and 8.5) This I can test an works fine (no flashing, fast frame-rate @ 640x480)
-
That's because it doesn't matter how you did it. As long as you did it on-time, on-budget and to spec. Reminds me of a cartoon I once saw where there was a really long paragraph of an engineer explaining how they did something (he was chuffed to bits). The other man said "Yes. But does it work?" To which he replied "No"
-
You make it sound as though thats a good thing
-
I can't actually run your code to try things because I'm running windows 7. Maybe someone else might have more luck installing it. But. Try something like this. Make a copy of the image and transmit the copy.
-
No I didn't Great minds think alike eh? You talk about it being in the repository, but I'm unable to find it. Maybe it was lost along with the "The Great Crash" since the posts seem from quite a while ago. I wouldn't mind taking a look. Do you have a link? The initial idea was born out of being fed up with writing similar things every time I worked with a new company. Although with this incarnation I wanted a more generic nature by removing a lot of the infrastructure dependency (which probably isn't that visible.....yet;)) and have the ability to cluster rather than rely on a central server (i.e. filtering). That way I can transparently use a distributed architecture. It is really just a multi client/server tracker. ( I also wanted a viable light-weight alternative to DCS. ) I see you also talk about "Topics" which suggests (to me) a single server with segmented data filtered for the particular subscribers (classic pub/sub). I think mine is more content-based where each "Topic" is in fact a dedicated server and after registration or subscription, the Dispatcher has little to do with data.
-
The IMAQ USB library is ancient.. It was a quick fix before Measurement & Automation explorer supported USB and has many issues such as memory leaks and and the installer has issues with win7. I strongly suggest you use the measurement & automation explorer first and use the image libraries to interface to it. However. To stop the blinking you could try selecting "Synchronous Display" by right-clicking on the image indicator and selecting "Advanced>>Synchronous Display". If that fails then you are probably receiving incomplete/corrupted packets or you are timing out, reading nothing and then updating the display.. The second one is so slow because you have put a 500ms wait in the loop and a receive time-out of 500 ms.Remove the wait ms and use the default time-out (i.e don't wire it)
-
VNC right-clicks in LV don't work
ShaunR replied to george seifert's topic in Application Design & Architecture
Sweet. -
I'd have forgotten about it by then
-
My own creation. I thought if /f I really must go to all the effort of downloading, installing, activating and navigating the script stuff. I might as well have some fun
-
Ouch. Sorry. Isn't meant to. And I tried it in 2009 x32 and x64 and had no problems. My 2009 is known for sudden fits of crashing like just deleting stuff off the diagram. Try again? Diagram looks like this:
-
Try Multiple Type Casts
ShaunR replied to Norm Kirchner's topic in Application Design & Architecture
http://www.screencast.com/users/Phallanx/folders/Jing/media/6d33f01c-4961-4c88-9944-e3290ab349a0 Remember.I'm not the one promoting a "Design Pattern". I'm only prepared to spend as much effort in discussion as you are! -
Try Multiple Type Casts
ShaunR replied to Norm Kirchner's topic in Application Design & Architecture
Why don't you just send me your code and I'll mod it. -
Try Multiple Type Casts
ShaunR replied to Norm Kirchner's topic in Application Design & Architecture
Well. For controls ........none. Since I wouldn't use any of them. I'd use something like this: I can't remember off-hand how to get th BD reference (cannot seem to find it in the list). I'll have to dig into my old code for a refresher example (is it only available if scripting is installed and activated?). -
Object-Based State Machine Pattern
ShaunR replied to Daklu's topic in Application Design & Architecture
You need to first install lapdog_lib_message_library-0.7.0.1.vip which has that class -
[CR] Insert State Into JKI State Machine (Quick Drop Plugin)
ShaunR replied to jgcode's topic in Code Repository (Certified)
Maybe worth exploring. But if you edit the case name after insertion (say insert a space then delete it). The broken arrow disappears.