Cannot run Simulink dll at the same time as running real-time target VI

Hello
What I am trying to do is run a model dll created in Simulink to control some servo's through a CompactRio 9014. 
At the moment I have managed to create three VIs
1) In the FPGA target that performs the PWM on a desired channel
2) That takes the value of a network variable which contains the position required and feeds that to the 1st VI
3) A VI that runs on the host computer that modifies the value of the network variable to change the position
I can get these three VIs working and the servo controlled, but when I try to update the value of the network variable using the simulation, by deploying the simulation to the RT target and running it, it says
'Access denied: This target is already in use by another project or host computer.'
I assume as this is because the project is already connected to the cRio, so I disconnect and am able to deploy the model files. 
However when I try to run one of the VIs in the RT Targer along with the simulation I get the error:
'This VI is downloaded on the target but is not present in the project you are attempting to deploy.  All VIs on the target will be closed unless you choose to add the missing VI to the project.'
With a large number of missing VIs...
Would I be doing this wrong, i.e. is there a much simplier way to control the FPGA inputs using the simulation, or is there something I could have missed?
Thanks
Geoff
Solved!
Go to Solution.

Hi Geoff,
It seems that you are on the right track except for some concepts that I
want to review:
A CompactRIO or cRIO has 3 different components:
1)     
Real-Time controller (in your case a 9014)
2)     
FPGA backplane (this could be a 9102, or a 9103, 910x,
etc)
3)     
I/O modules (like a 9401, 9263, etc)
When you write an application for cRIO you usually have three different VIs:
1)     
Host VI – This VI is used as a user interface and runs in
Windows (under “My Computer” in the LabVIEW project) This VI is optional because
you might want to run the cRIO headless.
2)     
RT VI – This is the VI that runs in the cRIO controller
(in your case the 9014).  This VI lives
under the cRIO target in your LabVIEW project. 
3)     
FPGA VI – This is the VI that runs in the cRIO
backplane like a 9102.  This lives under
the cRIO >> FPGA target in the LabVIEW project.
The ONE application that I was talking about in my last post is for the RT
VI.  There can only be one RT VI that
gets deployed.  If you want to run
multiple VIs in the cRIO RT, then you need to run those VIs as subVIs of one
top level VI.
LabVIEW Simulation Interface Toolkit (SIT) has a tool called the SIT
Connection Manager that creates two of these three VIs for you (the RT and the
Host VIs).
Please refer to the following link about the SIT Help.  Go to the How To section.  It is organized in a kind of step by step
tutorial.
http://zone.ni.com/reference/en-XX/help/371504D-01/
In your case it is going to be a bit more difficult because of two things:
One, you are using a VxWorks target. 
Two, you want to use your own FPGA VI.
Let’s address each one of them:
1)     
VxWorks target- To use the SIT Connection Manager you
need to use a DLL not an OUT file, even though you need the OUT file for the cRIO VxWorks target.  The reason is
that this tool needs to read the compiled model to know what the
parameters, signals, inports and outports of your model are.  Because the tool runs in Windows you cannot
open an OUT file (meant for a different OS) so you need to give it a DLL. 
For this reason you will need to compile your model file into an OUT
file and a DLL.  Once you give a DLL to
the Connection Manager and you select your cRIO as the execution target, keep
doing the rest of the steps as the help says. 
LabVIEW will identify that you are using a VxWorks target and will
download the OUT file to the cRIO.
2)     
Custom FPGA VI – LabVIEW SIT has some FPGA bitfiles
(compiled FPGA VIs) that it can use. 
When you open the SIT connection manager and go to the Hardware IO
mapping section it asks you to select the bitfile.  If you want, you can select one of the
shipping bitfiles but iIf you
want to use your own, then you will need to do some changes to your FPGA VI , recompile it and
save the bitfile in a specific location with a specific name.
Please refer to the following link for
instructions on how to create your custom FPGA VI:
http://zone.ni.com/reference/en-XX/help/371504D-01/lvsithowto/sit_h_custfpga/
What I would suggest is that you start with a very simple example and using
one of the shipping bitfiles.  Look into
the following path for a very simple Sine wave generation example:
C:\Program Files\National Instruments\LabVIEW 8.6\examples\Simulation
Interface\Sine Wave
Because you are running a VxWorks target you will need to recompile this
example model sinewave.mdl to an OUT file.
To get a better understanding of what SIT does you might
want to check some quick videos. Go to
http://sine.ni.com/nips/cds/view/p/lang/en/nid/11763  and under the
resources tab there are two videos called Demo - <something>...
Hope this helps and let me know if you have more questions.
Ricardo
National InstrumentsSystems Engineering

Similar Messages

  • WDS 2012 R2 - Cannot PXE multiple clients at the same time

    Hello All,
    This is my first post on here so I apologize if this is the wrong place.  I work for a school district and we are implementing WDS 2012 R2.  We've been extremely satisfied with the speeds and ease of use through unattend files.  However, for
    the past month I've been looking for a possible answer to a problem that has plagued us from day one of implementation.
    So here's the problem:
    I have a stand alone WDS server which is not a domain controller and is not our DHCP server.  I have IP helpers and broadcast forwarders setup on the network.  As well as option 66 and 67 in DHCP.  So far so good right!
    Well that's partially right.  When we boot one client at a time to the WDS server.  Everything works as intended.  We can TFTP the necessary files from the WDS server.  Everything boots up and we're off and running.
    However, if we boot up two or more clients at the same time.  The WDS server never responds to the traffic.  The clients get their DHCP information.  They start the referral and download from the WDS server, but get no response.  I'm
    really hoping that someone on here would have some insight of something I can try.  I've about exhausted my list of peers and contacts.  They're all stumped as well and were smart enough to stay with 2008 WDS.
    I would prefer to stick with 2012 R2 since it's setup and working for the most part.  With only this one hiccup.
    Thanks in advance for any guidance!

    Hello Daniel,
    I appreciate the reply and apologize for taking so long to get back to this.   Things have been a little hectic over here.
    I have tried everything on this forum and I am still unsuccessful in PXE booting multiple clients at the same time.
    Multicast is enabled on the server, and it works for the clients.  However, as stated in the original post.  I cannot boot multiple machines at the same time.  I can start them from the image selection screen around the same time though.  So,
    that appears to be working fine.

  • I tried to sync my Macbook Pro photos in iPhoto with my iPod Touch.  I have done this numerous times, but today I got an error message saying the required file cannot be found.  At the same time all of my photos on my iPod vanished.  Can anyone help me?

    I tried to sync my Macbook Pro photos in iPhoto with my iPod Touch.  I have done this numerous times, but today I got an error message saying the required file cannot be found.  At the same time all of my photos on my iPod vanished.  Can anyone help me?

    Try deleting the photo cache from your computer and then re-try the photo sync - the location of the cache, and how to delete it, is on this page http://support.apple.com/kb/TS1314

  • Cannot open two pictures at the same time - computer crashes

    I have PSE7 and Windows7.    I cannot open two pictures at the same time.  When I go to open the second picture it crashes PSE7.  Anyone know how I can open two pictures at the same time?  What is the fix?

    Hello Shawbrah
    Thanks for your reply.
    Yes, your method is actually the only workaround for a workplace with PSE7, but it isn't a solution for our enterprise network/domain.
    There are different problems:
    We have several computers with PSE7 installed. It does not make sense to manually install a local TCP/IP-printer on each PC.
    We have many fluctuation in our company which means that the workplaces will often be moved and the PCs will often be replaced.
    If the employees are printing over a local printer, our centralized printer monitor solution does not recognise print volumes.
    The printers which are defined on our print server have special tray settings and these settings are "linked" to the core business application. Users should not be able to print with other settings, this could end in a chaos.
    Finally to work with PSE in our company, there is no other way than upgrade to PSE8...
    -Nicolas

  • If I post my book to iBooks does this mean I cannot sell my book at the same time on Kindle?

    I do not understand lawyer speak. Apple's EULA confuses me. It's a simple question. If I sell my book on Kindle through Amazon does this mean I cannot simultaneouslty sell the same book on iBook?

    ConfusedSince1984 wrote:
    Clarify - reading Apple's iBook EULA - 
    I'm cofused by Appe's language. Are they saying I can't sell my book through both Kindle and Apple at the same time? Are they saying if I sell on Apple, I can't sell the same book on Kindle? Or, are they saying if I create a book on iBooks Author it can only be sold through Apple?
    What do you mean by "Apple's iBook EULA"?  Are you referring to the document entitled "Software License Agreement for IBooks Author"?  If not, what exactly?
    The iBooks Author license agreement has nothing to say about (and no relevance to) books you create with some other software.  It also places no restrictions on books you create with iBooks Author but not in the .ibooks format (which format can only be read on an iPad in any case).  The other formats which iBooks author can produce are PDF and Text.

  • Again, cannot start multiple domains at the same time

    Because the original question is marked as answered and the problem persists, I need to submit it again:
    With the latest plugin, in Glassfish Kepler, when I try to start the second server (same Glassfish, different domain) - it'll simply not start (the console remains empty) and after a while I get the time-out message, that the server could not be started. Even if 2 Eclipses are started, there only one server at a time can be started.
    This is a major issue for me, can you please help? Is there a lock file that I can delete or another workaround?

    Hi. The weird thing is that after the last update it worked for me, too, for a while - but then it didn't. I think there may be some sort of lock that hasn't been released when a forced shut down happened...?
    If I start the servers either outside of eclipse (command line), or using eclipse's external tools (which is pretty much the same, I think), they work just fine. And the status in the servers view gets updated to either started/stopped, correctly.
    And also, the case when I create domains/start servers outside of eclipse and then create the server in the servers view, the status update works.
    So yes, if there are multiple domains started at the same time outside of eclipse, the plugin shows them, but it cannot start them itself.
    Eclipse GlassFish Tools
    Part of Oracle Enterprise Pack for Eclipse 12.1.2.1 - version 6.2.0.201307232054
    Glassfish
    Installed Version: 
    Oracle GlassFish Server 3.1.2.2 (build 5)

  • I cannot select multiple contact at the same time for e-mail sending

    Please suggest that, how to select multi contacs at one time.

    alexanderforce wrote:
    I used to highlight several Genres at once and hit shuffle, playing all of them. The new iTunes won't let me!
    Alexander, On my machine it works as follows in iTunes 11:
    Enable column browser from the View menu.  In the Genres column of the browser, use CTRL-click (in the Mac I think that is Option-click but if it doesn't work, try CMD-click) to select the Genres you want.  Also activate Shuffle (crossed arrows, or via the Controls menu).  Start playing, and it will shuffle through the songs of the selected Genres.

  • Hal.dll always the same problem but no real solution :(

    Hello everybody,
    i have been trying to install Windows XP Pro SP2 (original and I am sure of the version) with Leopard and Bootcamp 2.0.
    Like several other users, i had the "error disc" problem when installing directly on the bootcamp partition (without formating) and "hal.dll" when deleting the partition (and making one with both 128Mo partition and my old Bootcamp partition) and formating after.
    Like most of the users who had this problem, I can't choose to format the Bootcamp partition when i choose the partition (choosing a partition installs directly windows and i don't have the step where i can choosing the formating method...).
    I tried with 3 different windows CDs and none of them allow me to use the Recovery Console (Pressing R) and to format.
    I didn't delete Bootcamp's 200Mo partition, since I saw in several forums that sometimes it can have tremendous consequences.
    How can I manage to install windows XP? Does Vista works better?
    Thanks for your help!

    Actually pr100, the Bootcamp instructions say specifically that you HAVE to reformat the bootcamp-created partition before installing windows. Here's the excerpt from the instructions:
    "*Formatting the Windows Partition*
    Even though Boot Camp pre-formats the Windows partition, this partition can’t be
    used to boot the computer. You must reformat the new Windows partition using the
    Windows installer."
    But yeah, after re-partitioning and unpartitioning (using Bootcamp) about 10 times I finally did a complete (not quick or 'convert to') NTFS reformat from the Windows installer and that did the trick.
    All my other issues, from no-boot from anything (not CDs, not 'option,' not anything) were fixed by resetting firmware with an unplug-and-hold-down-power-button, plug-back-in-and-hold-power-button-until-you-hear-the-firmware-update/reset-bee p. That first bit was a heart-stopper with the machine not responding in ANY normal configuration I could discover until the afore-described bit of unplugged firmware resetting. Just always booted to the black screen of blinking DOS cursor scariness. Next it appeared to be installing Windows but finally gave me nothing but the hal.dll error at startup. Very depressing considering the sketchiness and contradictory nature of most of the posts here about fixing hal.dll errors. Mine included above. After about 10 tries at various Bootcamp/Windows setup options I finally decided to go NTFS and that's what fixed it for me in the end. Good luck all of you. Hope this further bit of insanity helps you. There was no way I was going to delete the 'extra' partition (200Mb) or the new 'free space' (128Mb) that Bootcamp also created in its partitioning process. As recommended elsewhere here. I'm really clueless about the whole boot process but I'm sure that Apple could make things better if they wanted to.
    Good luck, I hope you all manage to fix your issues and get XP or whatever running. Crysis was the only reason for my efforts and it's really paid off. Will be buying the whole game tomorrow.

  • Is it possible to call a function with the same name from 2 different dll's at the same time.

    I'm trying to call a function ( F ) form 2 different libraries ( A.dll and B.dll ) at the same time. The first lib loaded determines the function F. A->F and B->F have same interface and name but different implementation.

    Hi,
    I tried it with two dll's, both with the same interface, and at the same
    time, in the same VI. The popups even appear at the same time.
    But now I understand the problem... Both dll's are created by LabVIEW! If
    they are not (or one is not, and the other is), this is no problem.
    And VI's in memory cannot have the same name. LabVIEW doesn't care if VI's
    are in a dll or not.
    This might not help, but if you want to make some sort of "plug in" system,
    you might consider using llb's. By loading VI's dynamically, you can select
    the path from which they are loaded. You must unload (close all references)
    one before the loading the other, or the same problem will occur. If you go
    this way, I consider a different approach. Make on
    e library (or even a dll)
    that has the interface you like, this is the "loader". Now make several
    "plug in"'s, with the same interfaces. The name of each function in a plug
    in is a concatenation of the library name and the function name. The loader
    has one extra function, that loads (and unloads, when done) references to
    all desired libraries to use (the names of the functions can be figured out
    easily). All that the loader functions do is dynamically call the library
    functions. You can use a call by reference node for this (you can use the
    connector pane or the loader vi, since the interface must be the same!).
    If you go this way, I guess the loader library can be converted to a dll...
    Hope this helps.
    Wiebe.
    "rsam" wrote in message
    news:[email protected]..
    > Thx Wiebe,
    >
    > did you load both dll at the same time? For example in 1 vi. Somehow
    > the first loaded function keeps to overrule the second. Notice that
    > the interface is
    exactly the same.
    >
    > I loaded 2 dll created in Labview with results described above.
    >
    > Regards Ruud

  • Cannot PXE boot 32-bit and 64-bit hardware at the same time

    I have ConfMgr 2012 R2, but this same problem occured also with SP1.
    The main issue is, that 32-bit hardware clients are pulling 64-bit boot images. If I remove 64bit boot image from DP, everything works fine, but then, 64-bit hardware will stay pending for 64-bit boot image forever.
    So this means without jerking around with boot image availibility, I cannot deploy both architectures at the same time.
    I only use All-in-1 Task Sequence, which means that image selection is inside TS (UDI pages). So I have to keep both unknown Computers in the same collection and advertise the TS there.
    Primary site server restart and WDS restart does not help.

    for the PXE boot image, you may need to re-advertise (deploy) the TS again (after you have adjusted the boot image for the TS), this will ensure that this TS is "authoritative" for the PXE boot image.
    (generally, the last TS advertised in "in control" of the boot image offered by PXE)
    I don't think so... PXE will use the last updated boot image for that architecture, that is on the PXE DP. Then once you select a TS, then it will use the boot image assigned to that TS if it's different.
    John Marcum | http://mIyitforum.com/myitforumwp/author/johnmarcum/
    I admit I may have expressed it poorly, but my experience/observation on both CM07 and CM12 matches the principle, and apparently, also Jason's:
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/1c9b448d-67cf-4b31-8a81-f053502d8cba/how-to-specify-which-boot-image-to-use-in-pxe-when-multiple-x86-boot-images-exist?forum=configmgrosd
    http://books.google.com.au/books?id=-SazACXZNz0C&pg=PA1049&lpg=PA1049&dq=how+to+specify+boot+image+jason+sandys+pxe+highest&source=bl&ots=yXdb1dqq_f&sig=KYuWJzb0et-yqts9akXX-W_G_Yk&hl=en&sa=X&ei=CM-2UqbJBaS8iAfmsYGQCg&ved=0CEkQ6AEwBA#v=onepage&q=how%20to%20specify%20boot%20image%20jason%20sandys%20pxe%20highest&f=false
    Yea, that's why I said I "think".... I ran into an issue recently where a new boot image was created and not added to the PXE DP. This caused PXE task sequences to fail. I assumed it was because that was the last one created. Maybe it was actually because it
    was the last one advertised. I stand corrected.
    John Marcum | http://myitforum.com/myitforumwp/author/johnmarcum/

  • 2 apps open at the same time

    Can you open another app while one is running without closing the first?
    I thought this was a new feature of 3.0.

    No, you cannot open two apps at the same time. You cannot run apps in the background, except for the iPod app.
    The closest 3.0 feature to this is the notifications function, which pushes app notifications to your iPhone without the app running.

  • Is it possible to use 1 license on 2 computers at the same time?

    Hi,
    I've searched through the forums and found some points which cover part of my question, but I would just like to be absolutely clear on something.  If somebody is able to help, I would be extremely grateful.
    I have one CC license, and it is installed to a desktop PC. However I am often in meetings in different areas of the company's large site - overseeing photography, video shooting, working through designs with clients, etc. 
    Now I'm aware that I can use my one license to install Creative Cloud apps on 2 computers, but what I specifically want to know is if they can be used at the same time. 
    I would like the freedom of being signed on and working in, for example, InDesign in my office, but then if I have to shoot across the site to a colleagues office, to be able to take a laptop and work on a different document, maybe on a different app, maybe on the same app, without having to first log out of my desktop PC.  Does that make sense?
    Like I say, I've seen a number of posts which are clear about the possibility of having all apps on two systems, but a few things I've read have mentioned that both machines/apps cannot be in use at the same time. 
    Please can somebody clear this up?
    Thank you,
    -Ben

    Does that mean you have to sign out of creative cloud on one machine and sign back in to creative cloud on the other machine to be able to use it?
    No. You can be signed in to the Cloud (using the same Adobe ID) on two separate computers at the same time.
    If you want to activate the Cloud on a 3rd machine then you need to sign out of one of the other computers.
    Your issue on your home computer is unlikely to be related to signing in.
    Mac or Windows at home? Which operating system?

  • How can I view two emails at the same time

    Is it possible to view two mail messages at the same time. We are testing iPads at work and this is the biggest problem

    You cannot view 2 emails at the same time on an iPad. This is not a supported feature.

  • Login at the same time

    Hello, everyone:
    I am not an expert in PHP and I have used DWC4 to create my login page.
    What I would like to do and I am not sure how the structure works in PHP coding is that if a user logs into lets say "Computer A" and does not sign out, then goes to "Computer B", that my session in "Computer A" gets terminated.  So if I went back to "Computer A" and continue on as if I left, I am directed to sign in again.
    I want it to be where only one user with his/her username and password to log in cannot be logged in at the same time or used in different computers at the same time.
    Those that have a logic of login's that I am acquiring is sites like Facebook and Lynda.com.
    Thank you,

    I believe I understand what you are saying.  It is just implementing it.
    For example you stated...
    iPHP wrote:
    Create an extra field in login table for users IP adddress.
    Right now my table on the home page is Username and Password.  So you want me to make another hidden field called ipadd (IP Address) with value of <?php echo $_SERVER['REMOTE_ADD'] ?>
    Username
    Password
    The next part you ask of...
    iPHP wrote:
    When user logs in update the IP address in the login table for their current IP address.
    I am not familar how to code in updating the table after one has logged in.  The table that is being updated is it a separate table that contains IP addresses only or is this the user's account that contains their username, first and last name, password, e-mail and etc?  If so, then I would need to add an extra field in my user account table for the IP address.
    I am assuming a "IF" statement for the following.
    iPHP wrote:
    Set a conditional region on your pages where if session is set for user (user is logged in) and the IP adddress in the login table = current IP then display page else destroy the session.
    Would this "IF" statement be only on the page where after a user has logged in or would it be better to have the "IF" statement on all pages using the <?php include 'somelink'; ?>
    Sorry for breaking it down like this.  It is easy for me to understand by going step by step.

  • Can there be two apples products hooked up to the apple tv at the same time?

    .....

    In a network .. all items in the network are connected at the same time. So in effect you can have multiple computers/ipads/etc with access to the apple TV.. but you cannot play your music at the same time for instance.
    Perhaps explain what it is your trying to do.

Maybe you are looking for