v_pan Posted December 15, 2008 Report Share Posted December 15, 2008 hello everybody.. i made a project based on microcontroller and communicate with 232. my baud rate is at 115200bps and proved to be very poor for what i want to do. i'm thinking to change my communication to usb2.0 (microcontroller support ) my question is .. if i do this ,do i have to change my program on labview? i mean .. now i select COM1 to communicate with micro after change this the only thing i have to do is to change COM1 to COM4 for example? and increase baud rate or i have to do more things on program>? Quote Link to comment
Irene_he Posted December 15, 2008 Report Share Posted December 15, 2008 QUOTE (v_pan @ Dec 14 2008, 03:31 AM) hello everybody..i made a project based on microcontroller and communicate with 232. my baud rate is at 115200bps and proved to be very poor for what i want to do. i'm thinking to change my communication to usb2.0 (microcontroller support ) my question is .. if i do this ,do i have to change my program on labview? i mean .. now i select COM1 to communicate with micro after change this the only thing i have to do is to change COM1 to COM4 for example? and increase baud rate or i have to do more things on program>? Hello, If what you changed is just adding a RS232 to USB2.0 converter, like what you have said it shows up as COM4, then nothing on speed will improve, even though it is connected to USB port and use a USB cable, but underlying communication protocal is same, it is still RS232. To fully make use of USB protocal, you need to use a true USB device, not a simulated COM port. Regarding the LabVIEW code, yes, you only need to change COM1 to COM4 if you use a RS232 to USB converter, no other code changes needed. Irene Quote Link to comment
v_pan Posted December 15, 2008 Author Report Share Posted December 15, 2008 i will use a PIC microcontrolle that supports USB2.0 hardware.i will make software of USB protocal . so, output from PIC will be a usb cable (not rs232 to usb converter) and i 'll plug it to one of my usb2.0 port on my computer in that case, will LABVIEW recognise this PORT as serial(COM4 for example) or usb? can i increase speed that way? thanks for answer!! Quote Link to comment
Irene_he Posted December 15, 2008 Report Share Posted December 15, 2008 QUOTE (v_pan @ Dec 14 2008, 04:53 AM) i will use a PIC microcontrolle that supports USB2.0 hardware.i will make software of USB protocal .so, output from PIC will be a usb cable (not rs232 to usb converter) and i 'll plug it to one of my usb2.0 port on my computer in that case, will LABVIEW recognise this PORT as serial(COM4 for example) or usb? can i increase speed that way? thanks for answer!! Well, it depends on what firmware you implemented in the hardware. If you have COM type firmware, then it is just a RS232 to USB converter. For a true USB2.0 device, you should be able to stream your data very fast. Irene Quote Link to comment
d_nikolaos Posted February 25, 2009 Report Share Posted February 25, 2009 My problem is similar to v_pan's so i am not going to make a new topic. I have a usb to serial converter and m baud rate is at 115200. When I change it to 230400 it's not working with labview but only with hyperterminal. Can I do something to solve that problem? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.