08-30-2014 02:35 PM
The reson why i was asking for termination character in sketch of arduino , because sketch should wait till the termination character reached and then perform some operation on data.
and the OP is not sending commands in a loop. He is just sending the command once so dkfire's comments about putting a wait should do the trick.
08-30-2014 07:49 PM
It is absolutely essential to wait for a few seconds after the initializing the serial port because the Arduino's bootloader is waiting for a firmware updfate. After it times out, the Arduino reboots then starts whatever firmware you loaded. Until then, it is not listening to the serial port! There doesn't seem to be any buffering on the Arduino side so the message is lost.
Have a look at how LIFA initializes the port.
JohnCS
08-31-2014 03:55 AM
1) RavensFan i have created htoi file becuse visa accepts only hex and arduino syntax cannot cannot be build using hex string.so i created a htoi file which has switch cases where hex strings are directed to several cases of numbers and then these num are used to generate the requierd sysntax in arduino.
n yep it is one way communication where labview sends and arduino recvs and then arduino according to the synatx sends the coeds and devices recv from arduino and act accordingly.
2) Neos termination character doesnt help but wait does
3) JohnCS wait helps yes it does. but LIFA_BASE is not desirable because while doing so labview becomes master n arduino slave and also those libraries which reduces the prog n arduino. so i wish to use labview visa only.
THANKS guys wait works..but i am using it in while loop...n it really works.. thanku..for ur help n guidance next is my digipot interfacing if i have a problem i will post..thanx bye bye
08-31-2014 03:58 AM
1) RavensFan i have created htoi file becuse visa accepts only hex and arduino syntax cannot cannot be build using hex string.so i created a htoi file which has switch cases where hex strings are directed to several cases of numbers and then these num are used to generate the requierd sysntax in arduino.
n yep it is one way communication where labview sends and arduino recvs and then arduino according to the synatx sends the coeds and devices recv from arduino and act accordingly.
2) Neos termination character doesnt help but wait does
3) JohnCS wait helps yes it does. but LIFA_BASE is not desirable because while doing so labview becomes master n arduino slave and also those libraries which reduces the prog n arduino. so i wish to use labview visa only.
THANKS guys wait works..but i am using it in while loop...n it really works.. thanku..for ur help n guidance next is my digipot interfacing if i have a problem i will post..thanx bye bye
08-31-2014 08:46 AM
thanks...stuff work well with visa flush or delay...termination character is not the matter....thanx for quick reply...i will try other stuffs n will post if find some difficulties...thanx a lot..
08-31-2014 09:58 AM
Remember to close your other threads about this same problem.