LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

usb communication

hi every1
 
I am using a microcontroller to control the temperature of the system .and temperature to be set is to be given by user . now i want create a GUI in labview in which the user can feed the temperature and can also check the temperature sensed by sensor . the microcontroller that i m using is not usb compatiable . so for usb to serial conversion i m  using TI s TUSB 3410 . I want to communicate with the microcontroller througgh USB.
 
I am new to both labview and usb .kindly guide me how shud i go about it.
 
thanks
 


Message Edited by brahmleen on 05-29-2008 04:03 AM
0 Kudos
Message 1 of 7
(3,407 Views)

Hi brahmleen,

if you use a usb to serial converter you can deal with your port as an "normal" serial port. See the example finder for the "basic and advanced serial read and write" example.
Hope it helps.

Mike

 

0 Kudos
Message 2 of 7
(3,402 Views)

hi mike

Thanks for the reply . Actually i ve implemented the same think using a serial port .Its no big deal to get  the desired signal in the serial port coz u just have to know which pin in the connector correspond s to which registor in the memory and u can easily control the pin output then . Eventhough i m using the usb to serial convertor in my application i need to develop the GUI which can open upthe usb port for communication and send the signal in usb format to the convertor .

So my question was how to do that .

 

0 Kudos
Message 3 of 7
(3,399 Views)
I think Mike is suggesting that you let the hardware and OS manage the TUSB3410 as an RS-232 device. This would be done via the TI Virtual Serial Port Driver (PDF). You just use NI-VISA and refer to your hardware as a COM port...

If you want to communicate directly with the device without loading a driver, this will require a significant amount of work on your part. See this NI page for a tutorial on USB Instrument Control.



Message 4 of 7
(3,379 Views)

hi

Actually  i am a novice to all this stuff . Can you please elaborate on what do you actually mean by let "hardwae and os handle tusb as rs232" ?

Can you please tell whats steps should i follow to construct my application ?

thanks

0 Kudos
Message 5 of 7
(3,342 Views)
If you are a novice, then I would suggest bypassing the TUSB and using a commercial USB-RS232 converter such as those from Keyspan. There are also devices from companies like Lantronix that allow you to connect to RS-232 over Ethernet.


Message 6 of 7
(3,327 Views)
Then wat  would i require to construct the labview code for this (i mean drivers and dlls )? In serial port communication for the same thing i dint follow rs232 protocol strictly .I just mnipulated the register corresponding to the com port and got the desired values .And if i use tusb wat wud be the difficulty in dat ?
0 Kudos
Message 7 of 7
(3,323 Views)