06-15-2011 05:57 PM
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();
}
}
06-16-2011 05:58 PM
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?
06-17-2011 08:47 AM
Hello,
Thanks for interestting. I am rened topic. Its here new link...