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.