How does LabView 8 handle Ring constants?

Hi all,
This is probably more for NI guys, but I am wondering how LabView 8 handles text rings?  In the past, constants dropped into a VI that are of type "enum" will be updated when the typedef is updated, however, ring text constants will not.  Has this changed in LabView 8?
Thanks,
Jason

Part 1 of 2
Hi Chris,
Please forgive me for differing on this point but you should have written
When a control is strictly typed it will force all  [front panel] instances to be identical to the strict type definition and update all of the text constants.
The "strict" part only takes care of the appearence and those changes only affect instance were they are seen by a user. The strings associated with the enum do not affect block diagram constants.
The attached image and zip illustrates that the representation of an enum and a ring a very different. An enum has the defined strings "hidden" in the wire and the numeric value can only be one of the valid indexes of the defined strings. In this example I have shown three different constructs that illustrate the fundemental difference between rings and enums.
1) Case Structures - An enum driven case will pickup the valid choices as defined by the enum's definition. A ring does not carry this info in the wire so it is NOT possible to label the cases to match the ring. This brings up another compliation. If the case structure does not have a default case defined there must be a case for each possible selection value. The strings of an ring can be defined at run-time. Is LV supposed to re-compile the case structures code every time the ring is re-populated? In the case of an enum driven case, this is not an issue because enums that are used in a VI that is running or reserved to run can not be editied.
2) The "Format into string" can pick-up the valid enum strings by decoding the type descriptor of the enum wire. This is not the case with a ring because the ring is just a number.
3) The "Flatten into string" function will return the type destriptor of whatever is wired to it. The typed descriptor contents of a enum shows that every valid selection for that enum is defined in the enum wire. Please note that the type descriptor for a ring has no information about any strings.
End of part 1 of 2
Ben
Message Edited by Ben on 10-15-2005 10:41 AM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Attachments:
ring vs enum.JPG ‏78 KB

Similar Messages

  • How does Labview handle 16bit images with the VI "ImagetoAr​ray"?

    Hi...
    The ImagetoArray function in labview 6.1 handles 16 bit images as an I16 data. This seems to cause memory overflow when I have intensities past 32k. How do I change this to an unsigned 16 bit array or is there a different function that I can use? Thanks much

    Ivan,
    At first I wasn't sure what you were asking.  Now I think I understand.
    If you have a 16 bit image, it doesn't matter if it is signed or unsigned.  Both the U16 and I16 have 65,000 different intensity values, the numbers are just represented differently.  In order to convert a 2-Dimensional I16 array to a 2-Dimensional U16 array, you will need to do some simple bit manipulation.
    Basically you need to first cast the I16 into a U16 and then XOR each element in the I16 2D Array with a 0b1000000000000000.  I have attached an example VI which shows how to do this.  This basically changes the flips the left most bit.
    I hope I answered your question,
    Lorne Hengst
    Application Engineer
    National Instruments
    Attachments:
    IMAQ Signed Unsigned Example.vi ‏51 KB

  • How does labview create a hyperlink in a web page?

    Hi
    I was wondering, how does labview create a hyperlink in a web page?
    Thank you.

    Hi,
    What do you wish to do?
    The most primitive way is to generate a .HTML file.
    Type your HTML codes (Using string constant) and save it using "Write Chars To File.vi" using a filename with extension .html
    Hope I am addressing your question.
    Cheers!
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com

  • How to create blocks on Procedures? How does one handle I/U/D on the block?

    Hello Gurus,
    How to create blocks on Procedures? How does one handle I/U/D on the block?
    Please give an example.
    Thank You,

    Hello Gurus,
    How to create blocks on Procedures? How does one handle I/U/D on the block?
    Please give an example.
    Thank You,

  • How does Labview support redundancy?

    I have a control system and Labview will act as the means of control/monitoring. However, I want to have a primary and secondary computer with duplicate system setups. How does Labview support this type of redundancy such that if the primary goes down, the secondary will take control seamlessly.

    Hi,
    LabVIEW has many capabilities that can be combined to create a very robust redundant system. Some of these features include the following:
    Archiving databases periodically
    Monitoring a process on a remote machine
    Executing an application on the backup when the primary has failed
    The most straight forward method of implementing the monitoing is to use discrete memory tags to create a heartbeat. When the heartbeat on the Primary machine has stopped, the backup should take over and begin execution.
    If you have specific questions about how to implement this, feel free to call support by going to www.ni.com/ask.
    Regards,
    Mike

  • How does impdp handles external tables

    I am just done with schema import and one of the package is invalid because it is referring the External Table. I am getting the error " Table or View does not exist".
    How does impdp handles external tables ?
    Do we need to replicate the directories and files from the source to imported destination ?
    Thanks

    Hi,
    Yes...
    external table directory not available on imported destination operating system
    You need to create the directories and files from the source to imported destination
    Recompile the invalid package
    Thanks

  • How do I combine my iphone contact list with my laptop pc contact list?  And how does it handle duplicates with different information?

    How do I combine my iphone contact list with my laptop pc contact list? And how does it handle duplicates that have different information?
    How do I merge my iphone calendar appointments/alerts with my laptop pc calendar appointments/alerts?  And how does it handle duplicates?
    I do not need anything to change on my email that is working fine on both.

        gspielman,
    Help has arrived to assist you with getting those contacts on both your devices. The Verizon cloud service is definitely a great tool to use and you can also use Apple iCloud as well. When you sign into the Verizon cloud on your iPad does it give an option or message to restore?
    CandiceH_VZW
    Follow us on Twitter @VZWSupport

  • How does labVIEW use ActiveX controls?

    How does labVIEW use activeX controls?
    I recently wrote an activeX control in VB and noticed that it would not work if the control was set so that its properties could not be set in ambient mode. This may suggest that labVIEW uses some activeX controls only in ambient mode.
    Is this the case or are there more complexities?

    Dan,
    Which version of LabVIEW do you have?
    As per the KnowledgeBase bellow, in versions of LabVIEW prior to 5.1 you would get errors accessing the ambient properties.
    ActiveX Controls in LabVIEW 5.0.1 Containers Cannot Access Ambient Property
    Do your controls use the Ambient.UserMode to determine when the control is being used in a development environment? When embedding ActiveX controls into a container on the front panel, by default, the ActiveX control generates and responds to events, i.e. it is running, even when LabVIEW is in edit mode.
    Right-click an ActiveX container and select Advanced»Design Mode from the shortcut menu to display the container
    in design mode while you edit the VI. In design mode, events are not generated and event procedures do not run. The default mode is run mode, where you interact with the object as a user would.
    Information can be found in the LabVIEW help files
    Zvezdana S.

  • How does FCP handle 23.98 DV Files?

    Hi All,
    Has anyone Edited using the DV-NTSC 24P (23.98fps) Easy Setup?
    1) How does FCP handle this video connected to a DV Converter Box like the Canopus ADVC-110?
    2) Does it actually play at 23.98fps on a monitor connected to the DV Converter Box?
    3) Does it get converted to 29.97fps somewhere in the process before it gets displayed?
    4) is it displayed at 29.97fps or is it really being displayed at 23.98fps?
    these are things that I am not sure of.
    sorry if I posted this message a couple of times. I didn't know that hitting the "Tab" Button posts the message, I thought it would just function like the Tab in a normal Text editor and indent a line. But here it doesn't.
    thanks
    Kalagan

    Hi,
    Thanks for the feed back. I guess I should fill in the caps a little.
    *DESCRIPTION OF ISSUE:*
    One of our main Clients Disney, is migrating to a Tapeless Workflow based on ProRes HQ 422 @ 23.98fps. From here on out, they will only send us ProRes HQ 422 1920x1080 files @ 23.98fps and they want us to Edit every project we work on for them @ 23.98fps. At the moment, it doesn't sound like they care if we Edit our projects in ProRes HD or some SD format, but the important thing to them is that we edit @ 23.98fps.
    PROBLEM:
    Our facility doesn't have the infrastructure to support 25 machines accessing ProRes HQ 422 files. Our facility was built to support DV NTSC @ 29.97fps and we have been working this way fairly well, for a number of years.
    SOLUTION:
    I am trying to find a way to continue to us our current equipment and satisfy Disney's request to work on all their projects at 23.98fps, starting from 1920x1080 ProRes HQ 422 files @ 23.98fps. So, it was my hope to be able to take the 23.98fps ProRes files and export them to 23.98fps DV NTSC. This way we wouldn't have to reconfigure our entire Facility (which would cost a couple hundred Thousand dollars).
    My approach was to:
    1) Use Media Manager to render a new DV NTSC file at 23.98fps, which it does pretty well for the most part. It keeps the Timecode consistent between the two files (very important), but doesn't allow you to Letterbox the 16x9 video in the 4x3 frame, it just stretches it to fill the entire 4x3 frame (not so good).
    2) Then import the newly created DV NTSC 23.98fps file into a FCP Project based on the DV NTSC 24(p) 23.98fps EASY SETUP. Which works well. No problems there.
    3) Then Play the file in FCP out through a Firewire based Canopus ADVC-110 DV Converter connected to a SD Sony Monitor. This seemed to worked fine also.
    The fact that it plays is great!!!! But, that brings up the question, is it really playing a 23.98fps?
    My understanding of Standard Definition and specifically DV NTSC, is that it can only be displayed at 29.97fps, it doesn't support 23.98fps natively. So the fact that it played when I tested it got me thinking that I may be missing something here and DV NTSC and other SD equipment (like the Sony SD Monitor) can playback/support 23.98fps SD video. But that goes against everything I know up to this point!!!
    Have I been wrong all this time?
    1) Can SD Video and DV NTSC Video be displayed at 23.98fps?
    2) Or is it getting converted to 29.97fps somewhere in the process before it is getting displayed?
    3) If it is getting converted back to 29.97fps, then where is it getting converted, FCP or in the DV Converter Box?
    I am sorry I went a little long on this email, but it is a problem that will have great influence on they way we work for a couple of years to come!!
    Thanks for your input!!
    Kalagan

  • How does FCPX handle audio?

    Still working on getting audio exported to an AAF, and having problem doing this.  So I need help understanding how FCPX is handling my audio.
    When it's on the timeline, is it being conformed to the frame rate of the video? 
    When audio is exported, does FCPX force it to conform to the video frame rate in the project settings, audio properties, or both?  Or does it allow the audio to export at whatever rate the original media is at?
    I export an XML from FCPX, then open that with X2Pro and it makes an AAF file, but a report tells me that   "Conform rates are not supported. The Conform rate at 01:04:49.23 has been ignored."  So when I go to that timecode, all I see is video at 24p and a detached audio piece at 23.98.  Why are these different?  How would I fix?

    FINALLY!  Thank you God, this issue is resolved.  Here's what I learned and had to do in case anyone else may be wrestling with this issue.
    Apparently, FCPX handles audio like this:
    • Adjusts varying frame rates to match the project property,  e.g. if you drop footage that is 24, 30, and 60 all on a 24p timeline, FCPX makes them fit into 24p, it does not tell you or show you this, it just does it automatically
    • It may handle detached audio a little differently.  For instance, I had a 24p timeline, and there were 39 detached audio clips that were 23.98 because they were not attached to any video, so I had to reimport and sync, see the workaround below.
    The X2Pro, program to convert FCPXML to AAF, spits out a report showing where all the conform errors were, 39 total, but still required calculating where exactly it was because it didn't identify precisely by frames.  Once the offending detached audio clip was located, I then Expanded the Audio Components to see both the original and synchronized audio.  Next I had to go find the external audio that had been synced, then do a replace edit on the old synchronized clip.  This made the audio's video frame rate 24 and took away the conform errors!  Then I had to sync up  the new detached audio clip manually with the video clips above it. 
    Also, to get out to an AAF with X2Pro, it does not support retiming, so I had to strip out 22 instances of retiming.
    Whew, glad that's all over!  Hopefully this AAF will be pristine for my audio post supervisor to bring into ProTools!
    Thank you all for your help and input along the way!

  • How does IDP handle multi-value attributes in directory?

    I have a directory referenced by the IDP where the mail attribute is multi-value. Assertions being received by the SP are indicating that the mail attribute is null or empty. How does the Oracle IDP handle multi-value attributes from a directory? Is there a way to select the first entry in an array of multi-values?

    On the IdP side, passing of multi-valued attributes is supported. Read this section:
    http://download.oracle.com/docs/cd/E10773_01/doc/oim.1014/b25355/configuring.htm#BCGCGFCJ
    Snippet (under 'Delimited Data'):
    "In addition to supporting and passing multi-valued attributes, Oracle Identity Federation can also support delimited data to provide multiple values for assertion attributes ......"
    This information is also available on the OIF screen for 'Add Assertion Profile'.
    On the SP side, mapping a multi-valued assertion attribute to a local user attribute is NOT supported. Read this section:
    http://download.oracle.com/docs/cd/E10773_01/doc/oim.1014/b25355/configuring.htm#BCGGEAEA
    Snippet (under Submit/Reset button):
    "Note: Mapping an assertion attribute containing multiple values to a local user is not supported."
    So, basically, there is no way to send only the first value of an LDAP attribute.
    -shetty2k

  • How does JRE handle PKI certificates?

    I've got a bunch of Macs, all running OS X 10.10.2 and JRE 8u31  Most, no problems.  But I've got two on which Java complains about the certificates of at least one web site.  In the browser, the cert is just fine.  Trusted, etc.  Java doesn't think it's trusted.  I didn't have to do anything with keystores or truststores on any of them... install java and it "just works".  So I have no idea what or how Java is handling certs differently than the OS.

    ANOKNUSA wrote:
    Leonid.I wrote:OK, I got it. The problem is indeed related to uninstalling: /media disappeared after removal of hal <snip>
    Several folk had the same problem after upgrading to KDE 4.6; no one seemed sure precisely what the culprit is.  I'm gonna try and reproduce this and check for/file a bug report.  You may have maimed two birds with one stone, Leonid.I
    If you mean hal, then at some point, it creates a data file /media/.hal-mtab, which on old installations (that went through a lot of ext media mounts), saves the dir, even if hal is removed. Of course, a separate question is why does hal contain /media. But otherwise, Allan is right: there is no natural good way of fixing this pacman behavior.
    Last edited by Leonid.I (2011-03-01 19:04:43)

  • MappedByteBuffer - How does it handle the physical memory?

    Hello!
    I have some question regarding the java.nio.MappedByteBuffer class. I am wondering how does it exactly handle the physical memory.
    As first, I guess when I map a file into the the memory it does not mean that the whole file is being read into the physical memory. Am I right?
    My second question is, if I map more files into the memory, is there a real danger that I will get an out-of-memory exception? Is available any official resource about the memory management of this class?
    And my third question is, what is more efficient way at all, to use the MappedByteBuffer class or to use a FileChannel?
    I am looking forward to your replies!

    Tomi1226 wrote:
    I have some question regarding the java.nio.MappedByteBuffer class. I am wondering how does it exactly handle the physical memory.Java maps the file into virtual memory, the OS determines how to translate virtual memory into physical memory. Java has no control over how the OS does this, nor should it need to.
    As first, I guess when I map a file into the the memory it does not mean that the whole file is being read into the physical memory. Am I right?True, map != read or what would be the point.
    My second question is, if I map more files into the memory, is there a real danger that I will get an out-of-memory exception? An out of memory ERROR occurs when you run out of heap space. If you create enough file maps you are likely to run out of file handles or some other resourfe before you run out of heap.
    Exception != Error.
    Is available any official resource about the memory management of this class?Which class?
    And my third question is, what is more efficient way at all, to use the MappedByteBuffer class or to use a FileChannel?It depends on what you are doing.

  • How does labview use nce files

    I have been using MAX sometime ago but did not make full use of it.
    - How can I use labview to communicate with nce files?
    - Does Labview communicate with MAX?
    And I cannot find the document knowledge base to using MAX?
    Only I can find in the help files but not enough. I need more info, 
    regards,
    Clement

    astroboy,
    Here is a knowledge
    base article discussing the possible reasons for your error. 
    Also, try and start
    with some of our shipping examples. 
    After importing your MAX configuration I used Cont Acq&Graph Voltage-Int Clk.vi and everything ran just fine.  You can get to this example by
    going to Help>Find Examples.  Then go
    to Hardware Input and Output > DAQmx > Analog Measurment > Voltage.
    Ryan N
    National Instruments
    Application Engineer
    ni.com/support

  • How does Aperture handle file structure

    I have been working with iPhoto since its infancy and have one big issue with it, namely that it is such a closed system. I dislike that everything needs to be imported and exported to use it elsewhere, clogging up my computer with all these duplicates. Does Aperture handle that better? I spent 2 hours reading different reviews and discussions and for some reason, nobody seems to discuss exactly that, maybe most people don't mind to have a vault structure? If so, how do you handle sharing files outside of the tools like Facebook export etc that are offered?
    Thanks ~ Barb

    namely that it is such a closed system.
    It's not. It's a Database and this
    everything needs to be imported...
    is a characteristic of databases. This
    and exported to use it elsewhere
    is just not true if you use any of the very many ways that the OS and other applications integrate with iPhoto. I rarely, if ever, exported from iPhoto when it was my primary Photo app.
    The point is not to defend iPhoto, but if the database aspect of it irritates you then run a mile from Aperture. Everything has to be imported and can be accessed only in (pretty much) the same ways as they can be in iPhoto.
    how do you handle sharing files outside of the tools like Facebook export etc that are offered?
    Here's a stock answer I use over on the iPhoto forum. You can pretty much swap the word 'Aperture' for iPhoto:
    There are many, many ways to access your files in iPhoto:
    *For Users of 10.5 and later*
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    +*(Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)+*
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto not running*:
    For users of 10.6 and later:
    You can download a free Services component from MacOSXAutomation which will give you access to the iPhoto Library from your Services Menu. Using the Services Preference Pane you can even create a keyboard shortcut for it.
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Regards
    TD

  • How does WTK handle chunked HTTPConnections via POST?

    Hi,
    I am using
    HttpConnection hc = (HttpConnection) Connector.open(url);
    hc.setRequestMethod(hc.POST);
    to send bytes to a PHP-Skript. Header "Content-Length" is set to the exact value. It is greater than 2KB. I found out that:
    a) If you set WTK-Preferences to HTTP/1.0 everything works fine.
    b) But using HTTP/1.1 will get a 441 (Content-Length is missing)-Error from my script.
    -> And the body is split up to chunks. Alongside with this, the WTK will drop my "Content-Length"-Header and replace it with "Transfer-Encoding: chunked". So,.. Eric D. Larson from SUN has wrote a mysterious article ( http://developers.sun.com/techtopics/mobility/midp/questions/chunking/ ), which left huge spaces in understanding this. What`s exactly the WTK doing here? All message-bodys greater than 2KB are forced to split to chunks. But how does the WTK exactly do this? Is there a BUG in WTK?
    As RFC states: chunks must divided with 2 length bytes etc. But the WTK does not do that. It only breaks up the body into chunks and replaces some header! I have tested several servers which are using HTTP/1.1, none of them was able to handle WTKs Requests... But if you are using other Emulators, for e.g. from Nokia (6230, 6230i) then everything works fine, but of course Nokia is sending out no chunks ;-))
    So to add some serious questions:
    1. Do I have do set some special headers if I have to deal with chunked requests? Server has to understand it... Or does WTK correctly and I have to use Tomcat only ;-)
    2. Is there a way to force a midlet to use HTTP/1.0? setRequestProperty("Version", "HTTP/1.0") seems to be ignored.
    3. Does anybody ever sent Bytes >2KB using HTTP/1.1 succesfully to a standard server??
    Hope that someone can help...!

    chunked should go just fine.
    Forget the Content-Length. Never ever set it with a script it you know chunked is used.
    Then: just read the api cods:
    HttpConnection c = null;
             InputStream is = null;
             try {
                 c = (HttpConnection)Connector.open(url);
                 // Getting the InputStream will open the connection
                 // and read the HTTP headers. They are stored until
                 // requested.
                 is = c.openInputStream();
                 // Get the ContentType
                 String type = c.getType();
                 // Get the length and process the data
                 int len = (int)c.getLength();
                 if (len > 0) {
                     byte[] data = new byte[len];
                     int actual = is.read(data);
                 } else {
                     int ch;
                     while ((ch = is.read()) != -1) {
             } finally {
                 if (is != null)
                     is.close();
                 if (c != null)
                     c.close();
             }Should work just fine!

Maybe you are looking for

  • HP C4680 all in one printer out of alignement when printing avery business cards.

    I recently purchased an HP C4680 all in one printer and have found that it will not print Avery clean edge C32028-25 business cards. It prints ok on plain paper and when you compare against the business card sheet everything is in the correct positio

  • Most efficient way to create/start Imovie?  I'm new at this!

    Hello, I am in the porcess of creating a movie for my daughter. I find the system very easy to use, however, I think I am doing things backwards thus making my project more time consuming. Is there a step-by-step process for doing things (photos, tra

  • The OS changes the background color on certain folders!

    Hello, I have assigned a slight yellow color to one of my onboard drive's folder when open.  This allows me to quickly differentiate it from other drives when copying files.  I don't want to use it as a default because I only want the color on the on

  • How to start NetworkManager sooner with systemd?

    I couldn't find this problem on the wiki or on the forum, so I'm posting it. Sorry if I missed something and it was already discussed. So I've upgraded to systemd and everything went smoothly, except for one silly issue. Namely, for some reason now N

  • Installing Oracle 9i Enterprise Edition

    1) While installing Oracle 9i Enterprise Edition on Windows XP Professional I got "ORA-12540:TNS: Internal Restriction Limited Exceeded" error. What should I do now? Please donot direct me to the metalink. 2) Does someone has a list of Registry varia