What is happenig under the hood ?

Hei,
in the University I have been programing in C and Labview. So, I tried to understand Labview with C.
For example, if I call the function "obtain a que" what does the compiler really do? From my perspective I would say the compiler is getting some memory (allocate memory) for the buffer and create some pointers in order to pass data. Is this right?
Thanks in advantage.
Solved!
Go to Solution.

D_1 wrote:
For example, if I call the function "obtain a que" what does the compiler really do?  
You are getting serious answer so I'm going to be the NI answer.  Why does it matter.
There are many things going on in LabVIEW, and at some point a magic hand is waved and things work.  Now when they stop working we get upset and want to know why but for the most part the compiler does what it should, data flow works as you would think, and the low level nuisance are taken care of.  On other platforms like Real-Time and FPGA there are some more controls, but in Windows so much is done for you, and NI wants it to be that way.  
There's still room for computer scientists to write complicated code, and have it be modular scalable reusable, extensible, and there is room for object oriented stuff.  But generally there is more control in lower level programming languages.  Of course when you're dealing with large scale DAQ systems and rapid proto typeing, you generally have bigger things to worry about than where your memory and queues are coming from.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Similar Messages

  • What does the open file dialog do 'under the hood' and is there a way to simulate it

    What does the open file dialog do 'under the hood' and is there a way to simulate it?
    I have a bug in my code (that I've posted about before, here) which I can't fix at the moment, but I do have a workaround.
    Briefly, the bug:
    I call a dll from a function node, to initialise and run a spectrometer. If I start up the PC, LabVIEW and run my vi the code runs without complaint, the first call to the dll to initialise the spectrometer doesn;t return an error but the spectrometer is not detected either.
    I've tried various solutions, see the link above, and none work
    The workaround:
    If, at any time before running the code containing the function node I open an 'open file' dialog window, select the dll and click ok/hit enter then everything is fine. When I run the main code the spectrometer is detected.
    I use an express vi to open the file dialog, I specify the start path and file name as constant inputs and just click ok/hit return when the dialog pops up. I don't do anything with the dialog outputs. In fact the vi that contains the open file dialog can be run before the project containing the bug is even open.
    I have to do this everytime I turn the PC on.
    So, either
    1) Can somewone suggest a fix for the original bug?
    2) What is the easiest way to simulate the enter keypress when the open file dialog pops up
    or
    3) Can someone tell me what the open file dialog does under the hood that somehow causes the dll to work and can it be simulated in straight LabVIEW
    I suspect that the dll itself is dodgy ( I have in the past talked to the supplier but not got very far, and I will try again but I would like a quick, temporary solution too). I'm guessing that the file dialog is making some kind of check on the file, and possibly registering its presence with the OS (winXP). I tried using the file/folder exists vi to see if checking the file like that worked but no luck.
    Any help greatly appreciated.
    Dave

    Hi David
    I am very conscious about thread hijacking but this sounded like my issue so I hope you dont mind me asking about your issue. I am hoping that you have a spectrometer from the same vendor as me and its not just me seeing an Error 1097 issue. My spectrometer is from a company called Stellarnet.
    So far I have unable to get it to work with other VIs. There is one condition where I can get it to work but its no good for me.
    Case 1
    I open the VI in a fresh labview environment with no other VIs in memory. The code runs with no issue.
    Case 2
    Labview is not opened. I double click the spectrometer VI in windows explorer.  The VI opens but it fails to run resulting in Error 1097. Personally, I dont see the difference between this and Case 1 above and yet it fails.
    Case 3
    If I already have other VI's in memory and try to load the spectrometer VI and run it fails with Error 1097. This case is the one that most important to me. I have a test executive that will load test VIs dynamically and I can't get this to work. Same problem Error 1097.
    I wanted to share what I have seen with you and to let you know that maybe somebody else has the same issue. I am convinced its the DLL but the vendor dis-agreed saying it was LabVIEW. I couldn't convince him otherwise.
    Thanks in advance
    David

  • I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. Need process under the hood

    I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. I need to know what process is run under the hood to create such a script.
    To put you in context, I have an NFS mount point with all my music and with the "add to library" command, I can add more music to the folder and update iTunes without dragging the individual folders or the whole mount point and avoid having the songs show up as doubles.
    Anyone know what OS/Unix process is being called for such a command?

    I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. I need to know what process is run under the hood to create such a script.
    To put you in context, I have an NFS mount point with all my music and with the "add to library" command, I can add more music to the folder and update iTunes without dragging the individual folders or the whole mount point and avoid having the songs show up as doubles.
    Anyone know what OS/Unix process is being called for such a command?

  • Looking under the hood

    my sysadmin geeks here want to know what happens when a swf
    runs the
    getURL() method so i'm trying - unsuccessfully thus far, sad
    to relate -
    to find a site looks "under the hood" of AS a bit and
    explains its
    workings at a deeper lever.
    can anyone point me to any such thing please?

    This may be what he wants to see - and it's an invaluable
    debugging tool:
    http://www.kevinlangdon.com/serviceCapture/
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Relational operators - under the hood

    Greetings
    I'm interested in learning about the under the hood mechanics of relational operations ( =, <, > etc.) as they apply to integers in java. Presumably they use some kind of bitwise comparison? Left to right, right to left, that sort of thing. Anyways, if anyone can provide a link to some documentation on the subject, i'd be grateful
    Thanks.

    JoachimSauer wrote:
    jim_VH wrote:
    I'm interested in learning about the under the hood mechanics of relational operations ( =, <, > etc.) as they apply to integers in java. Presumably they use some kind of bitwise comparison? Left to right, right to left, that sort of thing. The JVM spec and the Java language specification don't require any specific implementation. They only require a specific result.
    And pretty much all JVMs wll delegate those tasks to the CPU where they will be implemented in hardware. How exactly the hardware implements those operations depends on which CPU you use.
    Anyways, if anyone can provide a link to some documentation on the subject, i'd be gratefulWhy do you ask? What do you think you can gain from that knowledge?Well, I have a hobby project involving gaming decision trees in which as many such operations as possible need to be performed under time constraint. And I have noticed differences in the way certain operations perform.
    Various states are represented by integers. Decisions about which integers to use will in turn influence the type of operations that will be performed, which in turn have small effects on the time needed to evaluate or test for these conditions.
    Basically I am micro-optimizing. For the fun of it. A tweak here and a tweak there can add up. So I just wanna know what's going on.

  • How do I find "under the hood" in iPhoto

    I purchased duplicate finder and it asks me to access under the hood in Iphoto.I can not find under the hood .Help please

    I bought the Duplicate Finder app in Applestore I have tons of duplicate photos in IPhoto I run OSX 10.9.2
    I use IPhoto 9.5.1
    Here is the help page for Duplicate Finder app it tells me to go into the highlighted area below to run the app in IPhoto.I do not undestand how to get to the under the hood tab see bottom of the page
    Preferences
    The preferences window can be accessed from The Duplicate Finder menu. All options in Preferences have a description field, to describe its functionality. In case if you have questions related to detailed information about a specific option contact us.
    Search for duplicates in iPhoto
    To properly scan your iPhoto Library an option called "Scan duplicates in iPhoto" has to be enabled at the bottom of "Under the Hood" tab.
    This option forces The Duplicate Finder to analyze the meta information of iPhoto libraries and show only the actual duplicates within iPhoto. By removing iPhoto duplicates from The Duplicate Finder, iPhoto is launched and the items are moved to iPhoto's Trash. To permanently delete the items and free up your drive space the Trash of iPhoto needs to be emptied.
    Note: Only the removal of the currently active iPhoto library items are allowed. Warning messages are displayed for the selection of items inside inactive libraries.

  • "for each" loop - under the hood question

    Question about the for each loop. Is it optomized? I think this is a poor use of memory management -
    for (int i = 0; i < stop; i++) {
    Object obj = new Object();
    doSomething(obj);
    }And this is the ideal, using the same object -
    Object obj = new Object();
    for (int i = 0; i < stop; i++) {
    doSomething(obj);
    }So underneath the hood, which is the for each loop comparable to? I love the syntax, it's very clean-looking in the code, but at the same time I don't want to hurt performance.

    Question about the for each loop. Is it optomized? I
    think this is a poor use of memory management -
    for (int i = 0; i < stop; i++) {
    Object obj = new Object();
    doSomething(obj);
    }And this is the ideal, using the same object -
    Object obj = new Object();
    for (int i = 0; i < stop; i++) {
    doSomething(obj);
    }So underneath the hood, which is the for each loop
    comparable to? I love the syntax, it's very
    clean-looking in the code, but at the same time I
    don't want to hurt performance.That depends on YOU. You CANNOT write a for-each loop for the code you provided. A for-each loop requires an Iterable. (I think that's what it requires--it at least requires something to iterate over, not just an index variable as you have.)
    Consider the following, however:
    Object o1 = new Object();
    for (Foo foo : fooList) {
        Object o2 = new Object();
         foo.doStuff(o1, o2);
    } It will be equivalent to this:Object o1 = new Object();
    for (Iterator iter = foo.iterator(); iter.hasNext();) {
        Foo foo = (Foo)iter.next();
        Object o2 = new Object();
        foo.doStuf(o1, o2);
    } How could it be any different? It has to keep the behvior of the "old fashioned" iteration.

  • What's this under the Recent section?

    There's album or something under the Recent section in the Source list that I have no idea what it is, how it's set or how to change it. It's the first element. Here's a picture of what I'm talking about. Does anyone know what it is and how to change it? Thanks!
    Here's the image:
    http://img183.imageshack.us/img183/7010/iphotoyo3.jpg

    Thanks Jeff but I don't think that's it.
    It's not like a plug for a hole, it's about 4" x 3/4" and has a long hole in the middle. Looks like the ipod is meant to sit inside of it and have the cord plugged in but the ipod cannot stand up or lie flat in it. Perhaps it's some sort of adaptor, clicks into something, maybe that the old thicker ipod sat in but it does not fit in the dock of the old ipod, the new one sits in there just fine.
    I'm stumped as to what it could be that Apple thought we were all going to need it.
    ibook g3 now cadidate MBP owner   Mac OS X (10.4.5)  

  • Can somebody please tell me what all goes under the "Documents

    I have 8.35G of saved "Documents & Data" and i would like to know what all falls under this category and how i can decrease this storage.

    Did you get a particular error when you ran the stored procedure?
    As an aside, I would generall do this in static SQL via something like
    SELECT *
      FROM <<table name>>
    WHERE (parameter_1 IS NULL OR
            UPPER(column_1) LIKE UPPER(parameter_1))
       AND (parameter_2 IS NULL OR
            UPPER(column_2) LIKE UPPER(parameter_2))If you have not already created function-based indexes on UPPER(column_1), UPPER(column_2), etc. that would probably be a performance benefit.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • What is covered under the Apple leather case warranty

    Apple cases come with a one year warranty and apparently it covers workmanship and manufacturing defects but for a case, nearly everything could be claimed to be cosmetic damage caused by the user. Will they cover for example if the case goes wonky at the bottom where the gaps for the lightning port and EarPods ports are?

    Sorry, dropping your device is not covered:
    What type of damages are not covered by my warranty?
    Apple's Limited Warranty for iPod excludes coverage for damage resulting from accident, liquid damage, disassembly, unauthorized service and unauthorized modifications. Please review the warranty for further details. When a service is not covered under the warranty, Apple will return your original iPod to you without providing service, and may hold you responsible for shipping costs, plus any applicable sales tax.
    copied from Apple - Support - Service Answer Center

  • Does my powerbook have enough under the hood?

    Hi all,
    My iMovie file size is 22GB. It is just over 60 minutes long.
    I have not been able to burn this project to a DVD.
    iDVD processed the video okay but it got hung up on the audio (spinning beach wheel and "program not responding").
    I'm using a powerbook G4 with a 1.67 processor and 1 GB of Ram. I'm running Mac 10.4.8
    iMovie performance during production has ranged from mediocore to poor.
    So I guess my question is: Would a computer upgrade be the answer for me? (I have to create similar projects for my home business)
    Perhaps a G5 iMac with 3GB Ram?
    Any sage advice from you folks would be mucho appreciated!
    Mike

    Hi Karl,
    I'm doing what you said even as we speak --- it looks to be an all night affair though (as I said performance is sluggish).
    I'll let you all know how it turns out.
    Thanks so much for all your help!
    Mike
    Welcome to the forum, Mike.
    As Matt said, your Mac is probably fine. His other
    suggestion that there may not be insufficient free
    disk space is excellent. If that isn't the problem,
    here's a couple other things to consider.
    A. When iDVD has a problem burning a DVD, user
    reports here suggest the problem is often with the
    project's audio. I don't think anyone knows exactly
    what causes it.
    The problem can usually be resolved by exporting the
    project's audio to an AIFF audio file, then
    re-importing that file back into the iMovie project.
    You then place the re-imported audio in its own audio
    track, mute the video track and mute the other audio
    track.
    Exporting "flattens" the audio, making it easier for
    iDVD to handle.
    To export the audio of the project, do this:
    1. Choose File > Export.
    2. From the "Compress movie for" popUp menu, choose
    "Expert Settings". Click Share.
    3. In the Save File dialog that opens, choose "Sound
    to AIFF" from the top popUp menu and "44.1 kHz 16 bit
    Stereo" from the bottom popUp menu. Name the file and
    click Save.
    4. Import the exported AIFF file to the iMovie
    project.
    B. You said performance is sluggish. That too also be
    related to the audio. If the project has lots of
    audio clips that can cause playback problems. They
    vary from a minor inconvenience to no playback at
    all. There's a (long) discussion of the problem here,
    with workarounds:
    http://discussions.apple.com/thread.jspa?messageID=259
    7033#2597033
    Karl

  • Flex 4.6 ViewNavigator: any way to check what view is under the current view?

    I have different breadcrumb trails in my app and i would like to pop a view if the view under it is the one i want, else i would like to push the view instead. Is there a way to tell if a specific view is under the view stack?

    I have different breadcrumb trails in my app and i would like to pop a view if the view under it is the one i want, else i would like to push the view instead. Is there a way to tell if a specific view is under the view stack?

  • Deep-dive on the #RetroThinkPad - what do you want under the hood?

    Your say is needed, more than ever. Let us know what you want.

    I don't know that there is a "better" place to post this question since you seem to be wide open to possibilities. I think an iMac would be a good choice. It already is a CD/DVD player & you can access internet radio through iTunes. For over-the-air (OTA) radio you could get the Griffin Radio Shark. For OTA TV, Elgato gets high praise. Formac also has some options, but they tend to be more expensive.

  • Pipeline functions - what happens under the hood?  (10g)

    Hi all,
    What happens when you call a pipelined function? (As opposed to a plain table-valued function.)
    From what I understand, a pipelined function will return rows as they are needed. Let's say I have a really silly example of a pipelined function,
    CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE_1
    AS
        FUNCTION GET_DATA RETURN JUST_A_TABLE PIPELINED
        IS
        BEGIN
            PIPE ROW (JUST_A_TYPE('HELLO'));
            PIPE ROW (JUST_A_TYPE('WORLD'));
            RETURN;
        END;
    END TEST_PACKAGE_1;
    /Then let's say I were to SELECT * FROM TABLE(TEST_PACKAGE_1.GET_DATA) WHERE ROWNUM = 1, what happens to the second row? Does the code that returns the second row still get educated? (Obviously it's omitted from the query, but does it still get generated somewhere and just go nowhere?)
    If I have a cursor on a PL/SQL block that selects from GET_DATA, will each row only be returned as the cursor references it? In that case, what happens to the rows that don't get selected? If there some resource that need to be closed out (say, just before the return statement), would it still be safe to close it out?
    Thanks!
    Don

    Interesting question, lets try a simple test and see we'll just take your example function and toss in a few dbms_output statements like so:
    CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE_1
    AS
        FUNCTION GET_DATA RETURN JUST_A_TABLE PIPELINED
        IS   
        BEGIN
            dbms_output.put_line('ONE');
            PIPE ROW (JUST_A_TYPE('HELLO'));       
            dbms_output.put_line('TWO');
            PIPE ROW (JUST_A_TYPE('WORLD'));       
            dbms_output.put_line('THREE');
            RETURN;   
        END;
    END TEST_PACKAGE_1;Now not forgetting to enable dbms_output call it three times like so:
    SELECT * FROM TABLE(TEST_PACKAGE_1.GET_DATA) WHERE ROWNUM = 1;
    SELECT * FROM TABLE(TEST_PACKAGE_1.GET_DATA) WHERE ROWNUM <= 2;
    SELECT * FROM TABLE(TEST_PACKAGE_1.GET_DATA) WHERE ROWNUM <= 3;What I saw from my test was that with the first call I got 1 row of data from the pipelined function and only the first dbms_output statement was processed. For the second statement I got 2 rows of data from the function and the first two dbms_output statements were processed. For the final call I again got 2 rows of data from the function and all 3 dbms_output statements were processed.
    My environment:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE     10.2.0.1.0     Production"
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

  • What's under the hood ?

    http://www.anandtech.com/IT/showdoc.aspx?i=2745
    With all these threads on heat, whines, mooooos and so on. The solution is AMD. AMD is already 64 bit too on it's consumer products, let alone enterprise products.

    "Right because the consumer world really has a ton of use for 64bit right now (:rolls eyes:)."
    Ummmmmm, OS X is 64 bit today, but you would have no reason to use what the software engineers and programmers have intended and provided you ? Powermac G5's take advantage of 64 bit and perform well beyond it's predecessor.
    http://www.apple.com/powermac/
    Not to mention Windows will be 64 bit as well. But then again, I'm sure you might enjoy throwing $ 3 grand away every 6 months. Look how many are ready and willing to move their 15.4's for the 17 inch in some of these threads and still expect top dollar for the 15.4.
    "We'll see if that's the case when the AMD 64 x2 (dual-core) mobile comes out. For now, that is the case."
    There's no reason to expect that since AMD's design is superior, that anything different would be the case. It's been like this since 2003. This has to be somewhat disturbing for Intel and Apple.
    "It's been a rough road for the Intel Xeon since AMD introduced the Opteron. AMD's market share is climbing, and in a complete role reversal of years gone by, AMD is reported to have 81.5% of the US retail PC market with Intel sitting at 18.5%. In the server space (lower volume, higher profit) AMD is now sitting at over 14%, up 5% from 2004."

Maybe you are looking for

  • FileName in the AS2 receiver?

    Hi Guys, we are sending a file to the partner with the AS2 and we want to maintain the same file name as the sender. I dont see any adapter specific attributes in the AS2 adapter. How can i maintain the same file in the AS2 receiver adapter. any help

  • Line in red doesn't work, why?

    var nbTunes:Number = 43; var listeTunes:Array = new Array(); var noTune:Number= 1; var max:Number = 43; var pick:Number = -1; var tune:Sound = new Sound(soundloader_mc); for (var i:Number = 1; i <= max; ++i) do{   pick = random(nbTunes) + 1;   trace(

  • Function to get the path using a parent-child relationship

    Hello, I have a table which uses parent-child relationship to store the options available. I need a function to give me the full path given the id of a particular option. I have two different functions. One of them uses the Oracle built in function a

  • Importing NEF files in iPhoto 08

    I am experiencing some problems in importing NEF files (RAW for Nikon) from a SD memory. During the import process iPhoto is displaying a warning message that it's not possible to import some of the files (in this case 12 pics over 180 total). The 12

  • Quicktime Broadcaster AUDIO Input Level Setting

    Greetings all, I'm trying to record my band's rehearsal w/ QtB, but even when the Audio Gain level is on 0, but I still get distortion when playing back the recording. Are there any ways to fix this?