Jump to content

jbrohan

Members
  • Posts

    85
  • Joined

  • Last visited

Posts posted by jbrohan

  1. 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

  2. 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

  3. 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

    Now my head hurts :blink:
    but it does feel good too! J
  4. 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

  5. (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

  6. What do you mean by "Change the Line" on a graph. Change the style or change the data by dragging points around?

    What are the graphical features that need to be moved to a different time. (I'm assuming you mean time as the X-scale)

    The quick and dirty answer will be to use the cursors. You can place one on mouse down and the other at mouse up, determine the data between the two, create a duplicate of that data as another trace and allow the person to move that other trace around by some other means like a scroll bar or be really smooth and change the cursor to a hand and allow them to drag it left and right, right on the graph.

    ooooooh this could be cool if you do it right.

    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

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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

×
×
  • Create New...

Important Information

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