09-12-2014 01:12 PM
09-13-2014 05:51 AM
If you see, you are using VISA write in while loop not only when sent command is pressed. Instead use one EVENT structure with send command as one case. Use VISA write inside only. This will ensure you are using VISA write only when it is needed.
Use something like this
09-13-2014 09:23 AM - edited 09-13-2014 09:31 AM
k i will try the event structure
09-13-2014 09:25 AM
at nyc the for loop u sugessted wil generate the arrays no doubt but i have to use index array further to call a specific element. n next how would this improve my communicaion problem?
09-14-2014 12:53 AM
Ranjeet Singh the event structure which u suggested sks me wire an extra event of timeout.when i delete the timeout 5oo the prog doesnt run.when i add an event for time out the looks like the way i have attached. now it doesnt work. mean when i run the prog first time transmissoin led on arduino is on continously then when i click on send command led labview seems to be hanged for few seconds then on arduino for long time recv and transmit leds are on. then after 4-5 min only trans led on arduino is on.but vtg on pin is not seen at any instant of time.
this is very wierd.
can anybody help?
09-14-2014 03:46 AM
What did you do in your attached vi. you simply draged and image and put it on block diagram??
Timeout event will fire if no registered event is there to execute.
if you do not wire the timeout terminal or give it value of -1 it will never timeout so this event won't be executed.
09-14-2014 10:00 AM
neos, i know his hats y i added event for timeout also but still things dont work my arduino still responds after 2-3 minutes
09-14-2014 10:03 AM
kindly go through the block diagram i have aaded an event for timeout but should i add some stopping stuuff in tha event or leave it blank?
09-14-2014 11:34 AM
The problem is that your vi is only opening as an image in LabVIEW 2012 and 2013, so we can't see all of your block diagram.
09-14-2014 02:44 PM
thanks ranjeet event structure works upto great extent
i will work on my prog and revert very soon