+ Reply to Thread
Results 1 to 6 of 6

Thread: PIC Dev board and LabVIEW?

  1. #1
    kyri Newbie
    Join Date
    Sep 2008
    Posts
    3

    Default PIC Dev board and LabVIEW?

    Hello all,

    I have a dsPICDem2 development board with a PIC30F4011. I want to use LabVIEW to interface with this board (through RS232 or USB) and do things like press the switches, light up LEDs, view the signals on the pins, all through LabVIEW.

    Is this even possible? Would it be easier to do in Java, Matlab, etc.? Please let me know. I want to figure out if the project I picked for this semester is even possible.

    Best,

    Kyri


  2. #2
    kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent
    Join Date
    Jul 2006
    Location
    Victoria BC, Canada
    Posts
    3,681

    Default

    You could definitely do it with serial via the serial VISA functions in Labview. USB would be a little more tricky. You could use MicroChips CDC – Serial Emulator firmware on a PIC to create a virtual serial port via USB and LabView wouldn't know the difference. The PIC30F4011 doesn't have USB capability but it would interface with a FTDI FT232R or equiv.
    Last edited by kchriste; 4th September 2009 at 03:37 AM.
    Inside every little problem, is a big problem trying to get out.

  3. #3
    kyri Newbie
    Join Date
    Sep 2008
    Posts
    3

    Default

    Thanks for the reply! Sounds good, I'm glad it can be done.

    Do you know of anywhere I could look to find out how PICs are programmed through RS232? I.e., what kind of command would I have to send the board to light up the onboard LED, for example?

  4. #4
    kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent
    Join Date
    Jul 2006
    Location
    Victoria BC, Canada
    Posts
    3,681

    Default

    You would program the dsPICDem2 way you normally would; with a ICD2, etc... YOU would need to write the firmware, for the PIC30F4011 on the dsPICDem2, to read the serial port and light up a LED and possibly also write a byte to the serial port to handshake with the LabView application.
    Inside every little problem, is a big problem trying to get out.

  5. #5
    kyri Newbie
    Join Date
    Sep 2008
    Posts
    3

    Default

    Quote Originally Posted by kchriste View Post
    You would program the dsPICDem2 way you normally would; with a ICD2, etc... YOU would need to write the firmware, for the PIC30F4011 on the dsPICDem2, to read the serial port and light up a LED and possibly also write a byte to the serial port to handshake with the LabView application.
    Ah..damn. I was afraid I'd have to do that. Okay, thanks!

  6. #6
    toddsierer Newbie
    Join Date
    Sep 2009
    Posts
    1

    Default LabVIEW programming

    I can't speak for the PIC programming, but check out NI Discussion Forums - NI Discussion Forums for free technical support and search "rs232" on ni.com for tutorials, example code and other resources.

    Best of luck!
    Todd

    LabVIEW Community Manager
    @toddsierer

+ Reply to Thread

Similar Threads

  1. MiniPCI dev/proto board
    By arhi in forum Electronic Projects Design/Ideas/Reviews
    Replies: 2
    Latest: 10th February 2009, 08:16 PM
  2. Olimex(Sparkfun) LCD Dev Board and 'C'
    By fenderman in forum Micro Controllers
    Replies: 2
    Latest: 19th October 2008, 09:39 AM
  3. Switching regulator for dev board
    By Blueteeth in forum General Electronics Chat
    Replies: 10
    Latest: 5th January 2007, 09:31 AM
  4. Deisgn of a PIC dev board (nigel?)
    By Blueteeth in forum Micro Controllers
    Replies: 11
    Latest: 25th November 2006, 05:05 PM
  5. Can this be done w/ my Renesas M16C/26 dev board?
    By DanD in forum Micro Controllers
    Replies: 1
    Latest: 23rd April 2006, 06:43 PM

Tags for this Thread