Jump to content

ShaunR

Members
  • Posts

    4,881
  • Joined

  • Days Won

    296

Everything posted by ShaunR

  1. Poor OP. He posts an innocent question and all he really gets is a load of old women arguing about thier crochet patterns
  2. Better still. I'll go and click on all of Alphas posts
  3. Indeed. You were a bit more subtle than me though If I were an unscrupulous person, I could log in with a different ID through a proxy and go round clicking on all my posts.
  4. Well. If that is the case then there should be an event case for each control or set of dependent controls. Still don't see the need to complicate it further. Me too. and re-reading what I posted I did say they should be checked there. What I was really getting at was to add a timeout so that his vi doesn't "hang". I think once he posts more, we will probably see that his issue is understanding how and why an event structure works the way it does rather than a design implementation. After all there are a few unintuitive things like having the control inside the event case.
  5. Yes you can. What do you have so far? If you post your vi, we can see the direction you are taking and advise better. In my opinion, the best way to approach long term graphing is to continuously log the data and provide "views" of that data. To prevent files getting too large (and therfore taking ages to load in the views), you can save the data log in a number of files (either using the date in the filename, or directory name). This would give you a file (or set of files) for each day or month which can be loaded "raw" and processed to provide whatever analysis you require.
  6. My reply wasn't a design proposal. It was to get his events working properly. Like you said. theres not a lot of detail, but its likely its a control with a couple of cases checking a value. Do you really need a Consumer-Producer design pattern with state machines to see if a value is higher or lower than zero for example?
  7. Many thanks. Labview IDE? I thought it would have gone in the UI section.
  8. I think its a case of emphaisis. Matlab is a mathematics package with some language features. Labview is a programming language with some mathematics features.
  9. Well a Value Change(signl) property node will programmatically fire an event but you can end up with race conditions. You ought to be wiring a timeout to the event case (say 100ms the, default is -1....wait indefinately) and checking the controls in the timeout case. If you are seeing the event execute only once, then it is likely that you do not have the control inside that event case. This is required for the control to be "reset".
  10. Don't see why it couldn't have been included. They realesed F1 just to fix 1 minor bug that very few people would have suffered from. I've actually given up using probes now and just create indicators on the front panel 'cos its such a pain.
  11. I was referring to the Option B where a create method was used. It is identical the what ShaunH describes (using the bundle to integrate events) but from within the control instead of external.
  12. Back on topic Just downloaded and installed 2009.F2. Doesn't work .....bugger
  13. Virgin In? Virtually Incapable of? Very Inconsistent? Bet you wish you hadn't asked now...lol
  14. You can also pull the network plug out while your running tests
  15. Ooooh. I didn't realise this. I knew windows event queues can be swamped with messages if there is no sink and if you can get enough in before the message managerr times them out. I assumed (obviously wrongly) that it worked in a similar fashion Thinking about this. If you are going to supply an event refnum from the caller (I prefer encapsulated but what the hell), the Xcontrol can bundle its events onto it. Then when you wire the resultant event cluster through a register to an Event case, you can choose not only the calling vis events, but the Xcontrols as well. It would give the Xcontrol tight integration to the callers events and a fairly close approximation to how real other event driven langueages operate.
  16. If you notice. After the initial flurry, reputations are increasing at a massively slower rate. I put this down to the fact that people (like me) didn't know what that little green number meant and kept clicking on it to see what happened. It took me ages to figure out that it was for the reputation system and not in fact, to add the post to a multiple reply I also think its a bit misleading, since those that help newbies are unlikely to get better reputations since a newbie generally doesn't realise a) they can vote, or b) what it is for. However, those in the "old boys network" will get tremendous reputations.
  17. Cool. Glad its working Looks like you've been through the string pallet and now know every function . (You can replace everything up to the "Array to Cluster" with a "Spreadsheet String To Array")
  18. Nope. If you do that, his project will succeed and he will get the credit. He might even get a promotion since, after all, he may not be technically bright, but he sure can manage YOU! He'll end up as your manager Let his project struggle then when the boss is in dispair offer advice to the boss on how to bring it back on course. Then the boss will probably GIVE you the project. Your labmate will have demonstrated his incompetence, you will have shown your helpfullness and he will end up working for you
  19. If you use a DataGrid .Net control. It has a GdiVertical font attribute you can use.
  20. Vociferously Incoherent? Vehemently Intractable? Veritably Incredulous? Vaguely Interesting? 6?
  21. Interesting. I view it the other way in that since it is a broadcast mechanism it doesn't matter where you create it as it is the reposibility of the receiver to register for it. I would consider A more in line with event implementations not only in LV but in other languages too (for example in Delphi, control events are only available once you place that control on the FP). In B, what if you create an event that doesn't exist in the XControl? B also requires external initialisers where as A is self contained and the events are available just by placing the control. However, in the case of A I think you need a backup plan for if you generate events and there are no registered recipients since you will just fill up the message queue.
  22. Whay do you think the "I" stands for in VI Engineering:P
×
×
  • Create New...

Important Information

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