LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create dynamic cursor

Hi,
 how to create a dynamic cursor on the graph that is before th eexecution the cursors is not on the graph but after the execition it dynamically comes , using for the peak detector in the graph .
 
please help
0 Kudos
Message 1 of 6
(7,252 Views)
You can use a property node made on the graph to access (in read or write mode) to its properties.
Cursor visible, cursor position, cursor style, etc... are among the graph properties.

See screenshot below :



Message Edité par TiTou le 05-02-2007 11:55 AM


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 2 of 6
(7,250 Views)

TiTou,

I dont know this till now.

Thanks for that.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 3 of 6
(7,241 Views)

Note that if there are no cursors on the graph and you call the active cursor property with a value of 3 (for example) an error will be returned.  LabVIEW will not create the cursor.

To create a totally new cursor at runtime you need to use the cursorlist property.  It is an array of cursor clusters.  To add a new cursor you simply read the old list, add your new cursor into the array and write it back.

Message 4 of 6
(7,236 Views)
Thanks for adding your remark Evan, indeed you can programmatically add cursors, but this, I think, is advanced programming and too complacted in many cases.
To keep things simple I usually create the maximum number of cursor I will need at developping time and hide them and at run-time, if required I show them.

😉



We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 5 of 6
(7,232 Views)
9886464393 I completely agree with TiTou.  If you know that you are only going to need at max N cursors then I would add them at edit time and use the code TiTou suggested.  If however, you don't know the max number fo cursors you would need my suggestion.
Message 6 of 6
(7,228 Views)