LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Visit our LabVIEW Wiki Code Distribution Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Programming in Visa
Nancy
post Oct 6 2008, 02:33 AM
Post #1


One hit wonder!


Member
Posts: 1
Joined: 6-October 08
From: Singapore
Member No.: 12999
Using LabVIEW Since:2008
LV:8.6 ,. ,.
Singapore Nothing Selected Nothing Selected



Hai experts in Laview,

I am in a starting Problem.

I am using vi serial write and read in VISA to program our microcontroller. baud rate- 9600, databits-8,parity-odd, stopbits-1,flowcontroll- none,delay before read-500ms.

We also have a RS 232 with a transmitter on it. the Microcontroller has the reciever in it. we are trying to use wireless communication.

Microcontroller programming is done using MPLAB IDE. we would like to light up atleast an LED on the board.

The basic codes used in MPLAB are:-

to recieve data

1)Set_RF_Mode();

char str[10];
unsigned char c;
c=RF_Read_Data(str,5);
if(c==5)
{
// data is in string array

}

when we gave the above code in MPLAB IDE we couls set the MIcrocontroller in Recieving Mode.

To transmit data we have the codes

char str[10];
sprintf(str,( constant far rom char*)" Hello");
RF_Send_Data(Str,5); // length of string is 5.


We are not sure whether these transmitting codes should be passed to MPLAB or Labview. We tried in Labview.

Our Microcontroller IMicro_V20 can be set in the reciever mode by giving coommand Set_RF_Mode(). A led lights up to indicate this.

But we dont know what we should do in Labview to transmit data to light up our LED. Is there any format to send data in the Write command window.

We tried in NI Help and forums. but we could not find what we shoiuld type in the Write command window to transmit data. please help us.

--------------------
nanii


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Oct 6 2008, 02:33 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post

Reply to this topicStart new topic

 




Time is now: 2nd December 2008 - 12:54 AM