LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing micro controller with Labview Via USB

Hello,

I am trying to interface ATXMega series microcontroller with labview.. I want the communication to ON as long as the controller is connected via USB.. I want to read or write data continously to the controller.. Can anyone help me how to achieve this task??

0 Kudos
Message 1 of 9
(3,680 Views)

Read the communication details of microcontroller.

 

In what format it will send the data i.e. timeout, baud rate, parity, flow control, databits etc.

 

All this information is needed for communication. 

 

 

Thanks,

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 2 of 9
(3,659 Views)

I have the information you asked.. I went through this VI

http://myweb.wit.edu/johnsont/Classes/LabView_Labs/Elec163LabVIEW8-RS232v1.htm#_ftnref1

 

Here the communication is done through RS232.

I want to make it through USB. What modules in LabVIEW shoud be used to make that interface? Can VISA module alone helps for transmission and reception of data through USB? If so should there be any modification of the bootloader code present in the controller?

0 Kudos
Message 3 of 9
(3,642 Views)

Yes there is lots of 3rd party software which is used to RS232 to usb conversion.

Tell me when you implement your VI what other difficulties you face

 

Thanks

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 4 of 9
(3,637 Views)

I am using a controller which have USB module so that it need not require USB to RS232 conversion. I want to use USB as it have higher speed than RS232. My aim is to read/write the data from/to the controller through USB connector connecting PC and contrller kit. 

If I make a simple VISA read/ write, can i achieve the task? Or should i have to have some code in controller to respond for visa protocols?

0 Kudos
Message 5 of 9
(3,633 Views)

For controller to response there must be firmware in controller to respond to specific command only, Right ?

 

VISA also detects USB, but I have no experience in that. I am using 3rd party software to do the conversion.

 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 6 of 9
(3,631 Views)

Can you give details about that 3rd party software?

0 Kudos
Message 7 of 9
(3,628 Views)

That is 3rd party software.

 

Google it USB to serial bridge.

You will many

 

Thanks

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 8 of 9
(3,625 Views)

@saran19 wrote:

Hello,

I am trying to interface ATXMega series microcontroller with labview.. I want the communication to ON as long as the controller is connected via USB.. I want to read or write data continously to the controller.. Can anyone help me how to achieve this task??


ATxmega always want to program a microcontroller, you exist other more efficient microcontrollers operating at higher speeds, such as proposed by National Instruments

0 Kudos
Message 9 of 9
(3,490 Views)