Jump to content

orko

Members
  • Posts

    576
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by orko

  1. Hmm... that's the way I understood the type input. The "[text]" or "

    " endings on the URL's are still are a mystery to me, since they don't seem to behave any differently from one another.

    This test returned true (they were equal) no matter what type of file (jpg,pdf,html,txt) I was trying to download from the internet:

    http://forums.lavag.org/index.php?act=attach&type=post&id=6466

    Since I can't seem to find any documentation on the differences between these two, I'll just assume they react exactly the same. I was just wondering if there were other capabilities (other "[tags]") inside the Datasocket Read primative that behaved differently.

    Thanks for your time, and sorry for hijacking this thread a bit ;)

  2. QUOTE(LV Punk @ Jul 26 2007, 10:25 AM)

    Okay, thanks. I understand mime types, and how they are used in HTTP headers, but I'm a little confused on how they are used in the datasocket implementation.

    Am I wrong in assuming that the Datasocket Read VI only supports a limited subset of these mime types? Which ones does it support, if this is true? I know [text] and

     work, but are there others?

    One thing I noticed is that even though "html" is accepted, it isn't a real mime type since it's actually "text/html". In fact "text" isn't a valid mime type either, its "text/plain". I'm assuming that the Datasocket VI's are coded to only allow certain "keywords" of supported types rather than mime types as valid in the URL. I'm not even sure it really handles "[text]" and "[html]" differently...does it?

  3. QUOTE(MikaelH @ Jul 25 2007, 06:17 PM)

    Just use the DataSocket Read, and save the file.

    I really like this one :thumbup:

    The cool thing is that you can download binary files such as pictures, movies, pdfs, etc. using this method.

    *Note! This works great if you're saving a text file (txt,html,xml,etc) but if you're saving a binary file (jpg,pdf,etc) you'll have to write the string to the "write to binary file" primative versus the "write to text file" primative or you'll get data corruption. Just because you are able to download it through the datasocket using the [text] format doesn't mean it's a text file...

    Question: does anyone know of a complete list of URL format speficiers ( [text],

    , etc) somewhere I can stare at?  I also am curious what is handling these specifiers... is it your default browser, or some core TCP/IP functions of the OS?
  4. QUOTE(MK07 @ Jul 26 2007, 01:50 AM)

    You'll find a lot of information on this subject (as well as most others) in the help inside of LabVIEW. Click on "Help->Search the LabVIEW Help" and type "installers" in the index search. Also, there are tutorials and examples on the ni.com website if you search for "Application Builder tutorial". Particularly this one.

    QUOTE(MK07 @ Jul 26 2007, 01:50 AM)

    and how to i connect GBIB device with labview?? if any example please provide me..

    Again, look in the help. There are also examples if you click on "Help->Find Examples" and Browse by task under "Hardware Input and Output".

    You'll find that after familiarizing yourself with the basics and the vast knowledge that is inside LabVIEW's built-in help, you'll be well on your way to understanding the LabVIEW environment.

    Hope this helps!

  5. QUOTE(John Rouse @ Jul 25 2007, 10:24 AM)

    Could you elaborate on this a little? I just looked at this vertical mouse and was very impressed with its design. What was uncomfortable about it?

    QUOTE(John Rouse @ Jul 25 2007, 10:24 AM)

    The Zero tension is extremely comfortable and I can use for long periods with no pain.

    Only problem is the accuracy really stinks so for LabVIEw it is not working for me but everything else works fine.

    This design is one that I've never seen before (kind of looks like a joystick instead of a mouse). Was the accuracy problem inherent in the mouse itself or is this something that you would think would become better after using/getting used it?

    I'm seriously looking at trackballs and vertical/semi-vertical mice, because I've been noticing the tell-tale signs of carpel tunnel in the last couple of years. However, I don't want to explore the touchscreen/pen option at this time, since funds for this kind of thing are pretty tight at the moment. What I'm looking for is a less-than $100 option that I can sell to the boss. So far the evoluent has been the closest fit for me and the budget...so I'm very interested in more reviews of this style of vertical mouse.

  6. QUOTE(tcplomp @ Jul 19 2007, 11:18 PM)

    Nice suggestion drop a new instance of the XControl into a VI. Same dialog can be acquired by right clicking the XControl (in edit-mode) and selecting 'Settings'

    EDIT:

    One nice feature is the drop of picture files (png/bmp/jpg) onto the XControl

    This is really cool!!! :thumbup:

  7. Have you tried to use the instrument driver found on the NI developer network? Its initialization works fine for my 34970A.

    Download it here.

    I think this will clear up your problem, since you said the instrument is working in MAX it is probably just the way you're initializing things.

  8. QUOTE(xtaldaz @ Jul 18 2007, 09:04 AM)

    Ouch! Seeing as how Doug and I took the very first LabVIEW 2.0 class together, that statement hurts a little.

    Should I not tell you about the new hire last month that graduated class of 2005? Okay, then I won't mention that she was born in 1988 either... the year my wife graduated...

    Okay, I'll stop with the old jokes (immediately following the jibe I'll be giving my wife when I get home of course!). :o

  9. QUOTE(DougWilson @ Jul 17 2007, 06:47 PM)

    a long time LabVIEW user (since 1990)

    Welcome, Doug. I find this site invaluable for not only its resources, but for the teaching experience that only helping others can bring.

    1990...well, they didn't have LabVIEW set up in my senior year of high school :P

  10. QUOTE(anor @ Jul 18 2007, 02:33 AM)

    As the program is to be used by doctors I can not depend on them beeing very used to computers, and I don't want them to still be in the dialogbox after 30 seconds only to realise that the measurement has timed out =) Also I don't want the buffer to get too big while chosing a filename. Also since some of the measurements require specific movements or breathingexcercises I don't want them to have to begin supervicing this while still having to interact with the program.

    Your English is very good, actually :yes:

    Asking for the file name before calling the Express VI should satisfy your need. Seeing now that this program interacts with not only a doctor but also a patient, I can see why you need the pause before saving. Hmm... you may even want to consider waiting on a "Go" button press after obtaining the file location to give the doctor some time to get his patient ready ( 1. "Save"->choose file; 2. "Go"->start test )? This may involve another click, but perhaps would establish more confidence that the program will start the testing sequence when they tell it to start, rather than after closing a file select dialog box. Just an option to consider.

    Good luck!

  11. QUOTE(CRoebuck @ Jul 17 2007, 03:41 AM)

    The code uses many GPIB instruments (VISA) and some Serial (VISA) and also 2 IVI drivers (Arb and DMM) and also an external DAQ board that comes supplied with a "LabVIEW" driver (Actually VI wrapper around naked DLL calls but hey....it works).

    This is just a wild stab in the dark...

    The one driver that stands out for me in your above error dump is the tc0832.dll, which is a datalogging interface used by Pico hardware (serial thermocouple, by chance?). The latest version of this driver (which is dated Jan 03 2006), according to its documentation was "tested using LabVIEW for Windows 95 version 4.0". I don't know if you are using the latest driver, since it appears this project is a few years old and I'm not sure if you've updated it. Even if you have the latest, it looks like LabVIEW support for it isn't very high on the priority list for Pico.

    Is there a way to isolate this driver call out of your program and see if your error still occurs? Like I said, this is just a guess at this point with the info you've given us.

    BTW, did you notice that the "LINK_DATE" on the tc0832.dll line is way off in the future?

    LINK_DATE="03/14/2035 01:15:49" UPTO_LINK_DATE="03/14/2035 01:15:49"

  12. QUOTE(anor @ Jul 17 2007, 02:16 AM)

    I wish to know if it it is possible for me to force the VI to start saving AFTER the user have chosen a filename and pressed OK in the dialog box. That is, waiting for the OK button in the dialog box in stead of the saving button. I do not want it to save data while I'm prompting the user for the filename.

    It appears that the Write to Measurements express VI is set up to start saving the data as soon as it is called. This is done by using the "reentrant" property in the VI exexution properties. If you do not desire this behavior (although I can't think of a reason... can you enlighten us as to why you need it to halt your data collection until the file dialog is closed?) you are going to have to call a file dialog before calling this express VI, feeding the resulting file path to it(you can use the "open/create/replace file" VI in the File I/O pallete). This way, you can use the data flow of the error clusters to make the Write to Measurements express VI wait for the file dialog to close.

  13. Your problem lies in the fact that by changing any single element's property in an array you are affecting all elements, so the KeyFocus property for an array element reference doesn't really work as expected (It basically just returns focus to the last element that had focus before tabbing away from the array).

    However, looking at this NI article it appears that you can use keyboard shortcuts to navigate your way through the array elements. Since Michael has so graciously provided a way to simulate keypresses, one way to work around this would be to catch when a user is on the last element of the cluster in each row and send the appropriate keypresses to navigate to the next row.

    I whipped up a subVI that tabs down in an array, and modified your VI to use it when the user presses tab while on the last enum in the cluster.

    I know, it's a hack :rolleyes: But I really can't think of another way of doing this.

    http://forums.lavag.org/index.php?act=attach&type=post&id=6351 (LV 8.2.1)

×
×
  • Create New...

Important Information

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