TAOS 230 and LabView 7.0
J.D.
Posts: 4
I have a TAOS 230 color sensor that I am trying to link up with LabView7.0.· I am using the SEROUT command to send the data from the BS2 STAMP, and it comes out once every 2 seconds.· I have setup the COM port in LabView and it is seeing the data, but the timing is off because sometimes it catches all the numbers and sometimes it does not.· If i have my program running ina DEBUG window, my data comes over as follows:· RGB, XMIT, (XXXX, XXXX, XXXX)······ The X's represent my color values (I am running a 12 bit program) and this is what i want to capture.
With the current configuration in LabView, and with the data string described above; when i hit RUN in Labview it seems to only catch pieces of the data string.· The determining factor in how much of the string i get seems to depend on when i hit RUN in relation to when the STAMP is sending the data over.
Having said that, if someone could help me to get the timing right so i get all the data everytime it would be very helpful.· Thanks a lot!!
JD
With the current configuration in LabView, and with the data string described above; when i hit RUN in Labview it seems to only catch pieces of the data string.· The determining factor in how much of the string i get seems to depend on when i hit RUN in relation to when the STAMP is sending the data over.
Having said that, if someone could help me to get the timing right so i get all the data everytime it would be very helpful.· Thanks a lot!!
JD
Comments
Thanks for the quick response! I have attached a jpeg of my port setup and the serial read vi's for you to look at. I think you are correct that LabView is not waiting for the complete string, and i am not sure how to do that. As you can tell, i just started using LabView and there are way too many vi's to know what does what at this point. Any input you can give me would be welcome. Thanks again!
If your still having trouble, attach the vi to your next message and I'll modify it accordingly.
Did you have any success?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Shawn Lowe
My last words shall be - "NOT YET!!!"
My other problem is splitting up my string.· The buffer is reading (xxxx,xxxx,xxxx), where xxxx are the 3 numbers i want.· These 3 numbers i plan on inputing into another vi, but i cant figure out how to make them 3 seperate numbers from my string.
I do realize this is more a LabView problem than a STAMP problem, but i really appreciate all your help.
Well I am interested in how you will get it working. I think it would be cool to output data from a stamp to labview. Keep us informed!
As far as the timeout, have you played with the timeout parameter on the VISA serial instrument? I have been playing with my student version, but I can't even figure out the darn VISA read setup! [noparse]:([/noparse]
If you visit any labview websites, I would be interested in knowing. I wouldn't mind visiting as well.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Shawn Lowe
My last words shall be - "NOT YET!!!"