12-08-2012 10:09 AM
Hi,
I want to send commands from the Labview to a PIC micro controller that should control a tracker (to turn a motor right or left, etc.). I would like to know what are the options to implement this. I thought about using the NI VISA, but it requires a USB protocol for the PIC. But I heven't implemented any communication protocol... Does somebody recommend a library that I can use? Or if somebody has another idea I would be happy to read it! 😃
Thank you very much,
Lara.
12-10-2012 10:07 AM
Do you need to use a PIC for sure? Another option is to use an ARM instead, because it is more integrated with LabVIEW (See ARM Module).
12-10-2012 10:27 AM
Hi urakhai911,
You can communicate with your PIC via USB protocol using NI-VISA. Please refer to this link:
http://www.ni.com/white-paper/4478/en
Carmen C.
Applications Engineer
National Instruments
12-10-2012 11:26 AM
Yes, I do need to use the PIC because the board is already ready... I can't change it anymore...
12-10-2012 11:27 AM
I already saw this possibility, but the problem is that I need a communication protocol, and my PIC is not ready for that... Do I have to build one myself? Is there some library that I can use?
12-11-2012 07:20 PM
Sorry I am just starting to use Labview, so this question will probably seem a little confusing... Please help to figure it out...
I notice that I can't use an USB cable to do the communication because the distance between the computer and the board is too large (I am sorry to mention before that I would an USB cable...)
Now, I will use one Xbee connected to the board and another xbee connected with the computer through an Ethernet cable (I already have this huge Ethernet cable that I can use). The two xbee will communicate with each other.
But I dont know how I am supposed to read the informations in Labview using the ethernet cable...
I searched in the internet and apparently I can use the LabView VISA serial port VI to send/receive data to a serial device. But how can I acquire the information coming from the Ethernet cable? Here in the lab I have the MyDaq, maybe I could use it... I don't know...
I am trying to figure out how I will make this connection, but my problem is that I don't know how to connect the xbee to the labview using a ethernet cable...
Thank you very much!
I am looking forward to some tips! ahuhauha
12-12-2012 09:28 AM
urakhai911,
I found this library for you, please refer to this link: http://zone.ni.com/devzone/cda/epd/p/id/4756
Regards,
Carmen C.
11-26-2013 07:55 PM
if you want to send commands between the computer and the microcontroller is recommended to use VISA and serial communication, computers now come with USB ports and you must purchase a USB-Serial adapter, this is only if you want to send commands, on the other hand if you want to send data high-speed USB is your best option