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
cpeckens
Posts: 1
0 Kudos

Variable set point with real-time controller

Hi.  I want to create a real-time control module that has a time varying set point.  For each time step, I would like to read the value for the set point from an input file.  I am currently using the module found here as a starting point but I am not sure what I need to change the constant set point value to in order to read from an input file.  Any thoughts would be greatly appreciated.

Member
Kyle-H
Posts: 153
0 Kudos

Re: Variable set point with real-time controller

[ Edited ]

Afternoon Peckens,

 

Try starting with the following example to read in the data file (if it is a text file). Then you can use the iteration terminal of that loop to change the set point by indexing the array. 

 

Read file

Kyle Hartley
Applications Engineer
National Instruments
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