03-25-2009 09:01 AM
Hey Rafo.
The files I have, the library, and project for the Crossbow WSN devices aren't locked or password protected. I can open and edit all of the files when I go to <LabVIEW x.x>\\instr.lib\Crossbow XMesh WSN and open the Crossbow XMesh WSN.lvlib library file. I would suggest re-downloading and overwriting your present files because they shouldn't be password protected.
11-09-2009 12:13 PM
Hi All,
I am trying to develop a simple application of using digital I/O of MDA320 of Crossbow motes. I just want to receive digital inputs (potential free contact of switches) and display it on vi front panel using bullion lamp type indicators.
I am a totally novice user with labview and crossbow both. Pl. guide me.
Thanks in advace.
With Best Regards,
Jignesh G. Bhatt @ IIT Roorkee
11-10-2009 07:13 PM
Hi Jignesh,
In the future, please create a new thread instead of adding to one that hasn't been visited for months. You will be more likely to get a response. But you should most likely be in luck. A LabVIEW driver has already been written for the Crossbow MDA320. You can find it here: http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=9273 . But if you are new to LabVIEW, I would recommend taking some time to get to know it before jumping into any complicated tasks. It will definitely save you time and frustration. This link will help you get started: http://digital.ni.com/public.nsf/allkb/7D5F60ADBFD9CDC2862572BA005DD96A
Regards,
11-10-2009 08:32 PM
05-13-2010 05:37 AM
Hi guys
Indeed a very usefull thread but couldnt find solution to my problem.
I am using MIB600 (Ethernet) gateway with Micaz MTS 300. As in most of VIs/applications, VISA for COM port is being used, so using the same VIs I change VISA to IP address but it doesnt work.
Firsly i would like to know, whether we simply change the VISA to IP address or do we need to make more any changes? I am getting error--"8003 accored at WSN Send Generic Stream Massage.vi" . MIB and node MTS300 is working fine with Moteview software.
Will appreciate your help.
Regards,
05-14-2010 02:29 PM
Hi Nutkani,
I'm not sure what you are asking for. Are you trying to modify the library so you can use a VISA resource? The library I found here: http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=1FB66B354ED149C7E0440003BA230E... seems to already handle VISA resources for creating streams.
05-15-2010 02:25 AM
Hi Kyle,
Thanks for reply.
There is no lib available for MIB600 model (as you can see from list of crossbow product-MDA320, MIB510, MIB520, MTS310, MTS400, MTS300) . MIB600 comes with LAN interface. I am asking what changes do i need to make in the existing lib in order to use it with MIB600 module.
I made simple changes as you can see in attached VI(in previous post), but this doesn't work. Does it clarify?
Regards,
05-17-2010 04:40 PM
Hi Nutkani,
The VI above won't work because the library hasn't been fully updated to handle Ethernet gateways. It looks like some of the parts are there, but you'll need to update the Private VIs to include the ethernet changes. For example, if you take a look at the WSN Connect to Gateway VI, there appears to be an entry for the Ethernet connection). There may not be enough framework for a simple update of these VIs.
Additionally, if you refer to the manual (http://www.xbow.com/Support/Support_pdf_files/MPR-MIB_Series_Users_Manual.pdf), it seems like the way that the Gateway works is by connecting to the port of the device and communicating like a serial device. I would suggest finding some sample code (not LabVIEW) and seeing if it can be ported to LabVIEW.
You'll probably be following the steps here to communcate with the device: http://zone.ni.com/devzone/cda/tut/p/id/3325
05-19-2010 06:27 AM
Hi Kyle,
thanks for reply. I try to change settings in "WSN Connect to Gateway VI" and set TCP/IP: port in MAX but still not working(as in attached screenshot)..... Could you please explain, What other changes are required to make is workable?
Regards,
05-20-2010 05:10 PM
Hi Nutkani,
I can't tell you exactly what changes need to be made, but looking at the manual, there are a few things you can do to make sure that the connection works:
1. You must use a crossover cable if you are not connected to a hub or switch.
2. You can use a telnet program to connect to the MIB-600 Serial UART via port #10002.
If you can get this part to work, you can use either NI-VISA to send commands, or attempt to update the library, which may or may not work. There should be some other programming reference you can use to test some commands out.