08-22-2005 06:29 AM
08-22-2005 07:04 AM
What do you mean by "write to a tag"?
You are probably using Concatenate Strings in your loop. This function needs to allocate memory each time and if your string is big, it will take a lot of memory. You should probably initialize a large array or a string before entering the loop and use Replace Array Subset or Replace Substring to replace the appropiate part. Also, if your program runs for a long time, you should periodically save the data and clear your buffer.
If this didn't help, you should post the relevant piece of code.
08-22-2005 08:05 AM
08-22-2005 12:42 PM
Trust me, people use serial communication with LV all the time without losing memory. I can't check the example at the moment, but If it had a problem someone would have caught on to it by now. In any case, even if using the serial VIs causes the memory usage to go up, it shouldn't be dramatic, definitely not enough to crash the application and consume all memory.
Like I said, post your code (there is an attachment field when you write your message and you can save all your files into a single file by opening the main VI and selecting File>>Save with Options>>Development Distribution) and we will probably be able to find your problem.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
08-22-2005 12:59 PM
tst: A tag is a name associated with an endpoint device commonly used in DSC and SCADA systems. It might be a temperature guage or a valve controller or such.
08-22-2005 01:18 PM
Thanks, tbob.
Although not a heavy user of the DSC module or the tag engine, I do know what a DSC tag is. I just wanted to make sure he tells us what he means by it, because it might be pertinent.