02-20-2006 10:19 AM
02-20-2006 10:27 AM
Need some help here. Can you post your code. I am willing to look at it because sounds like something is not right.
Matt
02-20-2006 11:31 AM
02-20-2006 11:54 AM
i tried placing the write outside the loop, but it didnt work at all, i mean no data was written.? what can i do here?
regards
Eric
02-20-2006 11:59 AM
Eric,
You code could use some comments and you may want to consult the LabVIEW Style Guide for hints on cleaning it up. I don't think the file write has anything to do with the issue. I do think it is caused by a serial timeout that it is not finding the termination character. Since you have no error display you are not seeing it. Are you initializing the instrument inside of the loop?
Try:
Set serial timeout to 20 seconds and see if it runs even slower
Enable Highlight Execution mode and watch your code run
Let me know what you find,
Matt
02-20-2006 12:02 PM
it works perfectly, i know its a bit messy. but when i move the write blocks outside the loop, the vi works as per usual ,but no data actually gets written.
how do you set the serial time out?
regards
Eric
02-20-2006 12:33 PM
02-20-2006 12:49 PM
02-20-2006 01:13 PM
02-20-2006 01:56 PM
ok lads,
i changed the timeout, but it didnt make much of a difference, however the value of N in the for loop did, i put this down to 200, will this effect my results been sent to excel?
im still not getting any data sent out though, i put on indexing, on the for loop and the while loop.
whats going on, why doesnt the data send out? do i need to assign the measurement block with more signals...?
regards