Jump to content

jbrohan

Members
  • Posts

    85
  • Joined

  • Last visited

Everything posted by jbrohan

  1. This is for a Lynx Motion robot. values are 0-255 in 1 byte. It takes the array of values and then casts it to a string (the only hting that can be output to a port). Good Luck John
  2. I'm interested in processing emails in LV, actually emails with attached .wav files. It seems fairly reliable to read the emails in php on a web server and to download the text in LV. It's fairly trivial to send emails from LV. It's actually a lot more reliable to call a php program with a set of parameters than to use the Send Email. This approach gets around al the IP address issues and uses a regular email address. I poll the read-email function every one minute and send one or two emails in response. Emails to cell phones work fine, some providers support jpeg attachments. Yours Sincerely John
  3. Thanks for the encouragement Chris I have a VI that will improve with communal use. It relates to getting the image from a Cell phone email. There are many possible uses for this, we intend it for monitoring wound healing. The problem is that every cell phone service provider has a different idea about how this should be done. The approach taken here is to take the body of the original email and discover who the service provider is and if we know him, interpret the message and save the jpeg in a folder. It uses cURL.exe (www.cURL.com for more information) Currently the list is limited to a few Canadian providers and blackberry/cingular. You can help by adding your own supplier. Take a picture with your cell phone, add your email address as a contact (persevere here!) and then send it to the contact. When it arrives copy the original text of the email into the control in the VI and work away from there. The email picture service seems widely but quietly supported the main difficulty seems to be to get the email address into the contacts list. If you don't want to program but do want to help, if you send picture emails to jbrohan (at) gmail.com I'll put them in and test them. I am particularly interested in cellphone emails form Africa and Latin America. Yours Sincerely John
  4. It works beautifully. Thanks very much. If anyone wants to join a project to extract the images sent from cell phones to an email address just sign up. I've got Cingular.blackberry, fido.ca, rogers.ca and txtbell.ca all with their own different ideas about how it should be done! John QUOTE but it does feel good too! J
  5. Hi I'm taking a program back to 6.1 for a simpler install. There seems to be an issue with writing Jpeg's. The step between a picture and the input required by the write Jpeg is missing anyone remember? John
  6. Thanks Yen Knowledge that it can be done is most helpful Is it still being used? What would help a lot is a map of the folder structure of your memory stick, maybe an old fahsioned dos E:/>dir /s > a.txt and then post or mail me the file a.txt. Do you know if it is sensitive to the Operating System? John
  7. Some preliminary investigation shows that it seems to be possible to load an LV application and the run time (and all its friends) onto a Memory stick. The initial requirement comes from a picture processing program which needs to be run on home and office computers accessing the same private image collection (on the memory stick). The implementation seems sensitive to the location of the files. For example Sliders do not have frames and buttons are not visible unless the 'models' folder is in the right place. Does anyone know of the paths information which runs this kind of thing? For example the installation on a clean computer puts the lvrt in a subfolder of a folder National Instrumetns in C:\program files; can I make it go somewhere else? John
  8. Hi This routine converts a variant to all three of these datatypes, you choose the appropriate one!
  9. The current time zone may be computed using this VI Download File:post-230-1166487553.vi
  10. (For Lisp Read LabVIEW) copied from an article by Ron Garret One of the ironies of the programming world is that using Lisp is vastly more productive than using pretty much any other programming language, but successful businesses based on Lisp are quite rare. The reason for this, I think, is that Lisp allows you to be so productive that a single person can get things done without having to work together with anyone else, and so Lisp programmers never develop the social skills needed to work effectively as a member of a team. A C programmer, by contrast, can't do anything useful except as a member of a team. So although programming in C hobbles you in some ways, it forces you to form groups whose net effectiveness is greater than the sum of their parts, and who collectively can stomp on all the individual Lisp programmers out there, even though one-on-one a Lisper can run rings around a C programmer
  11. The lines (trace) on a fetal heart rate graph represent the fetal heat rate plotted against time. There are some characteristic shapes or features that occur in many babies, and these features have names "variable deceleration" for example caused by the contraction compressing the umbilicus and causing the fetus to be oxygen deprived momentarily. An artificial intelligence program monitoring this and several other conditions can assess the degree of risk and even make reccommendations about what to do about it. So if you pass a tracing through the AI program it plots risk against time as the features of the tracing are observed and interpreted. The customer is interested to know if the risk assessment is overly sensitive to some features and not to others. He needs to change them, making the decelerations deeper and longer to see if the AI takes a more ominous view of the risk. So in answer to your question I need to "grab" a "section" of the tracing and move it in time or heartrate (x or y) to change the shape and severity of the feature. Or (and more likely) erase a bit of trace and re draw it freehand. Yours Sincerley John
  12. Hello I need to offer a program for editing and making new Fetal Herart Monitor tracings. Does anyone have examples or ideas of how to interactively change the line on a graph. This will involve coying segments and moving graphical features to a different time. Yours SIncerely John
  13. This is a really good idea, getting a repository going here in a well used forum. I wonder is there any interest in a cooperative development area, where people can join in to improve the submitted code.
  14. On a new machine I'm stuck again with a modal screen I was editing and forgot to close before starting a test. Arrrrrgh! Without Searchview.net I need a pointer to a copy! John
  15. Many thanks to Ed Dickens and David Boyd for their help. Does anyone have an example of a slider which is wider at the high end, like the volume control in a media player? They offered various solutions mainly modifying the
  16. Trouble with LV DLL for Excel Read Looking for examples of DLL's written in LabVIEW called by LabVIEW I am writing an Excel toolkit and the problem of the differences between Excel97 and Excel2000 has become a major issue for a product I'm trying to sell. The background to the problem is that there are some differences between the methods exposed in the ActiveX interface in these two versions which means that the Build Application will not work if the methods are brought from a computer with one kind of Excel to build on another. In trying to solve this problem I have encapsulated the ExcelRead into one routine and compiled it as a DLL. This seems to work OK if the vi that makes the DLL is open. This means that the DLL uses the source code of the VI, I can even highlight it! However if the source code is not open then it will not work. The routine goes through to the end. My approach is to make two calls to the DLL, the first to find the size of the string output and the second to make an input string of that length to be updated by the flattened string output. This works OK in development mode just fine. The connections are made correctly since it works fine when the VI is in memory. There don't seem to be memory problems since LabVIEW continues after the DLL test returns a zero length. One thing I notice is that the Run Arrow indicates that the DLL VI is part of a program that is running, it's partly black. Maybe it's my first attempt at the DLL that is really running. What can I do to make sure that this unloads? I'm not sure if what I'm trying to do is possible. My plan is to make two DLL's one for '97 and another for '2000 and depending on the version (8.xxx or Not 8) call the one or the other. My hope is that the DLL will go off and find its ActiveX partners and find its version specific methods. For those interested I've uploaded a kit to Lava so you can play with this too. It's LV 7.0 Yours Sincerely JohnDownload File:post-230-1143202301.zip
  17. Here is my solution to the movable controls issue. There sometimes occurs a bunch of controls that work together and this approach deals with this issue. It does not use events, but polls the mouse button. A full description is included. LabVIEW 7.0Download File:post-230-1140106142.llb Download File:post-230-1140113726.zip
  18. This is a release of Functional Globals which is a system of using the name of a variable to produce its value. I use it extensively in my programming. It takes its parameters from an .ini file or you can just make new ones in the code. The .zip file contains a word document and a tutorial program. One neat feature is that it stores the variables as variants so you can store any type of variable in it. You need to know the type when you get it out, and naturally you always do. I am still working on the part to write back the .ini file after it has been updated. (However a current project needs this functionality so it will be there soon) John BrohanDownload File:post-230-1138141772.zip
  19. Transparent controls or indicators use lots of energy. I once moved the whole window off the edge of the screen until my transparent indicator was off screen, the update speed increased dramatically!
  20. Resize 2D array Inputs an array as Variants and outputs Variant Numeric String and Boolean arrays containing the original and expanded or contracted to the requested size. I would be interested in the comments of LV people as to whether this is a viable approach to polymorphism. The input array is converted to the output types at some considerable computational effort. However in a user interface situation programmer convenience (IMHO) greatly outweighs the time lost in execution.Download File:post-230-1133113101.zip
  21. Add 2 arrays of possibly different sizes. This routine picks the max dimension sizes and allocates and empty array and adds each one. Download File:post-230-1133110587.zip
  22. The utility routine "Backup and delete file.vi" doies exactly this It deletes the old .bak and renames the current file to the backup (if they exist) and then it returns the path for you to write without a popup! http://forums.ni.com/ni/board/message?boar...ssage.id=147845 Use the Open LabVIEW Libraries indes at http://bloghan.gotdns.org/OpenLVLibs/ to find VI's. YOu can add yours too!!
  23. Open LabVIEW Libraries This is a project to build an index to the VI's out on the web. There are a 269 VI's in there already, mostly from the info-LV archives, LAVA and the NI LabVIEW Zone discussion list. http://bloghan.gotdns.org/OpenLVLibs/ From up-close it's easy to overlook something obvious. There is a comment button if you would like to use it. If you want to help, you are welcome too! The basic idea is a community project to make your work accessible to us all. Post your VI somewhere:- Lava, NI Forum, your Company's web site, or on Source Forge. Then make an index entry for it. You can write what you like as a description, but it's most helpful to put in some keywords that others will use to find it. Both short and long descriptions are searched "FullText". It's not only free software, tell the world about your commercial projects too. Articles, design documents and requests for comment etc can be put here too. If you put something in the index, it may be commented on by anybody and judged as "Junk" or "Useful". People can add or subtract from your description. The junk will be removed periodically.. A journal of every update is kept so if you see your VI getting unreasonable treatment send in a comment and if the moderator agrees justice will be done. It is hoped that you will review newly posted programs and improve them kindly, re-posting them to their forums. Yours sincerely John
  24. The 'exact' reply to your issue is attached LV 6.1. For a more complete treatment of Excel in LV you might look at FGExcel in SourceForge.org. I am really looking for feedback for the solution to the problem and its presentation. John Brohan Download File:post-230-1127260729.zip
×
×
  • Create New...

Important Information

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