by using first call? in LVOOP

Experts LVOOP,

I am completely green when comes to classes from LV, but seeks to understand them.

Is it possible to use the first call? primitive inside a method static shipping VI? It seems to work very well when I have a single instance of my class, but does not work if I create multiple instances (which was my goal in the first place). The first call returns true for the first instance only, all others it returns false, all the time.

It's pretty easy for me to add a class initialization method, but I was wondering if its possible to do it with the first call?

Thank you

Neil

Thanks for the comments of Ben,

I found the problem after a bit of headache. The VI had to be on the re-entrant (clone).  I only figured this out when the class was behaving really wrong with multiple instances (but no used first call), he was tracked down finally to a feedback within the class node (once again resolved by re-entering and cloned).

Now, I thought that having the VI as reentrante and clone done somewhat ugly design, so I reworked the class for not using the feedback node and an init method (as you also suggest).

Now it works! :-)

I'm trying to slowly familiarize themselves with classes and win a stage at the same time I think.

Tags: NI Software

Similar Questions

  • LabVIEW FPGA while loop (first call? (VI) question

    Hi gentlemen!

    I am creating a LabVIEW FPGA VI appearing in a WHILE loop. He has a first call? VI in which, in the first occurrence of the loop, a variable must be initialized to some value. However, when I incorporate the VI in the FPGA, it would seem that the first call? VI has not been called. I also tried this implementation through registers at offset where the registry is initialized outside of the WHILE loop. However, the result is always the same. May I ask how the LabVIEW FPGA functions when it comes to everything IN a loop? Thank you very much!

    For some reason that I don't me remember not I avoided the use of FPGA FirstCall and instead, I use a change sign boolean, son of genuine in the terminal, on the left and a fake in the while loop to the right Terminal. As a result, you get a true for the first iteration only, in exactly in the same way that the function of FirstCall. It could even use fewer resources on the FPGA?

  • Is a solution for a first call retriggable?

    Hello world

    I do labview with stuffs of logic.  I'm stuck by exploting a first call to retriggable.

    Here's an overview of what I see:

    There is a loop for, loop inside where some time ago. The while loop contains a structure of the case, the 'first node call' is connected to the box structure to specify "true" or "false".

    What I expected to do was to update the "first call node" in each iteration of the while loop, but it seems that the "first call node' is a global variable.

    I don't know if there is another solution to do, I think of the event, semaphore, but I'm new to labview and has no idea wheather they works. Also, I was wondering if labview mechanism as "stored procedure" in the database.

    Any idea is appreciated. Acutally I found a link retriggable first call for Bob, but have no idea how it could work. http://labviewinsights.blogspot.com/2008/09/retriggerable-first-call.html.  It seems too complicated for me.

    Thank you

    Chen Kunsheng

    The "first call" is exactly that, the first times through this part of the code. You might want to consider, since it is in a loop, a shift that is defined in t register enter the loop, the value F with since "first call case", then at any time you wanted to "reset" back to T for the next time through. This will give you sort the first effect of appeal, although if this loop is out and back (if it's in a VI that is called from a higher level), you will lose the "first call". Usually first call is used in the case of say an initialization routine, there are things that are done only once when a program is executed, never to do it again until the program is stopped and restarted.

  • Strange behavior of "RT Get CPU Loads.vi"; first call lasts a very long time!

    I spent a considerable time of debugging a new application, after that we decided to migrate to the new architecture. When a more common coding errors where eliminated, the application started running smoothly for short periods before suddenly freezing until the moment where the connection to the target RT has been lost.

    I finally understood as a Subvi, which returns the data to the system (use of memory, the cpu load, etc.) lasted if long run than the queue to feed this consumer loop filled with tasks causing eventually the memory fills. I have done some testing of the Subvi separately and noticed that "CPU Get RT Loads.vi" takes forever to run the first time, it is called after a target restart and then quickly runs during subsequent calls.

    Is this known behaviour? Other ways to solve this, except 'RT Get CPU Loads.vi' call during initialization?

    The VI has an entry "session in? If she uses the system of screw configuration, he may have to create a session on the first call you can do outside of your loop. If not and you have installed system configuration tool, you can try to use the nodes property to get the CPU - in more recent versions of RT, I think that the function you are using is obsolete.

    Can you post a snippet of your code / the VI?

  • Error code 404 on stubborn workflow first call - IE

    Hello everyone

    I user JDev Version 11.1.2.3.0

    There is a strange situation that I feel right now. I have a bounded task flows in my adfc-config. XML called as an inline-popup. When I call on the application running the popUp appears and it works fine, except on a specific situation. If you use IE (note: I have IE 10), when I call the above mentioned the workflow for the first time (by clicking a menu item) the popUp content is replaced by this message:

    Error 404 - not found

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.4.5 404 not found

    Server not found anything matching the request URI. No indication is given whether the condition is temporary or permanent.

    If the server does not wish to make this information available to the client, the status code 403 (refused) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through a configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

    If I close the popUp and call it once, it works very well, showing the appropriate content. If I navigate to another page, it happens again (first call-> error code 404, following calls-> works very well).

    What is the problem? It only happens for IE. On Chrome, Firefox etc. it works fine

    Thanks in advance!

    FYI, I tried to run my application in 12 c, and it works as it should. Unfortunately go to 12 c at this stage of development would require making too many changes, so I'll look for another way to reach my goal. Thank you for you answer

  • How to change the first call number

    Hello

    is it possible to change the number of the first call in VSM9? We would use a number like 300000 instead of the number 1.

    Kind regards.

    It certainly is!

    In the administration module, there is a page called 'Reset the references' under the section 'system '.

    On this page, you can reset the benchmark for almost any table in the system.

    Find "Call number" and update the value of the value of your next call number and press save.

    A word of warning: you must be careful when you use this page that you do not set the value to something less than the largest number of current appeal.

    If you do that you will end up with all sorts of primary key violation error.

    Claire.

  • First call to webservice with UTL_HTTP is slow

    Hello


    When I do several Web service with methods utl_http calls, the first call to a Web service takes a long time (sometimes more than 10 to 20 seconds). (After this one) webservice calls will quickly (not even a second).

    Ideas to make this first call faster?


    THX.

    Davy wrote:

    When I do several Web service with methods utl_http calls, the first call to a Web service takes a long time (sometimes more than 10 to 20 seconds). (After this one) webservice calls will quickly (not even a second).

    Don't see how this is a problem of Oracle.

    Oracle to create a tcp socket and a plug to call using the http request protocol. If it is slow, there is a problem of network-level performance or a performance issue in services and the remote server that accepts the tcp connection.

    Network level - as Sybrand mentioned, it can be associated DNS. You make the call using a host name. This host name must be resolved to an IP address. The network layer is slow (due to a DNS server for example problem) in order to resolve the hostname to an IP address. Same thing can happen on the web server. The reverse DNS lookup is used to determine what is the hostname of the Oracle server, using the IP address of the incoming connection.

    The web server or the service can be slow - the 1st application can do a lot of physical I/O calls. The kernel implements the data buffer. E/s of this web service calls new service detects that the data in the cache of files via must faster logic I/O.

    If you need to isolate and monitor these layers, the network and the web server, to determine what the reason is for the 1st call apparently slow so not to be.

  • Organize Clips edited in project using first Elements 4 Panel

    I use first elements 4.

    When I edit a clip in the timeline or in the Panel Monitor is possible now to put the clip in the project Panel and collect clips edited it the Assembly subsequently. I used Canopus Edius and you can assemble the clips in what is called the tray and then get back on the timeline.scenceline subsequently, makes for a nice workflow.

    I tried several times to drag the clip edited to the Edit/project Panel does not. I read the Help menu but it does not really address it.

    I'm not under any other software while doing this, I'm on 2 years, Dell with vista just FYI.

    It seems to me you can edit and place in the Panel project for later installation on timeline would make sense as a workflow? I looked at all the menu drop-down menus to try to move them as well but no luck?

    I know it must be something really simple anyone can help?

    We do a lot of editing on Edius but it's our backup system and we would like to do a simple task as described above. We then export them to a quicktime file and use the clips in another software called Proshow gold.

    All ideas are welcome.

    Thank you

    Pre 4.0 (may differ in future versions), Dbl-Click the Clip to open it in the Source monitor, set the Points In & Out, then drag it to the project Panel, where pre will give you the opportunity to appoint subclip trimmed.

    Hope that helps and welcome to the forum.

    Hunt

  • Geocoding takes VERY long for the first call in each session

    Hello

    We are moving to a system of very short response time where the user sends a query via mobile phone to our based Oracle server and the response THAT SMS must return a list of points of interest at a certain distance from the mobile phone.

    Previously we were using Oracle 9i, now we went to 10g (EE 10.2.0.4.0). Given that 10g supports geocoding out of the box, we intend to use it. What we are experiencing, this is when we create a new session, and then the first geocoding/reverse_geocode call takes about 1 minute in our test environment (that means 100% CPU load on the side of Oracle Server), the following calls are in the [http://0.1.. 0.6] second intervals. We only use sdo_gcdr.reverse_geocode () and sdo_gcdr.geocode () procedures.

    In a space book, we found:
    + "Note: the first call to a function of geolocation in a session requires several time (is longer) than subsequent calls." +
    "+ Is because the function must load and analyze arrays of profile". +

    Profile of tables do not change, why is he not analyzed at the start of the RDBMS and only once, not for each session?

    Is there a solution?

    Kind regards
    Tamas Szecsy

    Published by: Tamas Szecsy on March 7, 2009 10:30

    Published by: Tamas Szecsy on March 7, 2009 10:30

    Published by: Tamas Szecsy on March 7, 2009 10:41

    The patch that I suggest is precisely to allow the geocoder to work effectively in many countries. Its effect is to only load the profile for the country being geocoded. If profiles are loaded progressively as needed, avoiding the High overload at the beginning. With this patch, the first geocode a meeting is second.

    The time you specify (a minute for the first geocoded in a session) clearly indicate a problem. If this problem is not with bad indexes on the table of the region, you can check the box caching (CACHED_ADMIN_AREA_LEVEL in GC_COUNTRY_PROFILE should be 0).

    I think yiou need to capture a complete SQL trace of this first geocoded, so we can diagnose accurately what is happening.

    Albert

  • Do not disturb the appellants of only blocks feature at the first call, but if they call back, my iphone6 rings. Is there a way to fix this?

    Do not disturb feature prevents the ring on the first call of the appellant, but if they call immediately, my iphone6 rings. Is there a way to fix this?

    Turn your repeated setting OFF calls.

  • My Skype crashes whenever I'm doing first call/reception of the first call

    My Skype crashes whenever I do the first call or receive the first call. Whether by Skype phone or Skype to Skype.

    I have to sign out of Skype and then reconnect you for each call.

    Try first upgrade the Intel graphics driver to the version compatible with the system Windows 8.1 :

    http://support.Lenovo.com/us/en/products/laptops-and-netbooks/IdeaPad-p-series-laptops/IdeaPad-P500-...

    You still have Windows 8 version installed.

    Also look for other available updates:

    http://support.Lenovo.com/us/en/products/laptops-and-netbooks/IdeaPad-p-series-laptops/IdeaPad-P500-...

  • Award-winning Skype of the trial include a Skype phone number that people can use to call me?

    Award-winning Skype of the trial include a Skype phone number that people can use to call me?

    I am currently on a 30 days free trial premium Skype. This test includes a Skype number that people can use to call me? Or do I have to spend money to buy this Skype number separately, even then on the trial of premium?

    Thank you

    adawe wrote


    1. This test includes a Skype number that people can use to call me?

    2 or do I have to spend money to buy this Skype number separately, even then on the trial of premium?

    Hello

    1. No, it is not

    2. Yes, you do.

    TIME ZONE - US EAST. LOCATION - PHILADELPHIA, PA, USA.

    I recommend that you always run the latest version of Skype: Windows & Mac

    If my advice helped to solve your problem, please mark it as a solution to help others.
    Please note that I usually do not respond to unsolicited private Messages. Thank you.

  • Satellite P100-160: Mono sound when you use MciSendString() calling Winmm.dll

    I have a Satellite P100-160.
    The sound works well for some programs, Windows Media Player, etc. Audigy.

    However when I call for its program using MciSendString() calling Winmm.dll I get only mono sound channel, good times left channel is almost silent. SetAudio volume has no effect.
    I've updated the BIOS and the audio driver for the latest versions available on this site.

    Does anyone have a solution or pointer to a solution.

    Is it really a laptop problem?
    Maybe the multimedia function MciSendString() provides only the mono or your have done something wrong?  :|

    See Microsoft Developer Network:
    http://msdn2.Microsoft.com/en-us/library/ms709492 (vs.85) .aspx

    I don't know what you want to do and why you use the MciSendString() to call Winmm.dll, but if the sound display correctly using current players like Windows Media Player, for example, I really put t see any hardware problem m

    Note it is a Toshiba user forum and here you will encounter common users who share knowledge and solve common issues of interest.
    In your case, I recommend you to visit a few Microsoft developer forums and support sites.

    Best regards and good luck

  • I am able to use a call service video 3g with my xperia P?

    I can't find 3gs video calling option in my phn... where I get that... my model number is Samsung P

    I can not use video call.is there all integrate software? If so how can I find it?

  • The program I use is called Defraggler is a simplified version of windows Disk Defragmenter. It is not defragment my disk correctly. It is said that it has completed the defrag but it's still 23% defragmented files defragmentation

    The program that I use is called Defraggler, it was created by piriform LTD and it is a simplified version of windows Disk Defragmenter. It is not defragment my disk correctly. It is said that it has completed the defrag but it's still 23% defragmented files defragmentation. I pressed defrag again and again but he still took no action and said always full defragmentation when clearly there is no. I myself had a look at the options and settings and it should properly according to them. Any help will be kind of you. Thank you.

    http://Forum.Piriform.com/index.php?s=6f56df458b93b49ff84c76f6fcd13a05&ShowForum=19

    Kindly repost of Piriform Defraggler forums for help with their programs.

    http://docs.Piriform.com/Defraggler

    And read the Defraggler troubleshooting, info etc. at the link above.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://www.SnapFiles.com/reviews/Auslogics-Disk-Defrag/adiskdefrag.html

    You might try the Disk Defrag at the link above instead of Defraggler.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for