Downloads
This page hosts files or links for projects that I have done. All code/software posted here is free to use and modify/upgrade as long as you give credit for where the code came from and report your upgrades back to this page. I am a strong believer in open source software and hardware and I encourage you to contribute.
- RS485 Block (String support only)
- RS485 Block (String support only. Built on RS485 2.0 VIs)
- RS485 2.0 VIs (Requires LabVIEW 7.1 or later)
- NXTBee NXT-G Block (String support only)
- Enhanced Firmware (Required for NXTBee and slower speed on RS485)
- Example NXTBee Code (Requires NXT-G 2.0)
- RS485 Complete NXT-G Block (Supports Strings, Boolean, Numeric)
- NXTBee Complete NXT-G Block (Supports Strings, Boolean, Numeric)
- myDAQ Robot VI (Requires NI LabVIEW 2010 or later with DAQmx and Vision Module)
- myDAQ Robot VI without video (Requires NI LabVIEW 2010 or later with DAQmx)
- RS485 Beta NXT-G Block – This block is a beta of version 2.2x of the RS485 and NXTBee blocks with support for timeouts. Please note that this download is subject to change without notice.
- dWifi Send VI (Requires NI LabVIEW 7.1 or later) – Adds the required “newline” value to all strings sent to the Dexter Industries dWifi sensor. (Note: this is a RS485 block and requires the NXC/NBC enhanced firmware.)
- Arduino 101 Class Documents – Class taught at the Gainesville Hackerspace on February 22, 2014. (Password required to open file.)
- FLY3R Software – Software for the FLY3R bot.
Comments
[…] blocks to allow you to use the RS485 functionality on the NXT. You can find those files here: [LINK]. Note that you will need to use the enhanced firmware to use these […]
[…] blocks to allow you to use the RS485 functionality on the NXT. You can find those files here: [LINK]. Note that you will need to use the enhanced firmware to use these […]
First of all: thank you for sharing! I just encountered one problem with the RS485 VI for labview: I use an XbeePro to send a 1Darray to the NXTBeePro, only the NXTBeePro (using the Read data from RS485 VI) can’t read negative values (for example: sending a value of -4,6 is read as 0, where 4,6 is read correctly as 4,6). I solved this by sending the absolute value and the state (+ or -, by sending 1 or 0) separately. This negatively impacts performance. I went over the VI, but can’t seem to find the problem, since I’m pretty new to labview. Any thoughts would be greatly appreciated.
Regards,
Mathias
Hello,
The block is built on unsigned data types. This makes it easier to share strings. All values are converted to an unsigned byte array and then sent. You could try explicitly stating the conversion to unsigned and then back on the other side. That will have less of a performance hit. Another solution (if you know your data is in a specific range) is to add an offset to it. Again that would be less of a performance hit. The xbee pro vs regular would make no difference in this case.
Hope that helps!
Andy
Hello Andy,
Thanks for the tip!
Regards,
Mathias
Hi Andy,
I’m having some problems with two-way communication using the Xbee VI’s (RS485 2.0):
I’m sending a 1D array with 14 values via a VISA Write from my computer to my NXT.
This works fine.
The problems start when I try to send a 1D array with 2 values (for now) back with the “Write Data” VI.
On the pc, I use a “property node: bytes at port”, to determine the number of bytes to send to the VISA Read VI.
Problem is that the “Return Count” for both the VISA Write and VISA Read show “0” (iso 14 and 2).
When they do show 14 and 2, the received data on the NXT and computer are corrupted.
Any thoughts?
If you want I can email you my VI’s. Just email me at “mathiascreyf57@hotmail.com” with your emailadress and I’ll send them to you.
Any help would be greatly appreciated 🙂
Regards,
Mathias Creyf
Aeronautical Engineering student
Hi,
New to LabView so I have a couple of questions about the RS485 VIs. Is there a way to set a specific baud rate? Do the numbers in the Set Speed VI correspond to specific baud rate. I’m sending data less than 1m.
Also, does the NXT firmware upgrade change any other functionality of the NXT?
Thanks,
Steve
Hello,
Sorry for the slow reply, just saw the comment. The speeds can change, only on the enhanced firmware. The enhanced firmware does not change operation, but it does fix a few bugs. I will make a post with the speed values. 🙂
Andy
[…] You can also find some software on his website for using the NXTBee’s and LVLM. While RS485 communications are not officially supported in Labview for LEGO MINDSTORMS, he has some great downloads that work very well with the NXTBee. […]
thank you for sharing!
My English is not good, maybe you can not fully understand my description, but I still want to talk to you!
I use “NXT-G RS485 BLOCK” when communicating with ARDUINO found “BLOCK” unable to communicate properly with the ARDUINO.
But when I use NXC, it can be a very good and ARDUINO communicate!
So, I would like to ask you, how can RS485 BLOCK AND ARDUINO for high-speed communications.
(in the “ARDUION MEGA2560” ,I have already added a MAX485 for level conversion.)
Hope to get your reply!
[…] Downloads […]
[…] Downloads […]