02-11-2008 04:03 PM
03-07-2008 01:29 AM
Hello everyone,
I am also doing research with WSN (specifically with the Mica2Dot and maybe later on with the Imote2).
I've downloaded the Xbow Files but haven't had still time to play with them. I assume these vis will listen to the UART port (I am using MIB520) and parsing the data (ADCx) into engineering units and also, dividing the AM groups and types. There's no " active " control using LV thus.
Instead of programming TinyOS code onto one node and keep listening to the incoming packets through a TOSBase, is there a way to control the Mote (ATMega128L) directly to the CPU using the serial port? I'd like to control the the ADCControl register, and once the flag's triggered, capture the data using Labview. No wireless link is needed for instance.
I've managed once to control one DSSP Chip using DLL's to implement the low level comm (and the Std Control Library to control my app using LV). But using USB and this FTDI drivers will certainly take me sometime (which I don't really have now.)..
Thanks for your suggestions!
Edgar Charry
12-13-2008 01:48 PM
Hi all,
I am trying to use Labview to acquire data coming from crossbow motes. As someone put in this forum the crossbow drivers for labview are made for being used in an specific application. I create a new application and I am simply reading data coming from the serial port. I have some problems because when I am using low sampling rates like 1hz until 4hz I receive data without problems. When I try to use high sampling rates like 200 hz there are a lot of messages of error:
"Error -1073807253 occurred at VISA Read in MTS400 RA reader 3.vi
VISA: (Hex 0xBFFF006B) A framing error occurred during transfer."
How can I control these? I also have other problems because I should receive 39 Bytes at port in each message but this number gets crazy with high sampling rates which implicates weird results.
Can anyone help me??
Thank you very much!
Rafael
12-15-2008 09:40 AM
Hey Rafo,
That error is explained in full in this linked KnowledgeBase article: Error Code -1073807253 When Using VISA Read
Your grabbing data before it's ready, not framed, hence the framing error. Try to implement the fix noted in the KB and let me know the results.
Thanks,
12-18-2008 05:36 AM
Hello David,
I am trying to implement in my code what you explained. At the end I found the example "advanced Serial Write and Read.vi" which do, I think, what you have post. Now the lectures in high sampling rates are much better but I still have some problems because from time to time there come some contaminated messages with less bytes than it should be. Do you have some idea what it should be going?
Thank you very much for your help!!!!
12-18-2008 12:10 PM - edited 12-18-2008 12:12 PM
Hey Rafo,
By contaminated do you mean null data, corrupt data, or just missing data?
12-19-2008 09:00 AM
Hello david,
I mean null data
12-19-2008 09:57 AM
12-19-2008 10:01 AM
Hey Rafo,
Thank for posting back your solution. Have a happy holiday season.
Thanks,
02-02-2009 09:35 AM