取消
显示结果 
搜索替代 
您的意思是: 

resetting cursor lists programmatically

已解决!
转到解答

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? 

1 条消息(共 31 条)
6,168 次查看

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.

Richard






0 项奖励
2 条消息(共 31 条)
6,155 次查看

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....

0 项奖励
3 条消息(共 31 条)
6,137 次查看

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 项奖励
4 条消息(共 31 条)
6,129 次查看
解答
接受人 id

I dont know this for sure, but you may want to look at the other pr吃惊表情operties like annotation lists...

0 项奖励
5 条消息(共 31 条)
6,124 次查看

@id wrote:

I dont know this for sure, but you may want to look at the other pr吃惊表情operties like annotation lists...


Please forgive but who was that that comment aimed at and are you hinting at more issues?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 项奖励
6 条消息(共 31 条)
6,123 次查看

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.

 

cursor clear work around.png

Paul Davidson
National Instruments
Product Owner - ni.com Chat
0 项奖励
7 条消息(共 31 条)
6,066 次查看

Please delete the attached file from your forum

 

0 项奖励
8 条消息(共 31 条)
6,059 次查看

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?  

Paul Davidson
National Instruments
Product Owner - ni.com Chat
0 项奖励
9 条消息(共 31 条)
6,053 次查看

Cleaner version of the workaround.  Empty Cursor just has a space for the name.

 

EmptyCursorList.png

10 条消息(共 31 条)
6,039 次查看