Re-use of dynamically called code of target in real-time on PC

I have a code that is deployed on a target in real time what I call dynamically. I also want to use the same code dynamically on a PC in the same project.

This works very well when you run interpreted code in form. However, I can't add the dynamic called VI to build on my PC specification if the VI is under the aim of RT in the project. I can only include it in the build specification that is in conjunction with the software to the target of the RT.

How can I use this VI dynamically in the ad for the construction specifications and places without having two copies of it?

I actually found a way using a static reference of vi:

Rather than providing a path to the file of the 'open' vi reference, simply load the VI statically and I then enter its name to open an instance, re-entering. This approach has the advantage of process Dynamics called VI as if it was dropped on the block diagram - I don't have to explicitly include the vi file in the build specification.

Tags: NI Software

Similar Questions

  • Browse the contents of the hard disk of the target in real time

    Hello

    Is there an easy way to browse the content of the hard drive on a real-time target by using the file path control (or another type of control)?

    What I have in my application is a PC real-time desktop (running on PharLap) who has a Main.vi running on it. There are a few configuration files (for this VI) I want to be able to read and record to that would be stored on the hard drive of the target in real time. However, when the application runs and I hit the Browse button, it displays the contents of the Windows machine and not the machine in real time. Is there something I'm missing?

    Please note that I can send via FTP on the Windows computer to the target in real time and can interact with the drive of the target in real time without any problem.

    Thank you.

    Mike

    If you LV 2013 actually use WebDAV screws thus:

    http://digital.NI.com/public.nsf/allkb/4EBE45E8A816B19386257B6C0071D025

    http://zone.NI.com/reference/en-XX/help/371361K-01/lvcomm/WebDAV/

  • Problem using USB-6356 on target in real time

    I try to use the NI USB-6356 on a SBC I converted to a target for LabVIEW RT. I created a LabVIEW RT project with the Architecture of Communication continuous model. However, when I select target RT > New > NOR-DAQmx channel, the wizard says "no device found support.

    Here's what I've done so far:

    1. Installed Support in real time on the host computer.
    2. Installed OR-DAQmx 15.5.1 on RT target (it is visible when I develop the 'software' under the lens of RT in MAX). See Fig1.png and Fig2.png.
    3. Verified that the NI USB-6356 appears in max under target RT > devices and Interfaces. See Fig3.png.

    Even if the NI USB-6356 appears in MAX, it seems suspicious that it appears as a USB device generic (like the keyboard and mouse that are connected to the target RT). Maybe it appears that way because it is connected to a goal of RT, but it seems that it is not recognized as a DAQmx device. I don't know how get the target RT to recognize as a device DAQmx, given that the appropriate drivers, etc are installed on the computer host and target RT.

    Thanks in advance for any help!

    Sorry to be the bearer of bad news, but the devices USB DAQ (other than the USB cDAQs) are not supported on PharLap targets at the moment. The documentation could certainly be clearer, so I'll update soon to reduce the confusion on this topic.  This white paper, last updated in 2014 is clearer than we currently have.  It is also explained in this KBQ5, but the wording is certainly a little bit clear here.

    I'm not sure of any other solution that exchanging your 6356 for cDAQ USB system, or the displacement of a BONE no - RT.

  • Is it possible to start remotely apply exectutable on target in real time?

    Hi all

    My apologies if this is an obvious question - I couldn't get an answer using the search terms I could think of - and I'm quite new to programming in real time.

    Is it possible to launch a .exe in real-time without head (or not compiled application on the computer of RT) with the help of a contribution by a distance VI - one .exe running on a portable computer based on Windows for example. I'm currently building an application where my Windows based GUI communicates with the use of machine RT shared variable. However I soon would like to put my code on a colleague who will test the application. I remember that a .exe can be saved in a specific on the RT machine folder such that it will launch at startup. However I prefer to store several .exe on the machine and allow my colleague to choose which launch.

    My first thought is to write an .exe wrapper (which will be autolaunch) who can then launch any other .exe saved on the computer using the wrapper. However, I prefer to launch the .exe directly and one at a time if possible - it seems a more elegant solution.

    Best regards and thanks,

    Dave

    Well, there is certainly a way to do it, but NEITHER does not expose this method.  However, you can programmatically restart an RT target and also you can use the vi FTP rename the "startup.rtexe" file that will autorun on reboot.  Good luck!

  • File not found when you try to call a dll on LabVIEW Real Time machine

    I have a dll called "DLLRTTEST" that I wrote, and claim successfully on my host.  Now, I try to call this dll from a vi that is on my computer in real time.  Currently, I get a message 'error 7 occurred at the crux of library DLLRTTEST.vi. call function' when running

    In the attached screenshot, I try to ensure that the vi that I am running is indeed on the system in real time.  I then use a 'check if file or folder Exists.vi' to confirm that the dll that I'm about to call exists on the system in real time as well.  However, I always get an error "error 7 file not found" from the node call library feature.

    Any help is appreciated.

    Thanks again for all the responses.  As I said earlier, I had already met and solved the problem identified in the link provided by Nathand.  I had to go down to Visual Studio 2008 to go beyond this particular error, after which the app of auditor of the dll in real-time reported my dll needs to run successfully.

    I just got the phone with Jack in charge NEITHER well, and it turns out that I simply had to compile my dll in release mode.  Decommissioning of VS 2008 I got the correct version of dll (msvcr90.dll), but since I am compiling in debug mode, I found myself using msvcr90d.dll (d for debug) who doesn't have my computer in real time.

  • Dialog box to open the file on the target in real time

    It is possible to load data from a file on a local PC to a VI runs on an RT target? I have a RIO OR the VI running on. From the front panel, I want to be able to click a button and have a dialog pop up where I can choose a local file to load data from. The problem is that when I try to use the spreadsheet VI load data it returns an error indicating that the dialogue has been canceled. If I use the express VI from file dialog, the VI will always return true to cancel. The dialog box never appears. It is not possible to open a local file to a VI runs on a real-time target?

    Jon VT-

    This function will not work in time real (RT).  Please see the bulletin 2S9D21OH knowledge base: creation of a dialog box file for use with LabVIEW Real-time for more information on this.  However, it only locates the files on the target of RT.  If you try to communicate with a file on your host computer, you can be forced to transfer this document to the target of RT, or implement a different architecture for this task.  I would also add that given the user to define the source of the file manually create non-determinisme within your system.  Again, it is perhaps another reason to implement a different architecture.

  • Photo of Pixmap vi on the target in real time

    I need to shoot some simple pictures in real time and display by PXI. The image is drawn with the functions of images in the palette of the graphics and sounds. To view through PXI, I found the RT IMAQ video output in the NOR-VISION package. So I need to convert the type of type picture IMAQ. I searched online and it seems these conversions all requires the 'Photo to Pixmap' vi, which I cannot find on the aim of RT.

    Is there another way to convert the picture in picture IMAQ without using this VI?

    AuZn,

    The picture to Pixmap VI is not supported on real-time targets. The only other method I can find to get the pixmap cluster is to use Image 'Get' invoke node. However, if you plan to build this application into an executable, invoke node won't work anymore, as façade elements are removed in executable RT.

    Daniel C.

    Technical sales engineer

  • Make a graph that is customized by using the motion of the instrument and in real time

    I am very new to LabVIEW and I need to make a graph or a table with the data being the movement of a device and the x data in real time.  I know how to get the position of the instrument information and how to put in real time for the x axis, but I have no idea how to wire those things in a graph, what type of graph to use, or what other screws I need for the y - data.  I have attached the page I'm working on that... It's kind of just a meli melo of things I thought that may be useful, but I obviously need help.  Thanks in advance.

    Have you so far in your VI, it seems you will ask some data on the location of your device on each iteration of the loop.  In this case, you can use a waveform diagram in the while loop to display these points.  Each new point will be added to the table as they come.  You can do this by writing values to the table as you reach them inside the while loop.  This link should also be able to clear up some confusion about the differences between the tables and charts in LabVIEW.

  • Need help recovering data of the target in real time. Using NI 9233

    I have a cRio-9012 with 9233 module. I have recently setup of the software for the computer and the target. I have also gone through and set up the "NI 9233 start-up scan mode" to use on my controller. However I couldn't really get the execution of vis data. Could I have missed?

    The VI is executed, but it reads zero while I use an accelerometer (Wilcoxon research model 797-33).

    You should consider the specific\ni of Labview\examples\compactrio\module 9233\ examples.

  • Register the event on the target in real time using LabVIEW 2012

    Hi all,

    It seems that LabVIEW 2012 RT does not support user events. Screws are not in the range of function and the help of LabVIEW says that it is not supported. In LabVIEW 2010, everything seems fine.

    That's happened? We need this feature.

    Thanks in advance.

    Hello

    Thank you very much. We will use this workaround, which is not a lot of work if you know what to do. Develop a VI on workstation and the execution of switching left target to the low edge also implements the correct block as well as feature diagram objects.

    This can be fixed in the next patch-Patch because a lot of users could by irritated by this behavior?

    Thank you

    Tyler

  • Connect two targets in real time via TCP/IP

    Hello everyone

    I need to connect two targets of RT on TCP/IP protocols

    I have two sbRIO Council related to a single host PC through an Ethernet router

    and I have two IP address of these two targets, how do I RT - RT ping using the TCP/IP protocol...

    Thank you

    Syed irfan

    irfan789 wrote:

    As I am with RT if the IP address of the two targets has a role to play in this communication via TCP/IP

    In order to open a TCP connection, you must provide the IP address of the remote computer. It does not matter what operating system, the remote computer is running. If that does not meet your question, so I don't understand what you're asking.

  • Slow down the host Communication target in real time

    I start with Labview RT.

    I wish that tor gave reading a thermocouple signal, then sending to host VI. It works, but to slow down.

    I tried to look at CPU, memory usage, but it's my second problem. The DSM does'nt contain functions should be.

    Am I missing a special configuration?

    Published network shared Variables are slow, especially in a high-traffic network.  I recommend that you use a network stream and set up your own communication scheme capable of handling the output rate higher.

  • Automatic shut down of the code MyRio update in real time

    I try to run this code flashing and conduit, which works, but I have, what I want now is when the digital input is pushed to stop the execution. Then continue where it left off when the input is wrong again. If someone could take a look at this and give me any ideas would be great. The way I have now, it will not work because the initial state is false and it must be true to run. So I had initially changed what I had in the business structure reading from true to false, and then he ran. But as soon as I click on the digital input that does not stop running. So if someone could help me get the Vi to stop running until the entry is not thorough and true once still keep the same value, it would be greatly appreciated.

    Hello

    I downloaded and took a peek at your code.  It sounds like you were on the right track with how you thought about this, but you must make a few changes to make it work quite as you expect.  I made a few changes, including the flat removal of the structure of sequence and logic of initialization.  You can add things that I have deleted if they are relevant to your project.  I'll download my modified here, let me know if that helps.

  • Programmatically determine if the forcing is enabled on target in real time

    A HMI application that I'm working, I want to inform the user at startup if the forcing is enabled on the target if all I/O's today obliged.  This information is readily available in the Distributed System Manager, but I can't seem to find a way to get this information programmatically.  Is this possible?  I hope there is a simple solution that I forget.

    PSP data items that are automatically published by the engine of analysis for each variable are displayed in the dialog box browse that you have attached to your previous post.  As long as you have activated the publication for the network i/o Variable, you should be able to access the information of forcings by reading a PSP Variable with the appropriate URL (for example "ni.var.psp:///mod1/AI0/ForceEnabled").  Similarly, you might find the value of forcing by reading "ni.var.psp:///mod1/AI0/ForceValue.  That's how the Browse dialog box is to get this information.  It's simply display all PSP items present on the network.

  • Should I use the Filter SmartScreen with MSE (with enabled real-time mode) together?

    I am running Microsoft Security Essentials in the real-time mode, however, I wonder if it's enough. I have also enabled the smartscreen filter or MSE already covers who?

    I have both, would allow unless it makes your computer run slowly. In this case, just activate time mode real MSE.

    -My opinion-
    You must upgrade your browser to Google Chrome and install Comodo Internet Security. Better security and performance for your PC :D

Maybe you are looking for

  • Incoming emails pop up with the raw code (mime)

    Whenever a new email downloads, it appears in a new window, above all the existing windows, format mime. After 5 to 15 seconds, she disappears and everything is normal. Win 7, Thunderbird 24.4. Started about 2 weeks ago. Update: the problem seems to

  • Qosmio G20 is scalable?

    Hello The Qosmio G20 series IS expandable to match the G30 series? I look for connections HDMI, HD-DVD.

  • Photo printing choose the wrong device

    I have a printer that is also a fax machine. When it has been configured, it created a printer id and a fax number. I set the printer as the default printer and it works very well when printing documents. However, when I print a picture it automatica

  • BlackBerry Z10 please help stop: find one in your city

    Hello Since 3 days I have a problem on my Z10 I always get a notification saying: find one in your city and also that sends me to a site of meetings (xapush.com) I also mention announcement by barcode This request was withdrawn 2 days ago, but I stil

  • Counterfeiting of Windows

    I bought an HP computer.  After using it for several months, I had a motherboard failure.  I replaced the motherboard (same chip, but no HP motherboard).  All components have been reused, only the motherboard has been replaced.  It seemed to work fin