Programmatically calling an FPGA vi to view over the FP vi

Good morning. I have become stumped on this question for a bit so I thought I would post the question here.
Q: what is the best way to programmatically call a VI running on the FPGA to the FP main VI running on a touchscreen computer, where when the FPGA VI is called it goes to the top level of the screen without interrupting the VI output of the main VI?
I have researched using a queued message handler but couldn't get it to function properly. I have also researched dynamically calling a VI and asynchronously calling a VI but am unsure how to implement the correct one for what I are trying to accomplish.
What I am trying to overcome here has to a lot with tab control on the front panel VI as I have discovered that apparently while a tab is open to the top of the FP the other tabs do not I/O any values to the cRIO. This is good and bad for our application. The good part is that it allows a 'locking out' of other processes while the visible tab is on top. But the bad part is that if I open another tab then what I have running on the previous tab stops. I need to be able to incorporate both of these aspects in our program.
This example shows how I am using tabs in our program. (ATTACHMENT 1)
So in the example above, when page 5 is opened the graph indicator starts which is what I need, and when it closes it stops which is correct to.
But the issue is that when page 5 is open it also stops what’s happening on the other four tabs in the same tab pane which is NOT what I need to happen.
What I have done so far to correct this is - removing the page I need to open on top and made it into its own VI.
What this separate VI does is accept input from the FPGA resources including J1939 engine information through an NI9862 card and voltage / analog signals from sensors via an NI9207 card and reads the information on virtual indicators and gauges as seen here. So it makes sense to me to put the VI on the FPGA. (JPEG)
The information on this VI only needs to be seen periodically via the FP by the operator as it is called via a Boolean control (button) on the FP, but it still needs to run on the FPGA when not seen in order to pass information to the RT control for alarm processing. So in that, in the case of an alarm it causes something else to happen to the unit being controlled (ie. Execute an engine shutdown over the J1939 bus)
What this VI cannot do is interrupt the operations that are being executed by the main VI on the FP if called (to do a parameter check) but put the main VI into a ‘locked out’ mode if there is an alarm.
So then the question becomes how to call this VI from the Front Panel VI?
Well, I have tried to make a Queued Message Handler work which it did partially (I was able to open the VI and run it but I couldn’t work out how to close it) and unfortunately I have sub-sequentially erased that bit of programming code. Though I don’t think it would have worked anyway as I was trying to call it as a sub-vi in the main VI that was located on the computer and not on the FPGA target.
Then I tried dynamically calling the VI and found it did the same thing as if the VI were still connected to the tab control by stopping the I/O of the main VI while it was called to the front. I erased that bit of code work too.
So then I started looking at asynchronously calling the VI as I saw that it would allow both VI’s to run at the same time. Here I seem to have found the right answer to my own question, though, I believe that the example program I am looking at has a memory leak or is not closing out the called VI properly because within a few minutes runtime both VI’s slow to a stop. This is not good. I understand what the example code is trying to show but I don’t think it is programmatically correct and I have not been able to fix it. Here is the example code I was looking at. (ZIP FILE)
So while I believe I am on the right path I am not sure how to impliment it with the FPGA.
Solved!
Go to Solution.
Attachments:
Ultimate Tab Control.vi ‏32 KB
ENGINEVI.jpg ‏384 KB
example.zip ‏26 KB

You are correct, that is how the program is built. Each page of the tab has it's own set parameters to interact with the FPGA differently. (ie electromechanical controlling a hydraulic pump so each page has a distinct set of limitations on what the pump control does) this effectively creates a set of 'modes' for different parameter pump control to the same individual pump.
Here is a screen of the main program. The buttons at the bottom determine which mode the pump is in (effectively changes the tab control to a different tab)
So yes, the engine page has been removed from the tab control and made into it's own vi that I want to put on the FPGA target (as its only input and no interaction) but I want to be able to call the engine vi from the main program and not interrupt the main program if I am controlling the pump but just want to see what the engine and pressures are doing.
I added a screen of some of the code tied to the picture above.
Attachments:
virun.jpg ‏226 KB
Untitled2.png ‏148 KB

Similar Messages

  • WVC80N - Internet Gateway UPnP discovery failure message \ unable to view over the internet

    I have the WVC80N.  I recently got the new Comcast modem \ wifi but the Wifi is junk and had a lot of problems (loss connection, range etc) so I had Comcast "bridge" it so I just use my old wifi (LinkSys E1200).   I have TZO to handle remote viewing.  Everything was working great for about two weeks and we had a power outage.  Since then, I have been getting UPnP discovery message (in the status tab of the WVC80N camera site) and I am unable to view over the internet.  I get a 502 error usually but today I got extra info: "The socket connection to www.dfgehring.mylinksyscam.com failed.
    ErrorCode: 10060.  A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
    I had Comcast do a "repair / reset" transmission to the modem and still get the problem.
    I found these step on the forum:
      1. Home Wirless Rounter administration page, find the UnPn settings and Turn off UnPn and save it. Wait for atleast 30 sec  and go the same page and Turn it back on.
      2. On your wireless camera Adminstraion page, go to "Options" and find the UnPn if it is already disabled go ahead and "enable" it also "enable" the "Alternate web connection" and save it. If it was already enable please disable it save the settings and enable back on.
     The above 2 steps resolved my issue and I could able to view my camera from outside of my home network.
    Still no luck.  Tried it several times.
    Could the power outage reset something on the modem or router to change this? 
    Thanks
    Darren

    That's what I thought. The power outage may have set the modem, router or camera settings back to factory defaults causing it to loose connection. First thing first, call comcast and check if the modem is still on bridge mode. The modem may have been set back to a modem/router mode due to power outage.
    You may test if the remote access is properly set up in the network by going to http://ping.eu. In that site, you will see your internet ip address, take note of that. Click on port check, enter your internet ip address and the port number you used in the alternate web access port then click Go. If it says closed, there something wrong in the settings of either the router or camera. In that case, I suggest you reset the router and camera and then reconfigure them.
    I found these articles online which could help you reconfigure your router and camera settings:
    How to set up your router
    How to set up router wireless setting
    Connecting camera to wireless network
    How to set up remote access on linksys camera
    How to set up TZO on the linksys camera
    Hope these helps.

  • Cannot synch or d/l new os5 software. Cannot access apple store. I called support and they wouldn't help unless I pay for it. Called apple store and they laughed over the phone

    Very frustrated with Apple. I have removed and re-downloaded itunes software at least a dozen times. When I plug in phone to synch, itunes does come up. Cannot access apple store. Programs stalls in middle and freezes my PC. I cannot download any apps, music or new OS5. Tried calling support, they will not help unless I pay for the help.  Then called the nearest Apple store and they laughed at me over the phone.
    I did notice that quicktime did not download with itunes. Had to download quicktime separately.
    What do I do to get this software to work?

    Very frustrated with Apple. I have removed and re-downloaded itunes software at least a dozen times. When I plug in phone to synch, itunes does come up. Cannot access apple store. Programs stalls in middle and freezes my PC. I cannot download any apps, music or new OS5. Tried calling support, they will not help unless I pay for the help.  Then called the nearest Apple store and they laughed at me over the phone.
    I did notice that quicktime did not download with itunes. Had to download quicktime separately.
    What do I do to get this software to work?

  • Why does tooltip-called image flicker when it is over the trigger?

    Using a tooltip to present an image works fine when the resulting image stays away from the trigger location, e.g. offset down and to the right.  If the image is nearly full-screen, it covers the trigger location and flickers rapidly, occasionally setting after a while, but only for a moment.  Same for a small text box, if the trigger is near bottom-right on the screen, causing the tooltip content to display over the trigger site.  Any ideas to stabilize the image/text when over the trigger?

    Remove the dimensions in the following
    <div class="tooltipContent" id="sprytooltip11">  <img src="pix/1-pp-all-490x480.jpg" width="850" height="750" /></div>
    Gramps

  • Create a classification view over bapi

    Hello,
    i start a vb Programm to create a material in sap.
    I get all views with material_savedata but the classification view is missing.
    Does anybody know if there exist a special bapi to create a classification view
    over the .net connector ?
    thanks for any help

    Hello , thanks a lot for the answers. I am using a vb programm with the proxy connector.
    In this connector i have defined:
            Dim oClassnum As String
            Dim oClasstype As String
            Dim oKeydatum As String
            Dim oLanguage As String
            Dim oObjectkey As String
            Dim oObjecttable As String
            Dim oUnvaluated_char As String
            Dim oStandardklasse As String
            Dim oStatus As String
            Dim oAllocvaluechar As New BAPI1003_ALLOC_VALUES_CHARTable
            Dim oAllocvaluecurr As New BAPI1003_ALLOC_VALUES_CURRTable
            Dim oAllocvaluesnum As New BAPI1003_ALLOC_VALUES_NUMTable
            Dim oReturn0 As New BAPIRET2Table
    Try
                oProxy.Bapi_Objcl_Getdetail(oClassnum, oClasstype, oKeydatum, _
                oLanguage, _
                oObjectkey, oObjecttable, oUnvaluated_char, oStandardklasse, _
                oStatus, oAllocvaluechar, _
                oAllocvaluecurr, oAllocvaluesnum, oReturn0)
                MsgBox(oReturn0.Item(0).Message.ToString)
            Catch ex As Exception
                MsgBox(ex.ToString)
            End Try
    When i start the programm i get the error:
    The function  OBJECT_CHECK_ does not exist. 
    WHY ??
    I have also tried to use 
    Bapi_Charact_Getdetail
    to test, if something works but i really do'nt know what the meaning of
    the parameters are . Perhaps somebody can explain them to me.
    I have tried with charactername and used a  *  but the result is always 0.
    Has somebody a documentation of the fields and tables that are
    needed or filled or a little example of the us of the classification.
    thanks a lot

  • Viewing brochures "page-by-page" over the computer

    Excuse my inexperience, but I am a student intern working on a brochure in InDesign CS4. I used our company's basic template for the brochure, which sets the document up as 2 11"x17" landscape pages. The first page displays the front of the brochure on the right and the back of the brochure on the left, and the second page displays the guts as they would be seen in the print out.
    My department wants to upload the brochure I created to our intranet, but they do not want it posted as it was created in InDesign because the first page (with the front and back of the brochure) will confuse people. My question: is there any way to export the document or re-set it up so that the brochure can be viewed over the computer as one would view a printed version? I would love to have an electronic version with the front of the brochure, then the guts, then the back, but would hate to have to redo the whole brochure just for that. I have the entire CS4 Design Premium (if there is another product I need to complete this task). Thank you for any advice!

    I'm sure there are plenty of ways to do this but I'll suggest 3 for now
    Make a duplicate of your file so you don't mess the original up.
    On the pages panel "Window>Pages"
    If you pages panel is showing 4 pages:
    You can drag the pages around there. If you have dificulty then you may need to go the fly menu (that's the little triangle in the top right of the panel) and turn off "Allow Document Pages to shuffle".
    You should be able to move them to single pages.
    If you're pages panel is showing 2 pages:
    You will need to go to File>Document Setup. Insert the size of the pages to the final size you need them. Insert the number of pages to be 4.
    In your case you said it was 2 11"x17" landscape pages.
    So you need 4 pages that are 8.5" x 11 portrait.
    Then you need to go about moving the items into position.
    The lazy/quick way:
    Start a new document, with the right size and the right amount of pages.
    Go to File>Place and locate the original InDesign file.
    Place the pages into position. Save as a new name.
    The Original InDesign file will now be linked in the Window>Links panel.
    To make edits you open the Original file and change whatever needs to be changed. Open your new file and go to Window>Links and update the links.
    Hope that helps.
    If you need further or more indepth help just ask.

  • Font delay in displaying correctly over the web

    Hello all,
    I've made a PDF file from a PageMaker document. All fonts have embedded correctly.  When the PDF file is opened directly from my computer's hard drive it immediately displays correctly.  However, if the PDF is uploaded to my website then viewed over the web, a font with large lettering, which I am using as a title at the head of a short story, initially does not display correctly.  It seems to take two or three seconds before it "switches" from a basic, flat non-serif to the correct script font I've chosen.  Is this normal behaviour, or is there something I can do so that the font lettering displays correctly as soon as it appears on-screen?  Viewers have found this delay a bit off-putting.
    Thanks,
    Roger3

    To deploy your forms on the Web you need to install Oracle9iAS EE.
    This will install and configure the Oracle Forms Server for you.
    Your next step will be to run the fmx that you currently have assuming that you are deploying your application server on the same OS as your client server development.
    I suggest that you read this paper first:
    http://otn.oracle.com/products/forms/pdf/forms9icstowebmigration.pdf
    If you want to understand the architecture better:
    http://otn.oracle.com/products/forms/pdf/forms9iarchitecture.pdf
    And then get more info on the Forms Upgrade Center at:
    http://otn.oracle.com/products/forms/htdocs/upgrade/content.html

  • Cctv over the Internet

    hello i have got cctv that i can view over the Internet (if i can get the settings right) i have a iphone that i want to view them on when i am away from my house i have rooted them thru my home hub2 and i can view them on my iphone when in wifi range at the moment.
    now i have got them working over the Internet now  but my ip keeps changing (lease is 24 hrs i think)
    and i need a static ip i have been told i will have to get business broadband (i have tota lbroadband home)
    but i have also been told by a tec  that i can do it my self  but i don't know what to do
    who's right please
    i have just renewed my contract with bt and have been told i will have to pay for the remaining contract if i change to bt business   .......................im told its only £5 to get a static ip
    Solved!
    Go to Solution.

    You need to register for a free host which could be something like spookycam.dyndns.org
    This can take up to 24 hours to become visible on the internet.
    Depending on which home hub you have, there will be a configuration page which will allow you to set up a dynamic DNS service.
    It will ask you for you host name, and the password which you used when you registered your host.
    You can then access your camera using spookycam.dyndns.org:8080 assuming you camera is on port 8080.
    If the home hub IP changes, then the new IP address will automatically update, so spookycam.dyndns.org will always point to your camera.
    You need to make sure your camera is password protected, otherwise the whole world can see it.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • A view over XML that is not 1:1

    I'm going to provide a simple view over a rather complex XML structure. For the view it makes sense (to the legacy application) to split and join some XML elements. But how to do it ? This seems to be impossible with a plain xmltable(). Do I have to resort to separate xmlquery() function calls for those items I need to manipulate ? How to do it ?
    I'm running Oracle 11gR2 (11.2.0.1.0)
    create table otn4test(
      id number,
      data xmltype
    insert into otn4test values (1, xmltype('
    <root>
      <elem>
        <code>123descriptivetext</code>
        <issuer>abcd</issuer>
      </elem>
      <elem>
        <code>124descriptivetext</code>
        <issuer>efgh</issuer>
      </elem>
    </root>'));
    -- this works fine as expected
    create or replace view otn4view as
    select x.*
    from otn4test,
         xmltable('/root/elem' passing otn4test.data
         columns
         code varchar2(30) path 'code',
         issuer varchar2(4) path 'issuer'
         ) x;
    select * from otn4view;
    /* But how to
    A) Split the output like:
    CODE TEXT            ISSU
    123  descriptivetext abcd
    124  descriptivetext efgh
    B) Join the output like:
    TEXT
    code = 123 text = descriptivetext issuer = abcd
    code = 124 text = descriptivetext issuer = efgh
    drop view otn4view;
    drop table otn4test;

    Hi,
    Herald's suggestion will work provided you add a function to build the string out of the generated sequence.
    For example :
    SQL> select x.*
      2  from otn4test,
      3       xmltable('/root/elem' passing otn4test.data
      4         columns
      5         fulltext varchar2(100)
      6                  path 'string-join(("code = ",substring(code,1,3)," text = ",substring(code,4), " issuer = ",issuer),"")'
      7       ) x
      8  ;
    FULLTEXT
    code = 123 text = descriptivetext issuer = abcd
    code = 124 text = descriptivetext issuer = efgh
    Or, using concatenation :
    SQL> select x.*
      2  from otn4test,
      3       xmltable('/root/elem' passing otn4test.data
      4         columns
      5         fulltext varchar2(100)
      6                  path 'concat("code = ",substring(code,1,3)," text = ",substring(code,4), " issuer = ",issuer)'
      7       ) x
      8  ;
    FULLTEXT
    code = 123 text = descriptivetext issuer = abcd
    code = 124 text = descriptivetext issuer = efgh
    Depending on the amount of data, you'll probably want to test SQL functions as well.

  • Can not view video over the Internet on WVC80N

    I set up the web cam, set up the port forward etc so now I am able to:
       1. view/change web cam settings inside my home network.
       2. view video inside my home network.
       3. view/change web cam settings over the Internet.
    But I am not able to view video over Internet. Every time I did so (using IE browser), after clicking the view video button, I got an error : There are too many user connections or the device is busy, please try again latter.
    Anyone has a fix on this? I set up port forwarding on port 1024 (that's how I can chage settings over Internet).
    I spent 2 hours on the phone with Linksys tech support but they could not find the reason.
    Thanks,
    Sam

    Who is your ISP? How you are trying to access your Camera from the remote location? Along with Port 1024 you need to do port forwarding for port 80 on your router for the Cameras IP address. As WVC80N works on your HTTP Port.
    To access your camera from the Remote location, you need to use http://wan ip:80.

  • Bridge from CS3 won't open and just sits on the task bar. If I hover over it, I can see a small view of the last screen I was working on. It won't open up full screen, what should I do. I've closed it and restarted my computer numerous times with no luck.

    If I hover over it, I can see a small view of the last screen I was working on. It won't open up full screen, what should I do. I've closed it and restarted my computer numerous times with no luck.

    Check System Preferences > Energy Saver
    Select:  Put hard disks to sleep when possible
    Then click: Restore Defaults

  • How to call a method of an other view in the current view

    Hi Guys,
    I have 2 views in my Project: IPrivateValidateIncidentView and IPrivateRoadMapView.  Now, a button in the IPrivateRoadMapView must call a method in the IPrivateValidateIncidentView.  I cannot seem to figgure this out.  I know that I will probably need to arrange things centrally in my Component COntroller somehow.
    I have tried to see what methods I can Invoke on IPrivateValidateIncidentView from within the Controller to see if I can call the method OnActionDoneValidate() from there, but I can only seem to get a constant with this methods name: IPrivateValidateIncidentView.WD_EVENTHANDLER_ON_ACTION_DONE_VALIDATION;
    Please help.
    Christiaan

    Hi,
    You are correct, for your requirement you need to arrange the things centrally that is in Component Controller. As in above reply you need to Create your context in Component controller and then map them to both the views. So data will be available to both the views and finally you create a method in component controller and call that method from second view. So the data changes made in controller will be reflected on First View as they have context mapping.
    Regards
    Raghu

  • Error while calling Receipt Un-application :Customer Transaction Identifier has taken a precedence over the transaction number

    Hi All,
    While calling the receipt Un-application API, I am getting a error like' Customer Transaction Identifier has taken a precedence over the transaction number'
    Kindly suggest as to how can I troubleshoot this?
    Appreciate your valuable Inputss

    Hi,
    i recommend having a Service request logged for this issue, as from related documentations in metalink most of them seemed to be a bug where oracle suggested patches (code Fixes) ... hence reaching oracle support would be a better approach ...
    Regards,
    Ivruksha

  • Is there a way to prevent the text tone from playing over the speaker while in a call?

    I have a custom tone for incoming text messages. When I am in a call, whether it be the handset, speaker or bluetooth, and I receive a text, the text tone plays loudly over the call, and is extremely annoying for me and the other party. It would be nice if it could just give a short quiet vibe while in a call. Please don't tell me change my text notification to vibrate. That is not a solution, I want my text tone to work, except when I'm in a call. If possible I would still like some notification, just something less intrusive. The next best thing would be to just silence it altogether when a call is in progress. Also switching the side button while in a call is not a solution as that defeats the purpose of hands-free, and also is difficult with some protective cases, Thanks in advance.

    Hi,
    not sure where to find original post. In RDB, it is MSP_EpmTask_UserView.TaskClientUniqueId.
    Sorry, if there are now 2 answers.
    Regards
    Barbara
    To increase the value of this forum, please mark the replies that helped to solve your issue as answer. If you find answers to questions from other forum participants to be helpful, please mark them as helpful. Your participation will help others to find
    an appropriate solution faster. Thanks for your support!

  • How do you view a friend's screen over the internet

    how do you view a friend's screen over the internet, not on the same LAN?
    for 10.8.x and 10.9.x?
    thanks,
    g.

    Look at LogMeIn, GoToMyPC or any other 'remote access service'.
    LogMeIn
    GoToMyPC
    Apple has 'Back to my Mac' which could work well, however it is tied into iCloud & frankly makes it a real pain handling passwords to set it up.
    I think the Messages application can allow you to request that someone can control the Mac via 'screen sharing' too, but I haven't tried across different OS X versions.

Maybe you are looking for

  • IPS host blocking not happening in VLAN 1

    Hi I have IDSM2 module installed in 6500 core switch and configured in prismouscous mode. i have added interfaces of 6500 in IPS as blocking device and i can see all the vlan interfaces along with Vlan 1, When i test the attack, i can see the IPS act

  • How to get 5.1 (surround) in desktop and normal music apps

    hi, for a while ive been trying to get sound from all my speakers in my 5.1 setup not just front... ive got an xfi xtremegamer and alsa does recognize all channels but independently, in phonon i can choose whether to use front/side/center/rear but no

  • System status is closed (internal order) error while creation F110 proposal

    Dear All , During creation of F110 proposal, the system checks the internal order status of open items. In case of the statu of internal order is CLSD, the stystem does not allow to create proposal . We change the statu of internal order as CLSD, bec

  • Lightroom 3 tethered 7d file naming

    I know there's other things similar to this that say 'known issue'... I figured I'd write this to help clear up what I was seeing.  Hopefully it's not all currently known, but if nothing else hopefully the next person googling finds this info useful.

  • Ummm, nope it's something else!! (changed ***

    I've installed the external soundblaster but Audition isn't hearing it. ?Just for the record, actually I can now say, that although I can hear myself via mic and can sockets on the Soundblaster, and have installed the software, songs from My Music vi