Jump to content

ShaunR

Members
  • Posts

    4,914
  • Joined

  • Days Won

    301

Everything posted by ShaunR

  1. Learn to be a plumber. They earn more than us.
  2. The "number of rows/columns" property nodes will enable you to display different numbers of rows and cols.
  3. Array of clusters it is then
  4. What about 2 arrays One with the headers (channel names) and one with your data. Then you can set the fonts different for each array. < some time later after copious amount of caffeine > try this
  5. I always wanted to be somebody, but I should have been more specific

  6. IC (I think ) If you don't mind being platform dependent then you can use the windows SetCurrentDirectory function (LV example here). But your scripting thingy would still have to be running after they decided to save it. Other than that, I only think if saving a dummy VI after they have saved theirs (again your thingy needs to be running to monitor the memory list). But if your going the platform specific route I would suggest adding it to the places bar so they can always find it easily.
  7. The Dialog Express VI has a start path.
  8. No. But you do need "Windows". Here is a .NET example of what I mean.
  9. Glad I could help
  10. Not giving me much to go on here. What gives you the message? Is it windows/linux? It can't be in the error cluster because there is no "Memory Full" error code. If it is in the error cluster, what number (code) is it? Are you trying to dump the whole 100MB contents into an array? (What is the SQL statement?) How much memory do you have and when you get the error, how much is LabVIEW using (you can see it in task manager)?
  11. The main difference between the NI algorithm and most others is that it removes outliers. It calculates a "best fit" using the mean squared difference method and applies a score. If iterations is set to 0, it is finished and returns the line (as in your first image). If iterations are greater than "0" it removes an outlier and then re-calculates the MSD and re-calculates the score to see if the there is an improvement. It keeps iterating until it either reaches a certain score or until it reaches the iteration number So in your second case, if you set the iterations to >0, the final point will be eliminated and it will decide that the first two are the "best fit". You need to have more data points to use this function effectively - the more, the better.
  12. Have you tried the Drag/Drop Events?
  13. Making Measuremnet On An Image from the Vision Concepts Manual described it in detail. The images are broken on my browser. But it describes the NI method.
  14. it never returned when I did that. this works though. Looks like you need the comparison. for (i=1; i < sizeOfDim(x,0);i++)
  15. Nope, 0-2999. I've never been good with FNs
  16. It's been a long time since I used a FN., but I tried replicating your image (in 2009) and sizeofDim(x,1) evaluates to "0". My output array is identical to the input.
  17. Quite right. I stand chastised Pravin. Most fonts are fixed character widths. So if you can find the start and you know the width, you can "cut" each char out and analyse it in isolation.
  18. Microsoft have quite a nice definition of the pub/subs (including observer). the main differences seems to be how the clients obtain their updates and methods of registration. I'm more familiar with the content and topic (list) based since that's basically what "Dispatcher" and RSS are. But I've only used them in context with networking so events weren't applicable. I could see a use for observer invocation in something like LV web-services where you basically want to poll updates of remote devices. But it can be a bit prone to server over-loading if there are many observers.
  19. In LV2010 there is a checkbox on in the properties so you don't have to physically place the code in the diagram. That why I said there is no longer a code boundary (as if you had placed the code in the diagram) however it is still represented as a sub-vi.
  20. Well. I wouldn't be complaining about 7 us to calculate a formula node. Sure it can. It has nothing to do with priorities. As I understand it, when a VI is set to subroutine it means it gets executed sequentiality within the VI so there is no chance that a task/thread switch can occur at the call boundary. As for in-line - in theory the code boundary shouldn't exist, but you can select both subroutine and in-line, so I'm not quite sure exactly what happens. Like I said. I haven't really played with in-line but the VI has to be re-entrant whereas for subroutine it doesn't have to be. Well. 7 us for 20k elements isn't bad. That's 0.35ns per element Any faster and it would have calculated it before you ran the VI
  21. Maybe he already has and is spamming DVD's
  22. What about a "Ghost Busters" machine (temp, pressure, humidity, detect sudden changes etc)
  23. I think your pub/sub definition is really a broadcast definition (like UDP Multicast). I think the observer pattern is just a particular flavour of pub/sub as is "content-based" and "topic based". But I've only ever heard the term in context to events. In other areas I think it's called "List-based" pub/sub.
×
×
  • Create New...

Important Information

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