Jump to content


  • Content Count

  • Joined

  • Days Won


Everything posted by ShaunR

  1. OK. I understand. I would be very tempted to just make your display a 2D array of strings (first column can be a label if you want). Then regardless of what data it is you can just format it in whatever manner you think is fit and append it. If it doesn't exist it will just appear as a blank (or you can insert N/A or whatever). If you hide the fact that it is an array, it will just look like a multi-line label. If you add more fields later, just make more elements visible. if you redefine fields , just change the labels (if you have any). The question I haven't asked properly is this. Is your problem just a method to display the info, or is it some intermediate stage that the data in your fields will be processed later?
  2. QUOTE (Val Brown @ Apr 17 2009, 04:44 PM) Because our IT is analy retentive.If I connect it to "THEIR" network then they have to have ownership which means the following: 1. Cannot take the lid off to install cards. Have to send a support request to get the card installed which may be in 2-3 days time if I'm lucky. If found "tamperig with company property"....written warning 2. No administrator priveleges. If software needs to be installed...Yup..you guessed it..Support ticket...2-3 days. 3. Must have a defacto desktop/laptop PC with all the their crap and must use XP even if the customer wants Vista. 4. The licence would have to be in one of their names (as you know...NI only supply support to the name on the license) so they can provide me with support <img> which means that yet again I would have to send a support ticket to get them to phone NI to asks a question which they know didly squat about. I will just point out though that I do have number 3 also. They decided that a dual core (not even core2) 1.6 GHz Toshba laptop with 512MB ram and a 20 Gig hard-drive is an adequate Labview development platform. It takes 20 minutes to boot in the morning if connected to the network because of their policies. Because of that, I run Labview, labwindows, test stand and all the toolkits on an industrial PC on it's own network where I can do what needs to be done. When it needs to be done. We actually rate our IT department as a project risk. The less involvement...the better. So. It is a real pain but the alternative is worse!
  3. Chatty embedded engineers? That's an oxymoron isn't it?
  4. Diogenes of Sinope. Because we are all a bunch of cynics and perceived as criminals by text programmers.
  5. Everyone will have their own methods and solutions to this one. It's an old problem with many equally correct solutions. If you give an example stream and header structure we would probably be able to justify each approach better and you could pick the solution that best fits your preferences. I find, generally, the best option, if possible, is to find the super set of the protocols and choose a display method that can cope with all of them. what do I mean by this...Well... Lets say your devices both send a header consisting of a command byte, a length byte and the payload (nice and simple). In device 1 the length byte is 2bytes long but in device 2 it is 4 bytes long. The length byte of both devices can be represented as a 32 bit number so you would choose that to display the length. Just in case the hardware engineers decide to use a bigger length in the future you could even go for 64 bit integer. Now. slightly different (but following the same approach). Lets say we want to represent the command byte with human readable strings. We could use a menu ring (since arbitrary and non consecutive values can be assigned to its strings). We could then assign each string with the value directly from the command byte - job done for device 1. Now there are two ways of coping with device 2 depending on how much similarity there is. 1. If most of command bytes are exactly the same and the extra ones are just extensions to the original protocol (device 1, MkII) then we have already done most of the work and we only need to add the extra values to the menu ring. 2. If the command byte of device 2 use the same values as device 1 but mean completely different things (usually different devices) then add...say 100 to the command byte and assign the menu ring strings for that device command byte +100. So. 2 devices, 2 different headers and we display a menu ring and a U64. If they add more commands...we just add to our menu ring. If they change the number of bytes (up to 8 anyway), we don't need to change anything. You can extend this for the payload too (up to a point )
  6. QUOTE (neBulus @ Apr 17 2009, 02:15 PM) That's a sour remark...lol
  7. Perhaps the mods can re-title this for me then. OBEX FTP, Looking for a FREE protocol spec.
  8. QUOTE (jpdrolet @ Apr 17 2009, 01:00 AM) I guess my pro-grammar skills aren't up to scratch Would "I feel like a lemon" be better?
  9. QUOTE (crelf @ Apr 17 2009, 06:16 AM) The same people who pay you for the time you spend posting on this forum
  10. ShaunR

    Login VI

    Oh. And just remembered! there's a login example in the examples directory :;
  11. QUOTE (crelf @ Apr 6 2009, 09:05 PM) Go on then Here's a more up to date conundrum in a similar vein (everyone says sequence structure are bad...but everyone uses them...even NI) Of the following two methods to build a vi global. Which is better? http://lavag.org/old_files/monthly_04_2009/post-15232-1239919373.jpg' target="_blank">
  12. One of my old gripes since version 2.0 about the development environment.
  13. And when I post the result in the code repository, I'll remember to charge you if you download it!
  14. Hmm. Not sure about getting screwed (it's not that expensive) but I have complained many times - every time I upgrade in fact. That said, I'm not talking about the Serial Key (I've got one of those that covers everything) I'm talking about the activation codes since the development PC isn't connected to the internet I have to phone up NI and (always seems to be a girl called Sam.....lol) they look my details up and maybe a day later 25 e-mails come through with the activation codes which I then have to get to the other machine. Real pain in the proverbial 2-3 times a year especially if they miss hear the computer ID or I haven't upgraded all the items!
  15. Can anyone give me a link to OBEX FTP protocol spec or a list/description of the headers (like the OPP 0x02 for put). I've been looking high and low and can only find API references.
  16. this will help with the IP address: IP And try this: Name
  17. ShaunR

    Login VI

    Or download the password class in the code repository From then on (simplest) its just a case statement with an exit function in the false frame if the password fails and your sub-vi in the true frame if it passes
  18. QUOTE (khokhar @ Apr 15 2009, 09:10 AM) Under windows methods such as DDE (Dynamic Data Exchange) or Automation Servers can be used to communicate with things like Excel, Word etc. It enables you to access methods and properties exposed by the application (including things like save and savAs). If you search the net you will find examples for Labview and there is The Report Generation Toolkit which enables interaction with Excel and Word amongst others. BUT. Not all apps expose their internal methods so it really depends on the program you are trying to control. If the program uses a proprietry file format and does not expose any methods then you are stuck. The other alternatives are to recreate the file format from within Labview (or any other language for that matter) or cludge it by sending key strokes and mimic a user but I hate this method with a vengence and it can be very unreliable.
  19. I do have a developer suite which on a SSP, and no. I don't get a single license for all the packages. Apprently thats only for a volume license agreement...I've tried!
  20. Can reproduce it too. If you resize the window it sorts itself out. Looks like a refresh problem. I can get round it by writing to the bounds property of the vi (i.e forcing a refresh). But that doesn't enable you to "restore".
  21. QUOTE (Neville D @ Apr 13 2009, 09:03 PM) I have also used cFP for testing Train Valves, machine control and factory monitoring (many moons ago now). I disagree you are paying for robustness and ease of use. I think you are paying a premium for the NI name. For most of my applications it's the channel count vs cost that is prohibitive. I find dumb 32channel Gigabit Ethernet digital/Analogue IO is far more cost effective and easier to manage (IP65 compliant @ £600 all in) than any of the NI solutions. Even a PLC is 1/3 the price if you really must have real-time. QUOTE Again, your mileage may vary but I regularly use wireless connectivity to view camera output for alignment and calibration in a vision application in a saw-mill. The distance to wireless node is about 50m through lots of steel walls with no problems. I get about 9 frames/s but thats good enough for my application. This is using a regular laptop with 802.11g with commercial OTS networking hardware (nothing fancy, custom or expensive). Does it matter if you lose a frame now and then? I looked into using wireless camera's for checking rogue parts from from several bowl feeders that were feeding an assembly line. The process line was spread out over a 180sq ft factory floor with the operator in a cubicle at the end (wireless was an ideal solution). From testing, we randomly lost 1 in 30 frames on average and this went up to 1 in 12 if someone used bluetooth near the furthest feeder. Another example was a wireless remote alarm system that would feed back monitoring info to a central monitor. We had so many false alarms because the IT department had whitewashed the place with their wireless APs (it was cheaper than wiring and.....typically, they wouldn't let us near them!), just so the sales guys could wander around with their laptops and still have internet (although we did cause them grief as well ). I regularly VNC into machines wirelessly, but wouldn't trust it for serious remote control or acquisition. QUOTE I guess the ultimate choice of hardware depends on needs as well as budget. Neville. NI PCI cards are cheap, reliable, have high channel counts, easy to use and I go for them every time. But for remote acquisition there are far more cost effective and better solutions out there if you have the courage to step away from the warm fuzzy NI bubble. QUOTE (crelf @ Apr 13 2009, 09:21 PM) Make sure there is a requirement to go wireless - some sites specifically rule-out wirelss (military, standards comissions, etc). Amen!
  22. cFP are not cheap. You start at about £1,000 just for the controller and once you've added the backplane, and IO you are generally looking at about £2K+. RIO's (as far as I'm concerned) are just repackaged fieldpoints. Considering you will have multiple end points, you will need a controller for each point (NI will love you a lot). DO NOT GO WIRELESS!!!! (especially if you are in an industrial environment) unless you really have to. There aren't many pro's but shedloads of cons.Wires don't drop connections and interference is rife in the 2.4GHZ band. Also solid structures (like walls, cabinets and even people) attenuate the signal immensely. Just search the net for problems people have getting a signal from one side of their house to another let alone 200m!.
  • Create New...

Important Information

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