PIC16F877A+UART for LABVIEW

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

PIC16F877A+UART for LABVIEW

Postby navidbox » Tue Jul 12, 2011 3:11 pm

I need to send four measurement parameters to the PC for display and storage purposes. The software for this aim is LABVIEW. I am new to PIC and Interfacing, but by putting so much effort and asking questions from experts, i could have accomplished the acquisition of all the data till today.
I could also transmit a character "HELLO" through RS232 with my UART to USB converter and the result in hyperterminal was observed as well.
I am quite happy that i could have reached up to this stage. but on the other hand, unfortunately my knowledge is absolutely poor about LABVIEW.
I have heard that if i have control over the format of the data from PIC to LABVIEW, it is not that difficult.


Questions:
1- can you please explain what is exactly meant by format of data?(I also don't know the format of data i sent through USB)
2- After specifiying the format, what would be the next stage?
3- If it is possible, please provide me with some sample codes for Hi-tech C, and LABVIEW as well.
Attachments
temp.jpg
navidbox
Newbie
 
Posts: 8
Joined: Thu Jun 16, 2011 2:20 am

Re: PIC16F877A+UART for LABVIEW

Postby Brian Griffin » Tue Jul 12, 2011 7:40 pm

What are you trying to acheive with the UART and "data format"?

You just send out the data from the microcontroller through UART to the computer, and let the Labview do the job (I assume they have a serial port module there).

We regret that we cannot do the programming for you. As usual, Cytron and the internet provides a lot of examples for such interfacing purposes.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: PIC16F877A+UART for LABVIEW

Postby navidbox » Wed Jul 13, 2011 12:56 pm

Brian Griffin WROTE:What are you trying to acheive with the UART and "data format"?

You just send out the data from the microcontroller through UART to the computer, and let the Labview do the job (I assume they have a serial port module there).

We regret that we cannot do the programming for you. As usual, Cytron and the internet provides a lot of examples for such interfacing purposes.

Would you please at least leave me the examples from CYTRON? those which is fit for LABVIEW.
navidbox
Newbie
 
Posts: 8
Joined: Thu Jun 16, 2011 2:20 am

Re: PIC16F877A+UART for LABVIEW

Postby hyng » Wed Jul 13, 2011 8:30 pm

hi,
Is the data from PIC? if it is, is the PIC coding generated by yourself? if yes, then the format of data is determined by yourself. After you have determined your data format, like sending four byte continuously, then you have to work on your Labview to receive those four byte as an example.

Cytron has just come out a Tutorial Site. One of the tutorial is regarding on GUI. You can take a look on the 1st example. It is quite useful. PIC coding and VB coding are all provided. Although the sample is not about Labview, but i'm sure the concept is more or less the same. I hope it is helpful.
https://sites.google.com/a/cytron.com.my/tutorials/programming-software/gui
User avatar
hyng
Moderator
 
Posts: 292
Joined: Thu Apr 16, 2009 11:35 am

Re: PIC16F877A+UART for LABVIEW

Postby zhenning » Thu Jul 14, 2011 9:53 pm

If you can display your data in hyperterminal, then, labview should not be a big problem. you need to install the USB to RS232 converter cable, if you are using one in NI VISA, then, use the serial examples in labview. It should work perfectly :)
zhenning
Enthusiast
 
Posts: 351
Joined: Thu Dec 30, 2010 12:32 am


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 3 guests

cron