Jump to content

frentzen

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Posts posted by frentzen

  1. Hi Justin,

    my fault, i forgot to add the other two files. Here comes the xml-file, the java file i could not upload.

    The vi shows as a result, the data from the xml-file. I need to tell people what's going on in that vi, like

    first it loads the java file, then it opens the xml-file and so on. So i have to go through step by step.

    If you could help a little bit, would be great.

    Thanks, Thomas

  2. Hi,

    thanks a lot for your support. The file is a .csv format (is not possible to uppload).

    I really could not find the icon where you set the parameter 0 and 1. I looked through the menue and the help function.

    I also did not find an icon equal to that.

    Thanks again.

  3. ZITAT(JFM @ Mar 14 2007, 01:39 PM)

    I tried your VI, and it gave an error (you should really check the error outputs) stating that temproot was NULL.

    To make your [wiki]VI[/wiki] run without this error, I had to fix the file name from "Mean[1].20061013_123043.xml" to "Mean.20061013_123043.xml".

    Hope this helps.

    /J

    That really helps. Thanks a lot.

  4. ZITAT(Mikkel @ Mar 5 2007, 03:56 PM)

    Well, then it would be natural to use a 'While Loop' around your code. If you want the path to be constant, you can use a 'Path Constant' on your diagram. Once a second (use 'Wait (ms)') you could check if the datafile's time/date has changed, and reread the file if it has. More information about loops, delays, and file operations can be found in the examples installed along with LabVIEW (Help/Find Examples...).

    -Mikkel :)

    Hi,

    i put the path now into the vi, but i still got the same failure notice. the german ni support told me, it runs without problems.

    has anybody a solution?

    Thanks a lot.

    Thomas

  5. ZITAT(Mikkel @ Mar 5 2007, 02:08 PM)

    In stead of using a script to parse your XML file, you could try to parse the XML data (after reading it as a text file) by using the LabVIEW VIs "ParseXMLFragments.vi", "FindFirstTag.vi", "FindMatchingCloseTag.vi", all located in \vi.lib\Utility\xml.llb.

    This would solve the variant related problems, as well as being more clean code.

    -Mikkel :)

    Hi,

    Thanks for your answears. i just forgot a little thing to mention. I want to run the vi continously with file path integrated in the vi.

    the xml-file gets new data every minute and the vi should always get the new data.

    thank you so far,

    thomas

  6. Yep, ran with no problems on my PC. Do you have IE5 or above installed on your computer (the activeX object that I'm using in installed with IE5+)? What is the error message you are receiving? Also, make sure that the xml.js file is located in the same directory as the AccessingXMLData.vi, otherwise you can try the attached vi which has the javascript code embedded in the vi.

    Randy

    Download File:post-3040-1165249453.vi

    Hi Randy,

    the vi now runs also on my pc. great! do you have a description for your vi?

    thanks a lot man, this was a big help.

    Thomas

  7. Yep - that file structure isn't going to work with the LabVIEW read primative. Have a look at the LabXML toolkit, as justin.goeres suggested.

    Hi,

    thanks for your reply. I have some problems with these vi's. I started the demo vi, but i could not run it. It is always searching for some files during start. Is it possible to convert the file i atteched with these vi's.

    Thanks a lot.

×
×
  • Create New...

Important Information

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