Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

serial communication between labview and pic18f4520

hi,

        thanks for your co-operation, well as per i know the microcontroller deals with only hex data i.e microcontroller receives or transmits the data in hex format and the data sended by me through Labview is received by microcontroller until i use the while loop but as soon as i use while loop the first time microcontroller receives the data correctly( i am using break point in my code to check the reception of data) but later on it receives the garbage value.

 

 

0 Kudos
Message 11 of 16
(1,817 Views)

hello

 

Is there any specific way to write any thing to the PIc microcontroller .....like some command.....as I just want to send ' 2' to the pic but it is not getting it ...because if it would then it sureluy should do the specif job defined to it...

 

best regards

ali shaheen

 

0 Kudos
Message 12 of 16
(1,657 Views)

duplicate post. Please don't post the same question in multiple places. It just irritating.

0 Kudos
Message 13 of 16
(1,651 Views)

sorryy......

0 Kudos
Message 14 of 16
(1,627 Views)

Please all friend,

i have problem to connecting betwen microcontroler with the labview.

generally my microcontroler connect with the computer only use USB port. the microcontroler dosn't have have serial port built inside. I design my microcontroler with the  temperature sensor device. i use five temperatur sensor. so my serius problem is : i don't know what interface device that i have to use to connect betwen microcontroler with the computer, in order labview can read and procces ?.

Thank you very much for your help...

0 Kudos
Message 15 of 16
(1,489 Views)

Hello,

 

As per my understanding, you are working on a Atmel Microcontroller and you are having 5 Temperature sensors connected to it. You are looking at interfacing the microcontroller with LabVIEW via USB.

 

Before starting of with it, you will need to collect some details like

1. This USB is using the USB conforms to the USB Test and Measurement Class(USBTMC) or USB RAW.

2. To interact with teh USB device, you will need to get the VISA Drivers activated for the device. You can get the help of NI VISA Driver Wizard for the same. This will require the vendor ID and the Product ID for the device. Please find the link below that can help you.

http://www.ni.com/white-paper/4478/en


If its based on USBTMC, then you can use the regular VISA read and write functions. In case of USB RAW, each device can use its own communication protocol. So you will have to follow different programming procedure. Please find the link below, that might be helpful.

http://digital.ni.com/public.nsf/websearch/044FA220F32774ED86256DB3005850CA?OpenDocument

http://digital.ni.com/public.nsf/websearch/E3A2C4FE42D7ED0D86256DB7005C65C9?OpenDocument


Let me know how you proceeded.

 

Thanks.

0 Kudos
Message 16 of 16
(1,478 Views)