Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW and Proteus comminication settings (RS232) HELP...

Hello friends,
LabVIEW with the PROTEUS programs via rs232 want to light an LED. But I'd done, I can not run a kind of study. I do not know where the error was doing. Would you please help. THANKS.

CSS C CODE:

#include <16f877.h>
#fuses XT,NOWDT,NOPROTECT,NOBROWNOUT,NOLVP,NOPUT,NOWRT,NODEBUG,NOCPD
#use delay (clock=4000000) // Gecikme fonksiyonu için kullanılacak osilatör frekansı belirtiliyor.
#use rs232 (baud=9600, xmit=pin_C6, rcv=pin_C7, parity=N, stop=1,FORCE_SW)
#use fixed_io(d_outputs=PIN_D0,PIN_D1,PIN_D2,PIN_D3)

void veri ()
{
char x;
gets(x);
if(x=='A')
output_d(255);
return;
}

void main()
{
setup_psp(PSP_DISABLED);
setup_spi(SPI_SS_DISABLED);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_CCP1(CCP_OFF);
setup_CCP2(CCP_OFF);

//output_d(0x00);
while(1)
{
veri();
}
}

Proteus DESIGN :

Image

VI Programı:

Image

VI PROGRAM:


Image

FILES : http://cid-7720cfbabd88a5d6.office.live.com/self.aspx/PROGRAM/led%5E_lab.rar

THANKS

Message 1 of 3
(10,377 Views)

Hi,

 

I am not too familiar with the Proteus board but here are some links that may help.

 

http://www.sonsivri.com/forum/index.php?topic=24603.0

 

http://ayushdewan.wordpress.com/tutorials/serial-servo-using-labview-and-proteus/

 

I hope that this helps.

 

Perry S.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(10,356 Views)

I dont understand what you trying to do. Can you still be specific? What actually is the problem that you are facing? Is it just that the LED's are no glowing?

"Winning isn't everything, Its the only thing"
0 Kudos
Message 3 of 3
(10,353 Views)