Shop OBEX P1 Docs P2 Docs Learn Events
Communication Between Labview and Propeller Chip — Parallax Forums

Communication Between Labview and Propeller Chip

Andy_ouhscAndy_ouhsc Posts: 17
edited 2011-09-21 11:21 in Propeller 1
I am trying to gather all my data from the Propeller Chip and import it to Labview for display and calculation.

What files or settings do I need to change for Labview in order to receive the information?

Can anyone give me suggestions?
Thanks in advance.
Andy

Comments

  • LeonLeon Posts: 7,620
    edited 2011-06-24 11:01
    Do the data display and calculations have to take place in real-time, or can you write stuff to a file and deal with it later? The latter would be much easier.
  • Andy_ouhscAndy_ouhsc Posts: 17
    edited 2011-06-24 12:04
    The data display and calculations must take place in real-time.
  • LeonLeon Posts: 7,620
    edited 2011-06-24 12:39
    What Labview interface will you be using?
  • Andy_ouhscAndy_ouhsc Posts: 17
    edited 2011-06-24 14:39
    I am trying to display the data through waveform graphs at the front panel as the labview program and propeller chip are running. That is my goal.
    I know a little bit about that some of the SPIN programs output the data and display it on the parallax serial terminal through the object "fullduplexserial"
    I wonder if there is an object or something, or anything I can do so the data from the propeller can go and load into Labview.
    Any advice?
    Thanks Very much.
    Andy
  • LeonLeon Posts: 7,620
    edited 2011-06-24 15:18
    You should be able to transmit data from the Propeller into Labview using Full Duplex Serial.
  • Mike GreenMike Green Posts: 23,101
    edited 2011-06-24 15:50
    I'm not aware of any Labview-specific object, but, as Leon mentioned, FullDuplexSerial should work to transmit the data. You would use a Basic Serial Write and Read virtual instrument and you'd have to create your own virtual instrument to handle whatever data you want to communicate back and forth. FullDuplexSerial can send arbitrary characters, strings, and numeric values (as strings of digits). If you want to receive numbers from Labview, you would also use something like FullDuplexSerialPlus from the Object Exchange. This uses FullDuplexSerial for receiving characters and does the conversion from strings of digits to numbers for you.
  • desikodesiko Posts: 18
    edited 2011-06-24 16:27
    Hi, Andy
    Take a look at this link, it helped me a lot when I was getting started.
    http://forums.parallaxinc.com/forums/default.aspx?f=25&p=1&m=326220

    Cheers

    Desiko
  • Andy_ouhscAndy_ouhsc Posts: 17
    edited 2011-06-27 14:39
    Thank you very much. Exactly what I needed to understand how it works.
    Great Files!
  • crowfootcrowfoot Posts: 1
    edited 2011-09-19 10:54
    I tried using the material in the link but found that I could load any program into the propeller and still have the - value returned. It seemed as if the only the USB interface was responding.-Has anyone else done any work interfacing the Prop with Labview?
  • desikodesiko Posts: 18
    edited 2011-09-21 11:21
    Hi, crowfoot

    I am successfully using propeller based hardware with
    Labview every day both on PC and Mac. If you could give a
    little more detail about your setup maybe I can help you along.
    Can you post the code you were trying to use?
    What is your propeller hardware?
    What version of Labview are you using?

    Best regards,

    Desiko
Sign In or Register to comment.