How do I Open a Vi reference to and run a Polymorphic VI?

In my case, I was trying to use a PolyVI Refnum to an instance of PID.vi. Even though I set the inputs for some of the controls, I have no output.the Invoke Method of 'Run VI' does not return an error. The Invoke Method of Ctrl Val. Get All does not return an error, but also returns an empty array on the character array.
The problem seems to be with how VI server handles PolyVI Refnums, the constant for Polymorphic VIs. There does not seem to be an explicit way to determine which instance of the polymorphic VI should be used.
Consequently, 'Ctrl Val.Get All' does not return any results from a 'Run VI' call. The array size is #0.
Any ideas on what might be going on? Is there a better way to use a PolyVI Reference with VI server calls? I can't use Call By Reference Node since I can't seem to strictly type a Polymorphic VI (I can't select that check box on the Static VI Reference).

Polymorphic VIs are an edit-time feature. They make no sense in run-time. Since you know at edit time which VI from the polymorphic group is actully going to be used, just open a reference directly to it. The polyVI itself only keeps a list of all the VIs that belong to it.
Try to take over the world!

Similar Messages

  • My MacBookPro has a white screen with a grey file folder in the center of the screen with a white question mark blinking in it. What does this mean?  And how can I get my computer back up and running normal?

    My MacBookPro has a white screen with a grey file folder in the center of the screen with a white question mark blinking in it. What does this mean?  And how can I get my computer back up and running normal?

    Start up in Safe Mode.
    http://support.apple.com/kb/PH14204?viewlocale=en_US
    Repair Disk.
    http://support.apple.com/kb/PH5836
    Reset PRAM.
       http://support.apple.com/kb/PH14222

  • How to know whether database(oracle) is up and running at OS level

    how to know whether database(oracle) is up and running at OS level...!!!

    depends on the O/S you are using, Unix or Windows? I would use Korn shell script to monitor the Oracle background process and scripts to check of Oracle is accepting connections.
    This UNIX command will show the number of processes for your instance:
    ps -ef|grep $ORACLE_SID|grep -v grep|grep -v ora_|wc u2013l
    In Windows I would look into services.msc

  • How to get Open Balance for the year and Total Ending Balance?

    For a given account, how to get Open Balance for the year (Cumulative Ending Balance) and Total Ending Balance (Cumulative Ending Balance)?
    Is there any function module available? or should I read from some tables? Please advice.

    Hello Paul,
    You could try calling one of the following BAPIs - see which one meets your requirement. They are documented well so shouldn't be a problem finding out the correct one for your requirements.
    BAPI_GL_GETGLACCBALANCE      
    BAPI_GL_GETGLACCCURRENTBALANCE
    BAPI_GL_ACC_GETBALANCE      
    BAPI_GL_ACC_GETCURRENTBALANCE
    BAPI_GL_ACC_GETPERIODBALANCES
    BAPI_COND_VAL_DECRE_BALANCES
    You might have to put in some of your own logic after the BAPI call to get what you want.
    Hope this helps,
    Cheers,
    Sougata.
    p.s. Also look at FM FAGL_GET_ACCOUNT_BALANCE
    Edited by: Sougata Chatterjee on May 7, 2008 11:47 AM

  • How can I open a program using Java and then perform certain tasks with it?

    For example, and this is just an example, I want to write a Java program that opens MS Paint and then manipulates that program. This can be useful to automate certain tasks.
    My question is whether this can be done writing Java code and if so how? If not possible, would I need to use a scripting language instead?

    write a Java program that opens MS Paint and then
    manipulates that program. This can be useful to
    automate certain tasks."manipulates" is a too wide term. Let me narrow down:
    1. If you want to open (run) the program and then shut (kill) it down it is possible and fairly trivial to do in java. Look up Runtime and Process classes in java.lang package
    2. If you want to open the program and edit some image/document in the opened program. It is very difficult in java. May be possible... using some Java/COM bridge, assuming your native program is COM/Active-x compliant. Note: these things go beyond the boundary of JVM and needs to interact with host OS and involves shared memory, ipc and all "low level" stuffs.
    If you want to be able to play around with these COM/Activex apps- choose .NET instead :-)
    3) You can open the program from java and pass it some command line arg as in (1) above and then the program will load that document/image at startup automatically. You may then edit the doc/image thru that program itself. However, Java is not doing anything for you here, other than just starting off your native mspaint.exe ot notepad.exe.
    -BJ
    Message was edited by:
    Bimalesh

  • How to systematically open file in a folder and process them with a program

    Hello,
    For my second question of the night.
    I am wondering if there is a way to open every file in a folder, run them through a vi, and then append the output to an array or spreadsheet? This would save me lots of time and my wrists.
    Thanks
    Solved!
    Go to Solution.

    Hi,
    Yes you can open a file in the folder by using 'List folder' function (Programming>File I/O>Advvanced File Function>List Folder) which lists all the files and folders in the given path. From that you can build the path and give to 'Open File' function.
    Hope this helps you. Let us know this solves your issue

  • How do I open a protected CCT file and convert it to mp3?

    In Windows XP I am using a trial version of Adobe Director to try to extract .cct music files from the free game Quantum Legacy and eventually convert them to mp3s, but the files are "protected and cannot be opened"
    I read this link and I made the .exe with the two scripts but it's not working.
    http://forums.adobe.com/message/867300
    I also found recover-cct.exe but that requires "an Xtra (Flash Movie...) that either does not exist or failed to initialize properly."
    http://likeforum.com/index.php?threads/recover-cct-desprotege-archivos-y-crea-tus-vistas.5 35/

    You don't have the right to convert any "purchased" file. You can download content (purchases) that can play on a TV by using the Apple TV appliance.

  • How can i know that servers are up and running?

    hello everyone...
    i have a distributed application which does the following.. a client submits a job which is passed from one server to another and after some processing on each server the job is returned back to the client.. the thing is that i want to make the whole application more reliable... how can i found out if the next server that i am going to submit the job is up and running?
    the client has decided the order of the servers that should be followed but when a server processes the job another one may "die..." and i am telling you that because i cannot check if the cast of the objectReference fails when i make the list on the client...
    is there any function that i can call to the orb and find that out ?
    thxxxxx
    ps. i am using java and corba orb

    hmm... when i reproduce the situation i get the following
    15 ─ίΆ 2006 2:39:47 ΉΉ com.sun.corba.se.impl.transport.SocketOrChannelConnection
    Impl <init>
    WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR
    _TEXT; hostname: 10.34.153.11; port: 2945"
    org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
            at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(U
    nknown Source)
            at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(U
    nknown Source)
            at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(
    Unknown Source)
            at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(
    Unknown Source)
            at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.create
    Connection(Unknown Source)
            at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.begin
    Request(Unknown Source)
            at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(Unknow
    n Source)
            at org.omg.CORBA.portable.ObjectImpl._request(Unknown Source)
            at WorkflowFramework._ServiceStub.translationService(_ServiceStub.java:1
    8)
            at wF.ServantEnglishToGreek.translationService(ServantEnglishToGreek.jav
    a:294)
            at WorkflowFramework._ServiceImplBase._invoke(_ServiceImplBase.java:41)
            at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispa
    tchToServant(Unknown Source)
            at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispa
    tch(Unknown Source)
            at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest
    Request(Unknown Source)
            at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest
    (Unknown Source)
            at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(U
    nknown Source)
            at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.call
    back(Unknown Source)
            at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest
    (Unknown Source)
            at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatc
    h(Unknown Source)
            at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(
    Unknown Source)
            at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.
    run(Unknown Source)
    Caused by: java.net.ConnectException: Connection refused: connect
            at sun.nio.ch.Net.connect(Native Method)
            at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
            at java.nio.channels.SocketChannel.open(Unknown Source)
            at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket
    (Unknown Source)
            ... 19 more
    NEXT SERVER IS DOWN! org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201
    completed: Noi added to my code the following catch
    try{
    //call next server
    nextServerRef.translationService(objRef, buffer);
    catch(org.omg.CORBA.COMM_FAILURE o){
    System.out.println("NEXT SERVER IS DOWN! "+o);
    }it is obvious that i haven't worked with exceptions a lot rather than some standard things.. which are the exact exceptions that i should catch and how??
    thx again!!
    Message was edited by:
    panosjava

  • How to pop up another VI front panel and run this in the main VI?

    Hi all,
    I want to create a VI, which contain several buttons: like "RUN ANALYSIS 1" and "RUN ANALYSIS 2".
    When I click one of them, another front panel of VI jump out and run automatically. When I click on "Finish" button on this VI (the one jump out), this front panel close.
    How to complete it?
    Thanks,

    Hi Osso,
    The ability to click on other VIs is also controlled by the Window Appearance. If you follow Dennis' instructions above, but this time change the Window Behavior to modal.  You can find more information about the different selections in the LabVIEW Help: Customize Window Appearance Dialog Box.
    Regards,
    Elizabeth K. 
    National Instruments | Applications Engineer | www.ni.com/support 

  • From a script (e.g. REXX or BAT) how can I tell if Firefox is up and running?

    System: Windows 7 Ultimate x64
    I'm trying to open Firefox with multiple tabs open at one time using a program, which reads a configuration file (XML). I discovered when using the "-new-tab" command line parameter, I get one windows for each URL instead of one window with multiple tabs.
    I can get it to work IF Firefox is already up and fully running. In other words its frames exist and are visible. If Firefox is only running (say in the tasklist) but not yet visible, the user again gets one window for each URL (e.g. 5 URLs = 5 Firefox windows) instead of 1 window with 5 tabs.
    Thus I've been wondering is there a method in Windows or using Firefox to tell from a script (e.g. REXX, BAT, Perl, etc) if Firefox is completely visible and running, so when you a script uses the "-new-tab" parameter the tab appears instead of a window (per URL).

    Hello and thank you for your reply,
    Now I wish I hadn't "cleaned" up my question to make it easier to read, but instead included examples. In my case, the initial firefox.exe command I used was:
    cmd /C start "FFXI Firefox" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -new-tab "http://wiki.ffxiclopedia.org/wiki/Main_Page" -new-tab "http://wiki.ffxiclopedia.org/wiki/Category:Combat_Skills" -new-tab "file:///C:/Users/Bertram Moshier/Programs/FFXI/FFXI_Skill_Caps.html" -new-tab "http://wiki.ffxiclopedia.org/wiki/Skill_Ups:_A_Guide_by_Kyrial" -new-tab "http://www.mithrapride.org/vana_time/" -new-tab "http://wiki.ffxiclopedia.org/wiki/Dragoon" "http://ffxi.somepage.com/mobdb/" -new-tab "http://www.ffxiah.com/item/4558/yagudo-drink" -new-tab "http://greatbigsea.guildlaunch.com/forums/index.php?gid=108403" -new-tab "http://guildwork.com/games/ffxi/shouts"
    As you can see in this version I put "-new-tab" in front of each URL and the result, since firefox version 9.0.1 has been:
    1) If firefox.exe is fully up and running a tab for each URL opens in one window.
    2) If firefox.exe is not fully up and running a window for each URL opens with only one tab.
    So, ah, I have been trying the -new-tab method from the start. Recently, I tried removing the -new-tab and it has been working, but I think that is more of a fluke than correctly working, as it goes against the documentation.
    As for tell if firefox is up and running, thanks! I've been using the following code, which is similar to yours. What I found, though, is simply having firefox.exe up and running in advance (or starting it) is NOT enough. Like your code, mine, tells if it is running in the Window's tasklist. Yet, my experience, thus far, has been until the firefox window appears, you still get the multiple windows for each "-new-tab" you send. Only if firefox.exe is already FULLY up and running with its windows visible does the "-new-tab" work per the documentation.
    Here is the core code I've been using (using REXX) -- this is static code on the URL and not the XML configuration version.
    NOTE: I think it is basically the same as your code, but longer . . . . My hope was the code would wait till firefox would be up enough for the "-new-tab" to work, which I find to be between 8 and 15 seconds depending upon the system. Again what I discovered is simply having the tasklist command show firefox.exe running is NOT enough. Well, this is true on my Windows 7 x64 system (Firefox 9.0.1 - 16)
    firefox_found = 0
    FFXI_Website_Queue = 'FFXI_Website'
    rc = rxqueue('delete',FFXI_Website_Queue)
    rc = rxqueue('create',FFXI_Website_Queue)
    rc = rxqueue('set',FFXI_Website_Queue)
    rc = !!Firefox_Exists()
    if rc = 0 then do
    'cmd /C start /D "C:\Program Files (x86)\Mozilla Firefox\" "FFXI Firefox" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"'
    rc = 0
    do until rc = 1
    rc = !!Firefox_Exists()
    call SysSleep(1)
    end
    end
    'cmd /C start "FFXI Firefox" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -new-tab "http://wiki.ffxiclopedia.org/wiki/Main_Page" -new-tab "http://wiki.ffxiclopedia.org/wiki/Category:Combat_Skills" -new-tab "file:///C:/Users/Bertram Moshier/Programs/FFXI/FFXI_Skill_Caps.html" -new-tab "http://wiki.ffxiclopedia.org/wiki/Skill_Ups:_A_Guide_by_Kyrial" -new-tab "http://www.mithrapride.org/vana_time/" -new-tab "http://wiki.ffxiclopedia.org/wiki/Dragoon" -new-tab "http://ffxi.somepage.com/mobdb/" -new-tab "http://www.ffxiah.com/item/4558/yagudo-drink" -new-tab "http://greatbigsea.guildlaunch.com/forums/index.php?gid=108403" -new-tab "http://guildwork.com/games/ffxi/shouts"'
    rc = rxqueue('delete',FFXI_Website_Queue)
    call !!EOJ 0
    /* >>>>>>>>>>>>>>>>>>>> Insert your subroutines here <<<<<<<<<<<<<<<<<<<< */
    | |
    | Subroutine section |
    | |
    !!Firefox_Exists:
    'tasklist /V /FI "IMAGENAME eq firefox.exe" | RxQueue' FFXI_Website_Queue '/FIFO'
    do while queued() <> 0
    parse pull Image_Name PID Session_Name Session_Number Memory_Usage Status User_Name CPU_Time Window_Title
    if Image_Name = 'firefox.exe' then do
    firefox_found = 1
    leave
    end
    end
    return firefox_found

  • How to get this 2004 PMG5 back up and running?

    Hello all,
    My girlfriend and I picked up a bunch of Power Macs the other day: 1x G5 Quad, 1x G5 2004 Dual 1.8 and a G4 MDD 2003. The G4 works great and I upgraded the graphics to a lovely Geforce 3 Ti200 card. Great OS9 machine!
    The G5s though, are a different story. The Quad has the infamous Delphi LCS, which broke. The logic board is undamaged, but the previous owner was not kind to this machine. The red LED near the top RAM slot shows the ill fate of this machine.
    My question is mainly about the 2004 Dual 1.8Ghz machine. It POSTs fine, but once it tries to boot from a disk or a DVD, it hangs at the Apple logo. No spinning wheel, just an immediate freeze. The fans go turbo as soon as the open firmware is loaded.
    Specifications:
    G5 Dual 1.8Ghz from 2004
    2GB PC3200 (2x 1GB, tested as working properly in other machines)
    Radeon 9600XT
    Disks tested include several SATA drives as well as a Kingston HyperX SSD. DVDs include 10.4.6 Tiger and 10.5.6 Leopard, universal versions.
    What have we tried so far:
    - PRAM reset (machine doesn't respond to the command, just continues it's boot attempt)
    - Safe mode / single user mode / verbose mode (again, machine does not respond to the commands)
    - Replacing the PRAM battery
    - Booting into Open Firmware (works fine, the multiboot section works fine as well, and the install DVDs are detected)
    - dev /memory .properties command in Open Firmware (shows SPI data as expected, RAM appears functional)
    -  PCI SATA card to rule out a defective SATA controller.
    What we haven't tried yet:
    - Apple Hardware Test to diagnose any remaining problems.
    So, dear Apple community, is there something else we're missing here? I can get a Dual 2Ghz logic board + CPUs on the cheap if need be, but I'd rather get this one back up and running.

    I am delighted that you are someone who practices the reuse and recycle idea. Up until yesterday, I did not know that a Power PC version of the Mac was even made. I had been using a Intel imac that I bought new in 2007, and the shop that I had it at said that it would be too expensive to fix - so they were willing to let me have this power pc G5 for what I had put down for the repair. It looks like this PPC G5 is just about new - and I suspect because it was made non-upgradable from almost the git go.
    I am wondering if you have found anything that will adapt your machine to newer operating systems? I am wondering if you have tried an external hard drive possibly?
    If you are familiar with the Meet Up network - I am a member of the Okanagan Mac Users Meet Up group. I was thinking that it might make a lot of sense to make a proposal to Apple that the outfits that are making counterfeit software should be given an alternative that would be legit. I am thinking that these rogue software developers could be invited to make a budget line of adaptive software that could make use of the power pc hardware - and could be linked with some kind of software that would be able to interact with the advanced platforms. I would like to be able to get my system to run Chrome and Google docs. I also need to connect my HP Officejet 7610 wide printer.
    Anything you care to respond about is gratefully received,
    Alan Blanes
    Kelowna

  • How do I Open a VI Reference to a version of a VI Template running in memory?

    I'm spawning multiple versions of a VI Template using the VI server. I understand that each time I run a new version of the template it gets it's own space in memory. I then need to get a VI Reference to each indiviual version of the template running in memory so that I can open and close front panels dynamically, fron the calling VI and the template itself. When a version of a VI template is dynamically run LabVIEW renames it, so that the name of the VI running in memory is slightly different from the name of the template that it was based on, so I can't wire a name into the "Open VI Reference" node. I tried using the "Current VI's Path" node inside the template itself and that did not wor
    k either.
    I hope I explained this well enough. Any help greatly appreciated.

    Alternatively, you can open a reference to the LV application and use a property node to get the names of all VIs in memory. Using this, you can generate a reference to the individual VIs too (without having to enter the path). You can wire the name of the VI to the "path" input of the open VI reference VI to open a reference to the VI if it is already in memory.
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • How Do I Open The Excel Spreadshee​t And Modify The Cell Data

    How can I change the cell content in specific excel spreadsheet with ActiveX control? I am using LabVIEW7.1

     you can open the excel file using Active X . The procedur to open the excel file, will get in the examples. There is an ready made Vi. for that.
    Then select the properties Cell in active X, and you can change the cell data by doing some modification in that vi. i hope it will help you.

  • How do I open with an animated gif and then go to home page?

    I apologize for the newbie question, but I would like to have
    an animated gif intro to a web page. Is it possible to have the gif
    play and then go to the index file? Or do I need to insert the gif
    into an index file and save the home page as something different?
    If so, how do I get it to go to the home page automatically?
    Any help is appreciated.

    >I apologize for the newbie question, but I would like to
    have an animated
    >gif
    > intro to a web page.
    This is called a 'splash page'. To do it, you'll make your
    default home page
    (index.html/default.html/whatever) this splash page, then
    you'll have then
    sent to whatever other page you want it to go to...either via
    a HREF or a
    META REFRESH tag.
    You can't actually time the refresh to coincide with the gif
    finishing it's
    animation, though. For that, you'd have to use Flash
    animation.
    But keep in mind that this technique is pretty much frowned
    upon these days.
    It's an unecessary barrier betwen your users and your content
    and is seen by
    many as a rather dated/amateur technique.
    -Darrel

  • How can I open all my itunes libraries and merge them into one?

    Some of my music can't be opened by itunes because it says it is in another library.  As there are several of these and they won't open,I can't see where the songs I want are.  Therefore I would like to open ALL the libraries and merge them into one.  Thanks for any help.

    Hmm, read that post of Dave Sawyer's and thought well, that's Ok I have it on my iPod, but no, it's not there either.  Then resorted to Time Machine (not used for a few months (took it away with us when we evacuated to avoid Cyclone Yasi) only to find that is playing up also, and it doesn't appear to be anywhere there either!
    One thing leads on to another - Time Machine has only backed up to 3 months back; then there is nothing beyond!  yet there is tons of stuff on it.  Maybe it backs up the whole system each time, and not just the changes made inbetween times.   The prefs. won't appear and so I can't change the setup.
    All this just because of one sone!

Maybe you are looking for