Order to internal model with cRIO, synchronization of time loop

Hello

I work with control design Simulation & toolkit and I want to implement an internal model control to a real-time target. I want to implement my simulation (as an attachment) to the real target (cRIO-9024 OR cRIO-9112). I removed the transfer function of the process, I broke the line and I added my input/output of the cRIO modules. I put a 1ms, Euler ode solver step size and synchronize the time loop. Unfortunately it does not work properly. The loop decreased the speed a lot and I can't get 1 ms response time and, finally, a good answer for my system. This means that I can not 1ms response for loop? What is the problem of the computer, windows or hardware real-time or software? Simple or I did something wrong? All the advice you will enjoy.

Kind regards

Kamil


Tags: NI Hardware

Similar Questions

  • problems with timing in a time loop in a structure of the event

    Hello

    I'm using labview to control three motors stepper, running the three stages of different translation in different axes (X, Y and Z). Please see the attached VI, focusing on the structure of the event on the RIGHT side.

    In the Z axis, I am trying to run the engine for 5 seconds, after clicking on a button. I have attampted to do by adding a sub of elapsed time VI within a while loop, located in the tab 'Mouse before Z down' the structure of the event. A similar "elapsed time while loop" is also included in tab 'Z reverse the mouse down' the structure of the event.

    Separately these "elapsed time loops" work very well, BUT when I run a Z direction after another, say 'Z Reverse' and then 'Before Z' then they annoyingly interact. The calendar is gone, with the moment where we add, rather than rebooting.

    No idea how I can reset the time elapsed while loops? Or is there another method better do?

    Thank you very much

    Charlie

    charlieryan wrote:

    I take a wire from the 'i' of the while loop at the entrance of the Sub autoreset - VI of tiem will blink?

    No, connect you to the "reset", not "autoreset".

  • Pulse or measure of separation of two edge with implicit synchronization in ticks: what about minVal and maxVal?

    When I pulse or measure of separation of two edges, using the implicit synchronization, DAQmx chooses (I think) an internal time base appropriate for the measurement. My X series on Board (a 6320) has for example a time base internal 100 MHz. I think I can apply to the use of a base of specific time (using the Set accessor of property DAQmxSetCICtrTimebaseSrc to set the counter to the value '100MHzTimebase' time base). But the docs of the DAQmxCreateCIPulseChanTicks and DAQmxCreateCITwoEdgeSepChan functions (this last one called with the parameter to the DAQmx_Val_Ticks units) make me spend a minVal and maxVal. Apparently, these values are used to determine a time appropriate for the implied timing base (internally). But how to choose the specific digraph/maxVal values? They are obviously dependent on the time base, so it's kind of a situation / the hen's egg. Should I just say '1' or '0.1' or even '0 '? Because I * want * the time of 100 MHz, to use base. Or can I simply call the DAQmxSetCICtrTimebaseSrc after DAQmxCreateCIPulseChanTicks?

    1. When you use "Ticks" for units, digraph must be > = 2.  DAQmx does not support measures of 0 or 1 "Tick" of a time value.

    In general, the parameters that minVal and maxVal are mainly useful for people who are measured in scientific units such as seconds.  They allow DAQmx do the dirty work of correlation required range of programming interface with the basics of time available to the Agency and to make a judicious selection automatically.  For people like you measure in ticks, DAQmx won't do the thinking for you anyway, so just give them plausible values.

    2. Thus, maxVal must simply be a valid 32-bit integer.

    3. Yes, you can explicitly configure to use the time base of 100 MHz after the creation of the task, no doubt thanks to the function, you said "DAQmxSetCICtrTimebaseSrc".  (I do my programming in LabVIEW and don't know the syntax of the api code text driver.)

    I believe that if you do not explicitly choose a time base for a task using ticks as units, the Council will use its default time base.  I know there is an api function in LabVIEW to interrogate the database after creating a task, perhaps you have an available too?

    -Kevin P

  • Problems with batch synchronization

    Hello

    I have a model with 4 Sockets when I launch a sequence (screenshot attached) and using the synchronization of the lot. Batch all the settings in "Settings" in the column are set to "Only a Threead".

    Each of the three "Batch" Enter "-synchronization steps are also finished with a batch of output." "

    The question now is why I get after the while loop attached error?

    Thank you

    By setting the time step to Thred One Only you tell others taken to just run the code once (i.e., as if the time step did not exist for other loops).  So why they go out the closure on the first iteration and imperatively which was the "thread" will end out of the loop.

    I think I'm a little confused on exactly what you want the code to do.  I think you all in loops to execute for all discussions, if you want that all sockets to loop.  There isn't a way around that.  Why don't you have of the step to execute for each thread?

    Kind regards

  • Synchronization of 2 loops while one with a structure of the event.

    Hi fellow users of LabVIEW

    I try to incorporate a structure of the event in my current exisiting VI to Save certain values of control as shown in this post

    http://forums.NI.com/T5/LabVIEW/using-the-quot-make-current-values-default-quot-as-a-control-on/TD-p...

    It's the VI that I use as model with my exisiting VI.

    http://forums.NI.com/NI/attachments/NI/170/547715/1/defaults%20Demo.LLB

    In case the 'stop, change the value' I use in the main VI and a 'real' constant instead of Boolean control of wire structure. While the loops are not connected. The table that I use in my exisiting VI (another while loop) is indexed and unbundled to be used here.

    The work combined well screw and it gives me the results, my question is, in the long run it will give me issues. Do I still need to synchronize?

    Thanks for all the help.

    There's no problem because loop additional lower with the structure of the event.

    Personally, I worry about the top loop. Why so complicated? Why so much duplicate code? Why all these hidden indicators serve as local variables?

    Why don't simply place you the table in the entire cluster in a shift register and the index and ungroup by name wharever value, that you need to access. No hidden local variables or indicators.

  • Authenticate AD then internally store with the same username?

    I know it sounds easy at first sight, but I'm having a nightmare of a time to find a way to make it work.  Our engineers have been used for OUR old ACS 3.2 method where an account was either authenticated against the store internal users or Wwindows AD and you want to duplicate this feature with our new ACS 5.3 configuration.  I fully realize that the two models are not yet close to being similar between these two versions, but I still wonder.

    This is the crux of the problem.  If you have an account jsmith in the internal user with a password store, and also a jsmith in AD with a different password then the system can't manage accounts with the same name when it comes to passwords.

    I have a sequence of internal store configuration to authenticate to AD then the local database.  The problem is that if the user puts the password of the user of internal store ACS server sees that the user exists in AD, but that the password was incorrect and authentication fails.

    Bottom line is that I need a kind of logic that said try to authenticate to AD first with this user name and password and in case of failure instead of end it try to authenticate to the internal store using the given username and password.

    Appreciate any help on this.

    Hello

    There is a problem with the same username in the two database, like ACS will never try to search for the user in the second database because it will always find in the first database no matter what it is.

    You can create rules based on IP device, location of NDG, Type indicating that if authentication comes from a specific basis for the use of specific device.

    Incase of database RSA to option to consider the password invalid not found user, but it is not available for the AD database.

    Kind regards

    ~ JG

    Note the useful messages


  • What are the costs associated with the synchronization

    What are the costs associated with the synchronization

    Simple answer is: No. Cost zero.

  • Portege R830 - model with SSD or HARD drive?

    Hello!

    I am considering buying a Portege R830. I've yet to decide between the Portégé R830-10R (model with HARD drive) and the Portégé R830 - 10 p (model with a 256 GB SSD). To do this, I would like to know:

    -What is the SSD model assembled in the Portégé R830?
    -It uses a standard SATA connection or an owner like the previous Portégé R700 SSD?
    -Have someone replaced the original HDD to the Portégé R830 by a whole new SATA 3 SSD? Wich one? It works fine?

    Thanks in advance for your help.

    Hi MadVet,

    The SSD of Portege R830 - 10 p is a model of Toshiba 2.5 so it does not work in Portege R830. In addition due to the 2.5 form factor it uses SATA standard interface as normal hard drives.

    In my opinion, you should take the model with SSD. 256 GB is enough for the operating system and applications as well as for some important data. If you need more disk external HARD disk space use. SSDS are very fast and you will see the performance of the SSD HARD drive instead ;)

  • Can I order my new laptop with no garbage software?

    When I ordered a DV6500 laptop a few years and it was stuffed with all that extra garbage software.  The laptop went very wrong.  I went out and bought Vista Ultimate, amazed the disk and loaded on my copy of Vista.  It's amazing to see how much better my laptop ran.  I have never had a problem with it as I did.

    Now, I am looking to buy a laptop Hp DV5Z.  With Vista HP always charge on all this garbage software?  If so, how many concerts will they face now?  Any way to order this new laptop with Vista right on this garbage software only?

    A program called PC Decrapifier will get rid of any preinstalled software.

  • Compliling VI in LabVIEW with cRIO-9004 controller and chassis cRIO-9104

    I tried to compile in LabVIEW with cRIO 9004 and cRIo-9104 connected.

    It has three options

    (1) use the server local compilation.

    (2) to connect to the network compile Server

    (3) to connect to the service of LabVIEW FPGA cloud compile

    But I'm unable to compile my program using one of these.

    How can I get my compilation made? Help, please.

    Thanks YouCp

    Service provider shared's Standard Service program is an annual fee of NOR, which in turn allow you to update your modules and LabVIEW and benefiting from the support of NEITHER.

    https://www.NI.com/services/software_benefits.htm

  • Help! Could someone tell me the orders to install drivers with a Windows 7 64 bit on T400 own?

    Help! Could someone tell me the orders to install drivers with a Windows 7 64 bit on T400 own?

    Appreciate for any help!

    The standard response is to install ThinkVantage System Update and let it pull down and install the proper drivers and apps:

    ThinkVantage System Update

    Z.

  • NOR-Sync with cRIO-9035

    Hello

    I'm trying to configure a cRIO-9035 to receive data from timestamp 1588 via Ethernet on the second port ethernet on the cRIO (eth1).

    I'll send the signal of Grandmaster 1588 of a PXIe1065 with a time card OR 6682.

    I connected the cRIO and followed the steps in this article:

    http://digital.NI.com/public.nsf/allkb/3FBB102D0D65AE3486257D88007CCB20

    I modified the "/ usr/local/natinst/share/TimeSync/tsm.json", the instructions in the file as shown below:

            "timeReferences":       {
                    "IEEE 1588-2008_1":     {
                            "defaults":     "/usr/local/natinst/share/TimeSync/TimeReferences/IEEE_1588-2008.json",
                            "priority":     "unknown"
                            "protocolConfig" :
                            {
                                    "priority1" : 128,
                                    "priority2" : 128,
                                    "hwTimestamping" : 1,
                                    "interface" : "eth1",
                                    "statusFile" : "/var/run/ptp_eth1.status"
                            }
                    },
                    "timeKeeper":   {
                            "library":      "/usr/local/natinst/share/TimeSync/TimeKeepers/liblinuxTimekeeper.so.16.
                    },
                    "servo":        {
                            "library":      "/usr/local/natinst/share/TimeSync/Servos/libdefaultServo.so.16.0.0"
                    }
            }
    

    But I get the following error when I read the file ' / var/log/messages:

    Time demon, got status: FAIL(-52005,null)

    Advice of the article that it might be an error in syntax when I changed the file 'tsm.json '.

    (1) someone has the code needed for the IEEE1588-2008 installation with cRIO?

    (2) is it possible to do this entirely in Measurement & Automation Explorer?


  • sbRIo synchronization with the SNTP server time

    Hello!

    I'm timing a sbRIo with a server time as described here:

    http://digital.NI.com/public.nsf/allkb/F2B057C72B537EA2862572D100646D43?OpenDocument

    I have a few questions:

    (1) what happens if the time server becomes inaccessible?

    (2) may source.sntp.address be specified as a name address to be rosolved by DNS? (It seems to me that if the name cannot be resolved, the Agency starts up in safe mode...)

    Thanks in advance for any response,

    Marco

    PS Sorry for the permutation (http://forums.ni.com/t5/Real-Time-Measurement-and/sbRIo-time-sync-with-SNTP-server/m-p/1951123),

    but the problem is very urgent...

    Hi Marco,.

    (1) if the time server SNTP becomes inaccessible, the cRio updates local time independently, from the last time value gets from the server

    (2) you're right, it does not work properly. The right way to express the source SNTP uses the IP address

    Kind regards

    Andrea R.

  • call of hoax? -A received a call from Microsoft who said I had a serious internal problem with my laptop

    I got a phone call from someone who said yesterday that they were from Microsoft and I had a serious internal problem with my laptop. Would Microsoft ring blue like that or is this a scam call? Thank you

    Microsoft do never not solicited for calls.

    It is a common scam. Do not give them information, do not give them access to your PC and do not go to all the websites that they suggest. One moment. See:

    http://www.microsoft.com/en-gb/security/online-privacy/msname.aspx .

  • Any server time I select to synchronize the time with, it is said: ' year error occurred while Windows timed with, (insert.server.here).

    Choose any server to synchronize the time with, it says, "an error occurred while Windows timed (insert.server.here) with," can someone please tell me why this is, or particularly how to solve this problem?  I am trying to connect to NetFlix with Windows Media Center, and as you can probably guess, I'll have no chance.  He told me, INVALID TIME SETTINGS.  Your computer's clock is set for an hour and invalid date or is not correctly adjusted for daylight saving time.  Update the settings of the clock, then try again.  Even when I set the time manually it will not work.  I just don't understand.  Help, please!

    Hello

    How to fix synchronization of time Internet - add your own time server
    http://www.edbott.com/weblog/?p=1779

    Dealing with Windows Vista time sync problems
    http://www.howtogeek.com/HOWTO/Windows-Vista/dealing-with-Windows-Vista-time-sync-problems/

    Synchronize your clock with time servers Internet from the Vista command prompt
    http://www.howtogeek.com/HOWTO/Windows-Vista/sync-your-clock-with-Internet-time-servers-from-the-Vista-command-prompt/

    Time synchronization on Windows XP and Vista with Internet
    http://www.techexams.NET/blogs/jdmurray/synchronizing-the-time-on-Windows-XP-and-Vista-with-the-Internet/

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

Maybe you are looking for

  • Record of question mark on inactivity on MBP 15 "2011

    Here's the problem, in short, I will be happy to provide you with more info soon.    I have a MBP 15 "beginning 2011 with 10.10.5 OSX, 16G of RAM, 512G SSD drive of OWS.   After about 2 weeks I started to get a folder of question mark at one point, a

  • Lenovo Ideapad y700, keyboard does not! And more problems after that.

    This laptop is around the age of 5 months. While I was looking through the web suddenly the keyboard does not work. Because of this, I tried to restart my computer. And for some reason, a Novo button Menu appeared. I tried to press on enter (because

  • After you install the update, I am getting NTVDM. EXE has encountered a problem and needs to close

    OK a bit on my setup, I have a Server 2008 R2 as a DC area, and in my Department and the engraving, we have four XP Pro SP3.  After the engraving machine is updated Automatic last night when we try to access a MS-DOS 16-bit program that works, I get

  • Dell XPS 600 will not PUBLISH the same!

    I have a dell xps 600 with the 14f0w91 of service and code whenever I turn on the PC, all fans are on MAXIMUM speed with power clear amber and 3.4 lights are on. It will not even POST. Is there any fix for this free? Thank you, Nick Hanson

  • Nexus configuration

    Hello I need assistance with the configuration of the link with the Java Update - version 5.9.2 ApplicationServers-Java cartridge FMS - 5.6.7 release FglAM Version - 5.6.7 running Windows I am trying to configure a Weblogic domain by using the new da