Jump to content

terence

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

terence's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I've been researching around on the net from what i can gather, i think i need to communicate via a blutooth virtual serial port. is this right? this is my bluetooth module: http://www.sparkfun.com/datasheets/RF/BR-SC30A_Rev2.0.pdf
  2. Hi Guys, To date, i've been working a project that has a microcontroller, accelerometer and a bluetooth chip. basically im just sending accelerometer readings thru the micro, to my laptop running a VI in labview. i've managed to write a VI that reads the data via RS232. I'm trying to write a VI for bluetooth now. I've been following the advanced client example in labview 7.1 which has been really helpful. i'm able to detect all bluetooth enabled devices. list the services for the blue tooth device. then choose the service. Once the service has been chosen "COM0" in my VI, i try to read the data that the micro is sending over bluetooth. the micro is constantly outputting characters but i only seem to be able to read about 20 bytes using the bluetooth read function before it stops / times out. i'm not sure if my code under the "COM0" service is correct. i've also tried all the differend modes of the bluetooth read function. I've attached the VI. any help is appreciated! Thanks, Terence Download File:post-4458-1146498156.vi
  3. Thanks for your help! using the methods u described, i was able to achieve the right output! thanks again
  4. Hi guys, I've got a VI that currently hooks up to a microcontroller that sends data to my labview program via serial. right now the serial and sending data bit works fine. the problem is with the accelerometer that is hooked up to my micro. basically the accelerometer sends in 12 bits. so i've made my microcontroller send the 12 bits in two 8 bit messages. so i send 16 bits and then a termination character (line feed) to labview. the manipulation that i'm trying to do is to detect the first 8 bits after detecting the line feed. shifting the first byte left by 4bits. then shift the next byte right by 4 bits. then add these two bytes together to get my original 12 bits from the accelerometer. i think i've done the manipulation correctly. i just can't figure out a way to distinguish the 1st 8 bits from the next 8 bits. i've attached the file. any help is appreciated! Download File:post-4458-1145863834.vi
  5. THanks Wmassey, you were right! i made the micro end a string with a <LF> character and now no errors occur while outputting to the VI. going to play with it more now! cheers
  6. thanks for all your help so far, i'm really appreciative! i played around with the program and was still receiving some junk instead of just the single character. i added in a delay and flush buffer before the bytes at port and receive the correct information. however this error occurs, and i'm not too sure what it means: Warning 1073676294 occurred at VISA Read in revised_bertserial2.vi Possible reason(s): VISA: (Hex 0x3FFF0006) The number of bytes transferred is equal to the requested input count. More data might be available. i've attached the modified vi. thx guys the baud rate im using is 57600 Download File:post-4458-1143084484.vi
  7. This is a really simple vi i put together just then to just display the characters that my microcontroller is inputting. a framing error occurs. any help is appreciated! Download File:post-4458-1142915071.vi
  8. i've installed the drivers and the program runs for a few seconds before returning an error (see screenshot). i configured the micro to output a constant character 'b'. using tera terminal, i receive the characters correctly. but using labview i get a framing error. any ideas?
  9. thanks for your help! i just installed the visa drivers, going to check it out now cheers
  10. hi guys, I'm trying to use labview (i'm a newbie to it) to establish a read and write data link to my microcontroller. at the moment i'm just outputting a constant character to com1 from my micro (AVR). i tried using the example that came with labview 7.1 (basic read and write) but i can't even run it. ii've attached the error i received. ANy ideas? Thanks
×
×
  • Create New...

Important Information

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