07-22-2009 10:09 AM
07-22-2009 10:30 AM
I don't see anything obvious and I cannot run because I don't have certain subVIs. You read 101000 characters at one point. How big is the array?
There are several VISA read. Can you tell which one throws the error?
There are a couple of silly code constructs, but they should not cause any memory errors:
07-22-2009 10:31 AM - edited 07-22-2009 10:31 AM
That indicates that it was unable to allocate the requested amount of memory. Perhaps you have a memory leak somewhere else, or you've got too much stuff running on your machine?
Code comments:
07-22-2009 10:34 AM - edited 07-22-2009 10:37 AM
Wow! It took you less than 60second to copy some of my comments! LOL 😄
(I suspect that the 4.0 typecast is a leftover from some very old code that was originally written in 4.0 or earlier. Since we are not dealing with boolean arrays, it does not make a difference.)
07-22-2009 10:35 AM
In your second frame, you have a constant wired up to the VISA read with a value of 101,000. It is actually rather odd because it is set for scientific notation format. I really doubt that your VISA port can handle that many bytes at once.
Try setting that to a smaller number. Also, set the representation of the constant to U32 instead of I32 to get rid of the coercion dot.
07-22-2009 10:38 AM
07-22-2009 10:40 AM
Check you data going to the type cast. If you try to type cast the wrong data, LV will attempt the conversion trusting that you know what you are doing. You can check the offset of teh search to determine if it found what you wanted.
Ben
07-22-2009 10:42 AM
07-22-2009 10:45 AM
07-22-2009 11:00 AM