04-03-2006 07:15 AM
04-03-2006 09:02 AM
04-03-2006 05:23 PM
04-04-2006 01:25 AM
Hi SergKr !
I wanted tu use xml format for my configuration files. These files are used to define the CAN ports, CAN frames to read/write, AI, AO, DI, DO .... I think your solution may works, but I find it a little bit complicated. For the moment, i don't need labview on my host PC, and i'm not persuaded this solution is really
04-04-2006 01:28 AM
Ooops.. sorry I sent this message before I ended ..
So to finish... As I said, i don't think it's really clean,. But it could be a solution. Well, I gave up using xml on RT target. I use csv format instead... I will wait next labview version, maybe they will developp tools for that....
04-04-2006 04:08 AM
Try to write an XML parser and I'm sure you will understand that it is anything but NOT difficult.
@ChinJohn wrote:
I got same question on my LV PDA module..
The PDA running windows CE, but LV PDA also not support XML.
LV version 6 has support XML, but why still leave other modules alone?
This isn't difficiult job for NI.![]()
04-04-2006 04:10 AM
04-04-2006 04:12 AM
I'm not sure XML would be a good solution for RT targets. IT is a rather involved standard and you end up with two possible outcomes.
@KaBooOoom wrote:
Ooops.. sorry I sent this message before I ended ..
So to finish... As I said, i don't think it's really clean,. But it could be a solution. Well, I gave up using xml on RT target. I use csv format instead... I will wait next labview version, maybe they will developp tools for that....
04-04-2006 08:37 AM
04-04-2006 10:08 AM
I already use .ini files, for example in order to define the path of my configurations files. But, as you said, they have only one level. In my project I wanted to use xml format in order to define CAN ports, frames, channels properties . Here is an example of what i wanted to do :
<PORT>
<NAME> CAN0 </NAME>
<TRANSCEIVERTYPE> HIGHSPEED </TRANSCEIVERTYPE>
<BAUDRATE> 1000000 </BAUDRATE>
...
<FRAME>
<ID> 1 </ID>
<IDTYPE> EXTENDED </IDTYPE>
<NAME> Test </NAME>
<TYPE> CYCLIC </TYPE>
....
<CHANNEL>
<ID> 10 </ID>
<STARTBIT> 0 </STARTBIT>
<NBBIT> 8 </NBBIT>
<ORDERTYPE> LITTLEENDIAN </ORDERTYPE>
...
</CHANNEL>
</FRAME>
</PORT>
As you can see it's note really difficult, and i agree i think i could rewrote an xml parser myself. But I didn't have many times, therefore, i finally used csv format ! For information, I use LV8 as well !