Jump to content

ammar saleem

Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Posts posted by ammar saleem

  1. Hi guys

    I want to send a number for controlling a PWM pulse, via labview to a microcontroller.

    i have problems with type conversions. number to send is, 1 byte, 0-255, thus is 3 characters as a string.

    as it seems labview just send first character, and then PWM wave didn't change much.

    i confused with type conversions, string to number, number to array !!! :wacko:

    I attached a picture of my simple VI.

    how must i change my VI to send numbers completely?

    post-3628-1136704965.jpg?width=400

    the sending of the no. or a string is dependent on the time u have taken to send it through serial port

    bcz if u put the whole of the cicuit in the while loop or the for loop with time delations u can eeasily see

    the strings it can end for that perticular time. if u wish i can send u a circu9it for u also.my email address is

    01.ammar@gmail.com

    Hi oscar

    Problem is the number that Labview send to chip, VB send a number between 0-255, but Labview send a number between 0-10, then PWM pulse width change roughly..

    I wrote VB program in less than 10 minute, but after two days I couldn't get same answer from Labview! :headbang:

    u can change the type of the number u are sending to serial port, bycliking the search icon in the control palate and writing in the box like,string to decimal conversion,and u will get the idea of how to convert from ascII to other types.

    Hi guys

    I want to send a number for controlling a PWM pulse, via labview to a microcontroller.

    i have problems with type conversions. number to send is, 1 byte, 0-255, thus is 3 characters as a string.

    as it seems labview just send first character, and then PWM wave didn't change much.

    i confused with type conversions, string to number, number to array !!! :wacko:

    I attached a picture of my simple VI.

    how must i change my VI to send numbers completely?

    post-3628-1136704965.jpg?width=400

    [/quote ammar saleem]

    use the while loop or the for loop for more strings to be transmitted or u can check the process by clicking run continously icon ie with the run icon

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.