09-13-2011 06:52 AM
Though even the program work put some more time 300ms or 500ms.
Labview is amazing.
09-13-2011 12:26 PM
OK.
Thank you
02-06-2012 04:04 AM
Good morning,
my problem with serial communication seems to be similar to the one of gustavo carlos but it has not been solved with a simple delay.
I try to get continous information of an eletronical load HDT ML50 (µload) every second (minimum)
As you can see the program sends the string "TA000000" serial, what means to "Tell All" Values of the electronical load, consisting of current, voltage and power of the load. The command has to be closed with return and linefeed.
The problem: the values are readable but after a while the communication is lost, the program only gets a "?". After more time communication continues.
I nearly tried everything to solve this problem but I obviously do not understand the communication.
Do you have any hints or advice?
Best regards,
Jonas
02-06-2012 05:19 AM - edited 02-06-2012 05:22 AM
I´ve forgotten to add the vi, but here it is now.
I have added the random function to simulate a not constant intervall of measurement (caused by the code in while loop)
02-06-2012 02:05 PM
move the open and close outside the loop
It is also not needed to have a sequence frame around the read and the write. Keep the sequence frame around the wait !
This probably helps a bit
Another option is just to ask for 11 bytes (or a bit more) and have endcharacter enabled and defined
02-06-2012 02:18 PM
02-07-2012 02:46 AM
thank you for help but in fact it´s not the solution. Maybe it is caused by the instrument`? It has an internal serial to usb converter. After a while the connection is lost if timing intervall is not constant, everytime! In my opinion the handicap is the internal converter.