08-30-2010 09:23 AM
Now I know, what this "hang" ing is as I mentioned earlier. After I get the timeout error and stop the program and run it again, the CH1 reading takes a very small value in the beginning instead of the actual value and I get a timeout error again which only shows up after the "timeout" amount of time which I have set here as 60,000 ms.
08-30-2010 10:14 AM
Thank you so much. Your suggestions works. Great. There is one more thing hat I want to ask. I made another program to make the c-v hysteresis. There I have the same issues. So, now I change the termination character to \r and have added character input as "13". But, here the program runs under two loops. When I try to put the VISA CLOSE and simple error outside the loop and connect to the VISA resource name and error out (which is inside this second loop nested inside the first loop), the wire shows broken. Can you suggest how I can put the VISA CLOSE outside the loops? also what will happen if I donot use VISA CLOSE?
08-30-2010 10:15 AM
Here are the rest of the files.
08-30-2010 10:24 AM - edited 08-30-2010 10:27 AM
I don't see any broken wires in your VI's. You'd have to give us a screen shot to see what you are talking about. If you click the broken run arrow, what does it say?
You can live without a VISA close. The serial port will just remain open until you close LabVIEW. That shouldn't be a problem unless you need to use another application to access the serial port.
PS. You should use the Block Diagram Cleanup Tool to straighten out some of your wires in your block diagram to make it easier to read.
08-30-2010 10:49 AM
I attach over here the program with error. Thank you for your suggestions, I have used the clean up diagram to make it less clutter free. The other sub-VI s are already attached. Please suggest me how to remove this error.
BLOCK DIAGRAM ERRORS:
1. Array element conflict
You have connected an array data type to its element data type. This type conflict may be resolved by indexing the array to access individual elements of the array. Check for a tunnel on a loop that has indexing incorrectly enabled.The type of the source is 2-D array ofcluster of 3 elements.The type of the sink is cluster of 3 elements.
2. You have connected two terminal sof different types
These cannot be wired together because their data types (numeric, string, array, cluster, etc.) do not match. Show the Context Help window to see what data type is required.
The type of the source is 2-D array of
VISA session of class.
The type of the sink is VISA session of class.
08-30-2010 11:43 AM - edited 08-30-2010 11:46 AM
The error message tells you the answer.
Disable auto-indexing on the tunnels.
Hint: Right click the tunnels.
08-30-2010 01:55 PM
Thank you for the reply. It worked perfectly.