NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
A._Baumann
Posts: 29
0 Kudos

set cursor with VBS

Hi people,

 

I am trying to set a cross cursor at the local minumum within a defined area of a curve by VBS. In another words. I have to find the local minimum and move the cursor to there. So I guess I need a function like "set crosscursor to chnmin(interval(x-axis))". Does anyone can help me? Thanks in advance.

 

cheers, Andi

Active Participant
Walter_Rick
Posts: 957
0 Kudos

Re: set cursor with VBS

Hallo Andi,

 

das könnte so aussehen:

dim oChn
set oChn = Data.Root.ActiveChannelGroup.Channels(1)
View.ActiveSheet.Cursor.P1 = pno(oChn, oChn.Properties("minimum").Value)

 

Bei einem X/Y Kanalpaar ist oChn der Y-Kanal.

 

 Gruß

Walter

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page