03-17-2011 12:28 PM
I am trying to clear the cursor list that is on my graph programmatically. When I wire an empty array to the property cursorlist, it does not work and the cursors remian in the listing on the display. Anybody know how to do this programmatically?
Solved! Go to Solution.
03-17-2011 02:41 PM
Don't use an empty array, just an array with all zeros. In other words, enter a zero somewhere in that array to initialize the constant.
03-18-2011 06:41 AM
Thanks, but that leaves me with a cursor entry with no name at a zero position which is better than what I had. I cant believe there is no way to do this....
03-18-2011 07:42 AM - edited 03-18-2011 07:43 AM
In LV 2009 it works just fine.
I submited a request to get an Ae to look at this and file the bug report.
Ben
03-18-2011 07:55 AM
I dont know this for sure, but you may want to look at the other properties like annotation lists...
03-18-2011 08:01 AM
@id wrote:
I dont know this for sure, but you may want to look at the other properties like annotation lists...
Please forgive but who was that that comment aimed at and are you hinting at more issues?
Ben
03-23-2011 07:59 AM
Hi id, this is Paul with Applications Engineering at National Instruments
I have been working on this issue, and it appears that there is a bug with it, which I will be filing shortly as a Corrective Action Report.
In the mean time, I have found a work around for you.
Follow these steps:
1. Place a Flat Sequence around your CrsrList Property
2. Add a frame to the flat structure
3. Create a copy of the CrsrList Property in the second frame
4. In the first frame, create a constant from the CrsrList Property. Place a space (or any character)in the name string of index
5. In the second frame, create a constant from the CrsList Property, but leave it empty.
6. Run program, observe list cleared
For some reason the list has to be emptied out before it can be cleared. I'm not sure why, and again I will be submitting a CAR on this.
Please see the attached screen shot, and a copy of your VI before I ran the fix.
03-23-2011 09:07 AM
Please delete the attached file from your forum
03-23-2011 09:43 AM
Hey guys, I have filed this as a CAR 290464
id, did that workaround work for you?
Also, I do not have permissions to delete files from the forums. Why do you need the file deleted?
03-23-2011 11:40 AM
Cleaner version of the workaround. Empty Cursor just has a space for the name.