Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

16F877 proteus connection LabVIEW

Hello Friends, I want to with LabVIEW start a led for RS232 (serial port). I'm drawn with the program perform the printing process. How can I use VISA WRITEfeature here. Would you please help.


CSS C CODE:



#include <16f877.h> 
#fuses XT,NOWDT,NOPROTECT,NOBROWNOUT,NOLVP,NOPUT,NOWRT,NODEBUG,NOCPD
#use delay (clock=4000000) 
#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[80];
gets(x);
if(x[0]=='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();
}
}


Resized to 77% (was 1366 x 768) - Click image to enlargePosted Image




Resized to 77% (was 1366 x 768) - Click image to enlargePosted Image



Resized to 77% (was 1366 x 768) - Click image to enlargePosted Image



Files: http://www.uploadmb....p?id=1308177162 

0 Kudos
Message 1 of 3
(4,414 Views)

Hmm, your images aren't quite loading for me, can you try to post them again, perhaps using a smaller format. Also, are you wanting to implement C code into LabVIEW or are you wanting information on using VISA Write VIs in LabVIEW? Also, what version of LabVIEW are you using?

Product Support Engineer
National Instruments
0 Kudos
Message 2 of 3
(4,397 Views)

Hello,

Thanks for interestting. I am rened topic. Its here new link...

http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/LabVIEW-and-Proteus-comminication-settings-RS...

0 Kudos
Message 3 of 3
(4,389 Views)