06-04-2007 09:02 PM
I've attached the result below as an image. As i couldnt alt-print scrn it, i captured it in my phone, so it's kind of blur. Hope u're able to see the values. Btw, for the GetDataFromLVM.vi, is there any difference between the "Read from text file" and "Read from binary file" ? Cause both could be used, and displayed the same result. Which is the correct one?
Thanks!
06-05-2007 08:12 PM
Thank you for attaching your screenshot; it definitely helps me see what is happening on your end. If I try running the GetDataFromLVM.vi file that was attached to this forum post earlier (also adding a while loop and case structure to keep the VI from immediately closing), negative data points in my LVM file show up just fine.
What is the exact PDA that you are using? I tested the GetDataFromLVM code using a Compaq iPAQ running PocketPC 2003. Can you please try indexing the array of data read out of your LVM file, and displaying a single element (one that should be negative) on the front panel? This will help us to discover whether the problem is in the data read from the LVM file itself, or the graph. I am sure that we can continue working together to resolve this problem.
To answer your question about the Read from Text File and Read from Binary File VIs, both functions are capable of reading in your data in string format (and they do this by default). The Read from Text File has an additional option to read in entire lines that you can access by right clicking on the icon in the block diagram. The Read from Binary File VI can be used to read in data of different formats (besides the string default). For example, you can use the Read From Binary File function to read in an array of I16 values, U8 values, etc.
Regards,
Casey Weltzin
Applications Engineer
National Instruments
06-05-2007 10:34 PM
I'm using the hp iPAQ Pocket Pc h5500 series, 2003 version too.
I've tried debugging the PDA, but whenever i click debug by right-clicking "My Application", i couldnt click on the highlight execution button in the vi. It's kind of disabled. And i still have some queries on the GetDataFromLVM.vi. For the index inputs(row/col) of the "Index array" function, how do u know whether to wire it to 0 or 1? Is there any way to know which element is the negative one? I've read the labview Help, but i still dont understand it.
Sorry, and thanks for all the help!
06-07-2007 08:39 AM
06-11-2007 02:21 AM
06-12-2007 10:29 AM
If the problem is also occuring in your emulator, I should be able to reproduce it on my end. I will work to do this as soon as possible; if for some reason the behavior doesn't occur on my end, then we will have to talk more about what is different between our systems.
The Index Array VI simply lets you take a look at a specific element within your array. For example, if I input "2" for row and "3" for column when using the Index Array function, the output of the function will reflect the element at index 2,3 (the 3rd row and 4th column because they start at zero). You will have to open up your text file and find a data point that you expect to be negative, and then read in that element within your application using the Index Array VI.
I am sure that we can continue to work together to find out what is happening here; have a great day!
Regards,
Casey Weltzin
Applications Engineer
National Instruments
06-12-2007 12:22 PM
06-12-2007 08:40 PM
06-13-2007 10:20 AM
06-13-2007 08:46 PM