How to programmatically set the real-time CVI startup DLL?

Dear NI Support Engineer:
I'm part of a team of software engineers working on a real-time aerospace app at Honeywell (Coon Rapids, MN campus).  We're using LabWindows/CVI 9.0 and three LabView 8.6 real-time modules.
Up until now, we've been using the CVI debugger to launch our real-time apps or just copying the app DLL to C:\ni-rt\cvi on the real-time box and setting it as the default startup DLL.
What we need to do now is create our own directory structure at the root of C: on the real-time box (which, by the way, is using the Reliant file system).
In fact, we have created directory ug7500 at the root of C: on the realtime box, and two subdirectories (one for data and one for results) directly under directory ug7500.  We'd like to place all of our app DLLs in the ug7500 directory and have the ability to change the default startup DLL programmatically.
We've been using your LabWindows/CVI Real-time File Copy Utility to set the startup DLL whenever we're not using the debugger.  That was just fine for the first stage of our development.
At this stage, however, we need be able to set the startup DLL programmatically.  We have not been able to find out how to do this from reading the real-time module documentation.
Can you either point us at some documentation on programmatically setting the default startup DLL, or e-mail us the instructions, or give us a phone call and explain what steps we must take.
Thank you very much.
Vic
763-957-4168

Hello All,
For the reference of anyone else trying to do this, you can modify the INI file to change the startup DLL. Using the INI instrument that ships with CVI (C:\Program Files\National Instruments\CVI90\toolslib\toolbox), you can find the StartupDLLs tag and replace the last value with your startup DLL, such as:
#include "inifile.h"
#include <cvirte.h>
static int status;
static IniText myINIFile;
int main (int argc, char *argv[])
 if (InitCVIRTE (0, argv, 0) == 0)
  return -1;    /* out of memory */
 myINIFile = Ini_New (0);
 status = Ini_ReadFromFile (myINIFile, "c:\\ni-rt.ini");
 status = Ini_PutRawString (myINIFile, "LVRT", "StartupDLLs", "c:\\NI-RT\\system\\cvi_lvrt.dll;c:\\ni-rt\\system\\nidevldp.dll;nisysapirpc.dll;niorbp.dll;c:\\ni-rt\\system\\mxsemb.dll;c:\\ni-rt\\system\\nipxism.dll;c:\\NI-RT\\cvi\\myStartup.dll;");
 status = Ini_WriteToFile (myINIFile, "c:\\ni-rt.ini");
 return 0;
Right now, there are some caveates with using CVI 9.0 to manipulate an INI file to be used on an RT target. The INI functions currently add line breaks automatically for large tag values and adds quotes around the values. For many INI files this is ok (such as TestStand INI files), but it will not work on an RT target. To remove these features, modify the following lines of the inifile.c file located in the same directory as the INI instrument:
1. On line 38, change the default value of INI_NUM_CHARS_PER_LINE from 80 to a large number such as 8000.
2. Comment out line 953 (newEntry->addMarkerQuotes = addMarkerQuotes;
Now you should be able to programmatically change the INI file of your target machine and, therefore, change the startup DLLs.

Similar Messages

  • How can i set the date time year to my i pod

    how can i set the date time year to my i pod touch

    Hello Theodora,
    You can do this via your iPod's Settings application.
    B-rock

  • How do I set the default time for calendar alerts?

    How do I set the default time for calendar alerts? I always want to have an alert 15 minutes before my appointments. I don't want to have to manually set it each time I make an appointment (I just moved to iphone from a windows mobile where this was basic stuff so I apologise if this is a noob question).

    I have the same issue. I've searched these forums and found lots of people who have asked this same question, but nobody who has received an answer.
    About a year ago, I migrated from a Windows PC and a Blackberry (both of which had very simple default alert options) to a MacBook Pro and an iPhone and have yet to find a solution on this forum or from any of my Apple-savvy friends. Very discouraging.

  • HT1175 how do you set the airport time capsule as the primary base station rather than as a network client?

    how do you set the airport time capsule as the primary base station rather than as a network client?

    The Time Capsule needs to connect to a simple modem......not a modem/router or gateway type of device that is often furnished by Internet Service Providers.
    So, the first logical question here would be......
    What is the make and model number of the device that you call your "modem"?

  • How to Programmatically Set the limit (max, min input) of a control inside a cluster?

    I want to programmatically set the limit (max, min input) of a control inside a cluster. (see attached VI).
    The max, min value will be read from a file. The input of the control must be within the range defined by the max and min value.
    Can anyone tell me how to do it?
    Thanks a lot for your kind help.
    Xiaogang

    Accessing the properties of a cluster (or array) is not a trivial operation until you have done it once. It's a two step (at least) process : first, ask for a reference (array of...) to the objects contained in the cluster, then tell LV what kind of object you are adressing.
    See the attachment.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    How to set limit[1].vi ‏52 KB

  • How to programmatically set the Visibility of an Iview INVISIBLE ?

    Hi ..... I need to programmatically set the visibility of an IView for a user Invisible - In order to achieve that , I am trying the below code....But getting errors-
    Code -
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sapportals.portal.pcd.gl.PcdInitialContextFactory");
                 env.put("com.sap.portal.jndi.requested_aspect","com.sap.portal.pcd.gl.PersistencyAspect");
    env.put("java.naming.factory.object", "__IPcdContext__");
    InitialContext iCtx = null;
    String iViewID = "pcd:portal_content/ABC/1Portal/mywork/iviews/XYA_iViews/adf.ivw_ess_jspdynpage";
                 iCtx = new InitialContext(env);
                 IiView result =(IiView)iCtx.lookup(iViewID);     
                 IiViews iViewSrv = (IiViews)PortalRuntime.getRuntimeResources().getService(IiViews.KEY);
    INewObjectDescriptor IVtoCreate =(INewObjectDescriptor) iViewSrv.instantiateDescriptor(CreateMethod.NEW,"par:/applications/com.sap.km.cm/components/navigation",request.getUser());
    IVtoCreate.putAttribute("com.sap.portal.navigation.invisible", true);
    the above method putAttribute is not apllicablt for (String,Boolean)\
    Please suggest as to how can I programmatically set an Iview Visible/Invisible .

    I think the property is com.sap.portal.navigation.Invisible with a capital I for invisible...
    This blog has an example: Hiding portal role content with a simple iView

  • How can you set the ctxsvr time interval ?

    I would like to know how can i set the time
    inteval between each update of the Intermadia
    indexes.
    Thanks.

    stop and restart ctxsrv on specified intervals.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Lombar vincent ([email protected]):
    I'd like to use the ctxsrv utility, because i want automatic index rebuild.
    But Is it possible to set the time interval
    between each update?<HR></BLOCKQUOTE>
    null

  • How can I Know the real time of my 24p project?

    I made an animatc as part of planning a 7 min animated video on Premiere Pro using a 24p project, trunsting that my ruler is set to 24 fps and that the time displayed was the real time of the video (not the NDF time), since there was no indication on Premiere's create sequence window that the ruler was on NDF basis. (When you cerate a new sequence,on the new sequence settings window you set the timebase as 23,976, but the ruler is shown as 24FPS, no indication of drop or non drop frame.)
    Recently I Had to export a 29,97 version of my project, and it was in fact 14 frames bigger. So I concluded that my time ruler was also showing me a NDF time not the real time of the video.
    Is there a way of creating a 24p project, with a ruler that gives me the real "clock" time? Or any Formula to "convert" a NDF time to DF (real) time, so I know where, on an NDF ruler, do I have  to stop to have a 7 min video?
    Thanks in advance
    Mauricio

    I think the best you can do is use the System Information application (Utilities Folder), looking in the wireless section.
    charlie

  • How do I set the system time?

    Hello
    The system time can be read using System.currentTimeMillis(), but, how can I set it?
    Thanks

    several approaches:
    you could use the OS function to set and call it via Runtime.exec().
    For WIndows e.g.: "time 08:15:00" to set the system time.
    another solution: http://www.rgagnon.com/javadetails/java-0285.html

  • How do I set the date/time on my Airport Express?

    I am using an Apple Airport Express to connect to a wireless router in another part of the house. However, I am unable to set the date/time correctly and so the logs all start from Dec 13, 0hrs.
    I have tried using an internet time server, but to no avail.
    Any ideas?

    Open AirPort Utility and click Manual Setup
    Click the Base Station tab just under the row of icons
    Settings for Time Zone and the option to Set Time Automatically are there
    Click Update to save your new settings and restart the AirPort Express

  • How do I Add the Real Time Service option to our Informatica Cloud partner account

    Logging in a support request through MySupport works best.

    We need to add the Real Time Service option to our Informatica Cloud partner account.  What is the best way to do this? Should I contact the Informatica Cloud Global Customer Support team at: http://now.informatica.com/Cloud-ContactUs.html  Or should I log a support request through: https://mysupport.informatica.com/   .

  • How do I change the date/time of a dll created in LabVIEW without killing it

    I use the LabVIEW (6.0.2 of course) Application builder to create a dll, and I cannot enter creation information, nor can I modify the date time property, which labVIEW does not properly set. I have tried to modify this information in Visual C++, but that destroys the dll because it wasn't compiled in VC++, and therefore isn't compatible.
    If anyone knows how to correctly modify the date/time (and the checksum) without destroying the dll, I would be gratefull to know.
    Thank you

    Dear Sir,
    I was browsing through MSDN in trying to find the info you are looking for and I step into this next file:
    "Peering Inside the PE: A Tour of the Win32 Portable Executable File Format"
    Which you can locate in the msdn.microsoft.com page by going to the search box and typing that title. The first result is that document. Also you may want to check the "imagehlp" file of the msdn library. This documents provides information on the DLL standard and functions.
    Good luck!...
    Nestor Sanchez
    Applications Engineer
    National Instruments
    Nestor
    National Instruments

  • How can I set a Real time execution for applicatio​n on windows 2000

    I'm searching for a vi or a DLL that make me able to set an application thats run on windows2000 to a real time execution.
    I can do it manualy by the task manager, but how to do it automaticaly by Labview?
    Thanks
    Benoit Séguin
    Software Designer

    > I'm searching for a vi or a DLL that make me able to set an
    > application thats run on windows2000 to a real time execution.
    > I can do it manualy by the task manager, but how to do it automaticaly
    > by Labview?
    >
    Assuming all of the VIs are currently set to Same As Caller execution
    system, you can affect all of the VIs below by setting a particular VI
    to a higher priority.
    Be careful that your VI is calling wait ms or releasing time to the OS,
    or the time critical setting will cause the OS to ignore many of its
    normal tasks.
    Greg McKaskle

  • How do you set the Date & Time on Zen V Pl

    On the System menu I scroll down to Clock Settings. It gives me the options to view the?clock, put the?time in title, & the set the alarm. How do you?change the time & date?

    cwilliam4,
    Go to Extras -> Date and Time. Once you're inside, press and hold the Back button and you should have a list of additional options.
    Jason

  • How do you set the alert time to default to a set amount of time in the calendar?

    How do you set a default alert time in my calendar so I don't have to set it every time?

    Go iCal Preferences/General and click the default alert tick box at the bottom. You can then adjust the amount of minutes before the event for the alarm. NB. ticking the tickbox means you get an alarm for every entry.

Maybe you are looking for