09-29-2009 11:09 AM
hi Owen.S
i check the GUI provided by you
1) i dont use the external circuitry but i use the cross usb to serial cable i-e one end is usb and other is connected to system com port and i send data from usb hyperterminal to com port hyper terminal and found the loop 100% working (im using this senario bcz theres some temporary problem in my circiut)
2) i send the data to GUI in this format "temp 40 humidity 80 " the GUI shows the recived data also in the tabs
3) but when i send the complete packet data that is "temp 40 humidity 80 level 10" GUI only shows the temp 40 humidity 80 and level 10 in next line and level data is not shown in tab whats the reason
plz reply
i attach the images for better undrstand the problem
09-29-2009 11:21 AM
Hi adeelghani,
It looks to me as though it might be a coding issue as your serial to usb loop seems fine.
Could you please send me the LabVIEW code you are using so I can get a better understanding of how you are manipulating the incoming data.
I hope we can get this sorted out soon 🙂
Thanks,
09-29-2009 11:26 AM - edited 09-29-2009 11:28 AM
Your VI also shows that you are using the run continuous button. Never do that.
It's also my VI that you are running and not Owen's. As I have said, this will work as long as you are terminating the string with a LF. It might also need to be changed if the string is longer than 100 bytes.
09-29-2009 01:03 PM - edited 09-29-2009 01:07 PM
oh soryy but thanks to u both sir specially Dennis Knutson
ok i noted i thing when i change in string formating form this syntax "temp%f humidity%f level%f " to "l%f h%f l%f" (where t 4 temp h 4 humidity & l 4 level ) the GUI properly works & shows all incomming strings ang display data in tabs. so whats the reason of this ?????
and y the GUI read the strings late (time delay ) where as direct path between transmitter and reciever via cross usb to serial cable.
thanks 4 replaying
09-29-2009 02:27 PM
Obviously, if you change what is transmitted, you have to change the format string.
I asked you in my very first answer to capture the data in the VI, make current values default, save the VI and then post it. If you don't want to do this simple thing, explain why. Otherwise, it's just a waste of time.
09-29-2009 02:40 PM
how i make current values deafult ??? perhase i cant get ur point can u briefly explian this ......
and my last question how this completet string is not shown "temp 80 humidity 10 level 20" the string showson tab is only two temp and humidity
and respected sir im not wasting ur point im no my project which should i deliver with gui and bundle of thanks 4 beinh helping me
regards
09-29-2009 03:37 PM
I did explain it and I already told you where.
I also have no idea what you mean about 'tab'. There is no such thing on any of the VI's
09-30-2009 01:35 AM
Hi,
With regards to the speed issue, if you change the "timeout" option within the code from 10000 (10 Seconds) to 250 the speed of transmission should increase greatly, if a timeout error occurs increase this in steps of 250 until it operates. Also when you change the format string the output will differ, i.e. %d will show an integer while "test %d" will show the text "test 1" for example. With serial it's normally best, where possible just to send the data you are interested in and provide formatting at the receiving end to limit the amount of data being pushed through the comms.
I hope this helps,
All the best,
09-30-2009 12:44 PM
hello sir
thanks 4 replyng i got ur point and theres not time delay issue, but sir in an example of tempearture logger is see when i reun the vi a new window open and say to save the file (file name and file location ) after that the vi has perform its function.
the file has the complete detailed of incoming data string with there value
kindly sir can u help me to make this
i attached that file
plz recieved that file
thanks
09-30-2009 12:47 PM
sir 2 rest of the file is uploaded here
total 5 files