An entry to determine the output of a polymorphic VI?

Hi all

I communicate between producer/consumer loop using a queue. The queue would be element is a group consisting of an enum type def and a Variant. In the variant data type will depend on the State of the enum.

I would use a Subvi to convert the variant of the original data type. The first option that occurs is a Subvi simple with an output for each type of data and relevant output wire. The second option that occurs would be a polymorphic VI where the user selects the State concerned.

What I would do, it is the inside of my case structure to my Subvi terminal wire and have it change dynamically (before execution) to the appropriate output type. It would be similar to the function "auto" existing on screw polymorphic someone can tell me if this is possible?

Best regards and thanks,

Delta

Yes it is possible with LVOOP, the first thing I thought looking at one of the first examples of LVOOP was 'Runtime Polymoprhism'.

What you do is create a class "DataTypes", with a 'Read' method

Then a 'DataType1' class that inherits from "DataTypes."

You create a queue type "DataTypes", and you sent in an object of type 'DataType1' in your system dequeu you use the 'DataTypes.Read' method, LabVIEW will select the appropriate Manager of a class of the child to process the data.

There should be an (impossible to check now) example that shows that for 'bacteria' tests or something like that.

Tone

Tags: NI Software

Similar Questions

  • Impossible to determine the output level

    As there is no sign of 'About' in Firefox 4, I can't say the current output level. How can I do this?

    I can't provide information on troubleshooting, help under the Firefox button option takes me directly to:
    http://support.Mozilla.com/en-us/KB/Firefox+help?style_mode=inproduct

    Click the Firefox button, then on the little arrow to the right of the entrance to help, you can select on Firefox.

  • Is there anyway to save the output of the OPA in XML if we use Oracle Web determinations

    Team,

    Can you please help on the scenario below.

    We use clouds OPA August version 12.2. We develop the application assistant job using determinations OPA Web to capture trade information and the information of the Agency cross.

    Instead of the page summary integrated OPA, we plan to create the PHP to capture from the OPA interview Assistant business page.

    Is there a way to capture the output of the OPA in XML format to send it to the contents of PHP page?

    If someone falls on this scenario, please share your entries with small example.

    Appreciate your help.

    Thank you

    Vivek

    Managers of custom control are documented here library of Documentation Oracle policy Automation.

    The Manager of your custom control will get an HTTP POST request with several parameters which will be takeover-session. The value of this parameter is a URL string coded something like this:

    opa-session=%3C%3Fxml+version%3D%221.0%22+%3F%3E%3Csession-data+xmlns%3D%22http%3A%2F%2Foracle.com%2Fdeterminations%2Fengine%2Fsessiondata%2F10.2%22%3E%3Centity+id%3D%22global%22%3E%3Cinstance+id%3D%22global%22%3E%3Cattribute+id%3D%22nearest_city%22+type%3D%22text%22+inferred%3D%22false%22%3E%3Cunknown-val%2F%3E%3C%2Fattribute%3E%3Cattribute+id%3D%22gps_coords%22+type%3D%22text%22+inferred%3D%22false%22%3E%3Cunknown-val%2F%3E%3C%2Fattribute%3E%3Cattribute+id%3D%22number_vehicles%22+type%3D%22text%22+inferred%3D%22false%22%3E%3Cunknown-val%2F%3E%3C%2Fattribute%3E%3C%2Finstance%3E%3C%2Fentity%3E%3C%2Fsession-data%3E

    and when decoded will be:

    http://Oracle.com/determinations/engine/sessiondata/10.2">

    You can analyze using some PHP for the analysis of the structures of XML.

  • HP ENVY j073ca: unable to determine the version of HDMI output on my laptop HP envy. It is 1.3 or 1.4 bis?

    Hi I tried to determine the version of my laptop HDMI port HP ENVY 17 j073ca however I have found no info on this subject.  Could anyone help shed any light on this?  Thank you!

    Hello

    Many TV can make upscan which means that they accept the entry at lower resolution and then fill the entire screen. I don't know your TV/monitor, but normally it can do the work in this way.

    Update: all modern televisions must have a lot of options for entry reports, you can watch old movies (ratio 4:3) on the use of 16:9 zoom function.

    Kind regards.

  • How to determine the number of highlight ' to write ' for DAQmx generate analog output?

    On the configuration of the stage for DAQmx generate analog output, there is a field "value to write.  I can't find any explanation for what it is, how it determines the value to enter, nor what he writes.  I am trying to go through the tutorials and it cling.

    Someone would give an explanation?

    Hello

    To write value specifies the value to write in the channels, lines or ports selected in string parameters. In other words, this value will be the value of your DC output (for example if you enter 5, your output will be 5V). To get information on different fields in SignalExpress, access help"context-sensitive help. A pane will appear in your work environment that displays the coordinates of the field when you place your pointer over them.

    For new users of SignalExpress:

    Generation of DC signals with NI DAQmx devices: step in the DAQmx build, select 1 sample (on request) in the generation Mode dropdown. You can select a programmatic input to generate, or you can remove the check mark from the check box use programmatic input and specify a value for generating in the field of value to write . NOR-DAQmx help also provides additional information about the data generation.

    Best regards

    M Ali

    Technical sales engineer

    National Instruments

  • Manual large editions with sensitive html setting. Is there a way to determine how the entries appear in the table of contents?

    I publish major textbooks with sensitive html setting. Is there a way to determine how the entries appear in the table of contents? If I publish a small section of the manual then 2nd level entries appear as eruptions under the chapter name, but if I publish the manual in its entirety then level 2 headings are not at all. I would like them to appear as the eruptions in the table of contents, but I need to publish the manual as a whole in order to keep the cross references. Any help will be greatly appreciated!

    I think that this would make clearer - and it would skip and tables of contents of books under.

  • Determine the ratio of output size in BI Publisher

    Hello

    We need to send to printer large and smaller reports to be sent by e-mail. Does anyone know how to determine the result of running the report and change the method of delivery based on size?

    We are using 11.1.1.6.10 BEEP and using webservices to run the report. In runReport(), the report is sent as Base64Binary data and the deliveryMethod must be changed according to the size of report output. We use PDF, HTML, and CSV output formats, but do not know how to retrieve the size of the content of the report.

    Any help appreciated.

    Thank you

    We used 'sizeofReportDataChunk' tag in the runReport() XML request to determine the threshold of the size of the file output and inspiring as we do the logic for the features.

  • Able to display the output but cannot send and entry on powerconnect 5424

    Hello

    I am configuring a PowerConnect 5424 switch to connect to my network as one of the distribution switch. When I explain on my network. its very basic as we do not have to any VLAN managed or any other complex implementation.

    When I boot the switch connection with putty via a cable series, I can see the output of the switch where I can't enter anything. I tried three different emulators of terminal that did not work at all.

    What can be the reason, how can I do this because I just want to set up an IP address so that I can connect to switch and monitor ports... etc?

    Hello!

    Thanks for the reply. Well, he had no problem with the cable or unit, it is the laptop that I used. It's no wonder that my previous Dell switch has failed. I tried it on another laptop and it worked like charm. I managed to configure the switch too.

    Thank you!

  • How to make the output of the task are an entry in another task

    How to connect the output of a task for I can use it as input for another task?  See this screen below: the task "Invoke the Script" run a PowerShell Script.  The task 'Send E-mail' send an email.  The two tasks work separately.  How can I get the results of my powerShell script that I can use them as content of the task 'Send Email'?

    workflow.jpg

    On the script invoke task you set the attributes of output containing the results of powershell.

    to do this, select the output tab and use an object name that was put in place in powershell results as in the data

    You may need to format, this results in a recognized VMware object I guess in your case it is a string type.

    and then select the e-mail task, select the task from email, click on the small eye looking for icon "view details".

    Select the Visual link

    Select the attributes you setup from the output of the previous task and hang it in the input parameters of the task to email.

    fact

  • Determine the entry and exit of Gamut values for RGB profiles

    Hi all

    I'm looking how to check if a swatch value is within my range of .icc profile.

    If I have a color value e.g. L = 74 = 12 b = - 37 and I want to see if it is in my .icc profile I select Edition > convert to profile and choose my profile

    I can then select the shade and see if there wasn't a warning range.

    With the color chart above if my color profile is 'Photoshop 5 CMYK default' I get the warning, if I change the profile of "US Newsprint SNAP (2007)"I don't get it. "

    Screen Shot 2015-05-17 at 16.57.53.png

    Screen Shot 2015-05-17 at 16.59.33.png

    Screen Shot 2015-05-17 at 16.59.05.png

    This works very well for the CMYK profile.

    My question is how to check if the color is located inside a RGB profile?

    I tried to change the intent of the paper Web and Digital Publishing and changing the RGB but only the CMYK profile profile affect the output of the warning range.

    We know of a solution to this? The same question would seem to be in photoshop.

    Thanks in advance.

    Trevor

    Hi Rob

    Thanks for your reply.  I need a solution that I can reproduce by script.

    I have been in contact with Phil Green of the ICC and he said that if I convert my color Lab to RGB and vice versa if a difference between the original and the new laboratory values, then the color is outside the gamut of the RGB profile.

    I have tried this before his suggestion and wasn't getting anything out of the values of the range.  I made the conversions using the user interface.

    After his suggestion that I did the conversion by changing shades space using scripts and, to my surprise showed differences.

    This provides the solution I was looking for.

    Concerning

    Trevor

  • Loading the output of php in flash to determine the message

    Hello

    I use the following tutorial to create a message from php page, however, even in their example, I can't get the php echo function to send the output to the dynamic text fields: http://www.sephiroth.it/tutorials/flashPHP/email/index.php .

    Here is the code for the button send php variables and to attempt to capture the echo php 'sent' or 'error '.

    on (release) {
        //    Now import the variables we
        //    need to send in this movie clip
        sender_mail = _root.Semail.text
        sender_name = _root.Sname.text
        sender_subject = _root.Ssubject.text
        sender_message = _root.Smessage.text
        //    all the vars we just imported
        //    will be sent via POST method now
        loadVariables("sendmail.php",this,"POST");
        //    and when receives the answer from
        //    the server...
        this.onData = function()
        {
            //    ok, next frame
            _root.nextFrame();
            if(this.output=='sent')
            {
                // in case of success
                _root.errTitle = 'Thank You.';
                _root.errType = "Your message has been succesfully sent.";
            } else {
                //    else
                _root.errTitle = "Error!";
                _root.errType = "Attention, an error occurred. Please try again later.";
            }
        }
    }

    Here is the php which should echo the "sent" or "error"

    <?
    if(!empty($HTTP_POST_VARS['sender_mail']) || !empty($HTTP_POST_VARS['sender_message']) || !empty($HTTP_POST_VARS['sender_subject']) || !empty($HTTP_POST_VARS['sender_name']))
    {
         $to = "[email protected]";
         $subject = stripslashes($HTTP_POST_VARS['sender_subject']);
         $body = stripslashes($HTTP_POST_VARS['sender_message']);
         $body .= "\n\n---------------------------\n";
         $body .= "Mail sent by: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail']  . ">\n";
         $header = "From: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n";
         $header .= "Reply-To: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n";
         $header .= "X-Mailer: PHP/" . phpversion() . "\n";
         $header .= "X-Priority: 1";
         if(@mail($to, $subject, $body, $header))
         {
              echo "output=sent";
         } else {
              echo "output=error";
         }
    } else {
         echo "output=error";
    }
    ?>

    The email does send fine, but it does not show the message which lets the user know the status of the message.  Any ideas?  There is a link to download the .zip file of the tutorial - I have attached it here.

    place these two textfields in their own frame of _root 1.  Add a picture (but NOT a keyframe) in box 2 layer of the textfields.  Repeat the test.

  • Displaying the output in a workflow in a provisioned VM

    I try to determine a way to show return the content of a variable of an entity of the VM once the machine is built, preferably in the tab 'Machine' of the details of the article. I don't seem to be able to find a way to do it (I tried to update the value of "__Notes", but appears not to pass to the Portal). Basically, we generate a temporary password for the end user, and we want to show in the portal, rather than by e-mail.

    Can someone tell me if there is a way to display data in the portal once commissioning is complete, outside the person a Manager and viewing the properties directly? If not, is it possible to display data by using a custom action of resource?

    Thanks for all the ideas.

    Thus, the easiest way (I think) would update the description field of the virtual machine. Who is be a property of the entity of the virtual machine within the IaaS API, so that you'd run the workflow of update a vCAC model entity under library-vCloud Automation Center-> Infrastructure Management >. This workflow must have two specific entries:

    (1) the entity: that can be gained when the heel is launched as an entry in the heel

    (2) the input properties to update... This one gets a little more fun. You can do this with a very simple action / scriptable job. The task / action will have an entry (for this example) passwordattribute, which is the temporary password configured and an output for an attribute properties in the workflow called (for this example) vCACModelProperties. The code block, you would use would look like this:

    var p = new Properties ();
    if (password) { p.put("Notes","The password for your virtual machine is: ".concat(password)); }
    vCACModelProperties = p;
    

    After this scriptable task / action outputs Properties, you should be able to feed in the workflow of update, and the value appears in the item once it is filled with the completion of the workflow state.

  • How do I capture the output of voltage full bridge with Signal Express NI9219

    Hello.  I'm trying to do and calibrate a load cell with the installation of full-bridge strain gage.  I use a NI9219 module with a cDAQ chassis.  Is it possible to capture the actual output voltage?  Signal Express gives me a value of strain, but I really need to know the output voltage.  Where to look.  I need only two channels for full-bridge.  I think that could connect the wires to the two remaining channels and read the output voltage of the strain gauges which would be connected as a tension of the 9219 entry, but I think that Signal Express could give me the voltage and output voltage directly.  Any input would be appreciated. Thank you!  P.S. I only use this equipment on occasion and am not the more familiar with it, so keep things simple for me.  Thanks again.

    Hi jgh@AET,

    The NI 9219 measures the ratio of voltage full bridge in hardware sensors, allowing any variation of the voltage to cancel. You won't be able to measure the output voltage of the sensor regardless of the voltage without additional channels, but you can measure the ratio of raw tension using the type of Bridge (V/V) . You can also use the type of measure of Force (bridge) measurement of load cell with engineering units (N, lb, kgf, no strain).

    This screenshot shows where the two Bridge (V/V) and Force (bridge) can be selected in the DAQ Assistant:

    These types of measurement were added sometimes around DAQmx 9.1, so if you have an older version of NOR-DAQmx, your DAQ Assistant maybe not them. The latest version is currently 9.4 of NOR-DAQmx. Front of NOR-DAQmx 9.1, the approach to recommend to measure the load cells was to use the custom with Excitation voltage type and a custom scale. However, Tension Custom excitedly can't Bridge of calibration in the DAQ Assistant.

    Brad

  • Buffer the output AO, refresh rate is different from the sample clock frequency

    Hello

    I am an AO output in the buffer using a single channel. I have a stamp with a ripple of 200000 points with a triangular waves of a 1000pts each repeated 200 times. If I want a frequency of 1 Hz, I simply update this waveform 1000pts and if I wanted to 5 Hz, then 5000pts and so on. But there is some frequency that I won't be able to use like the refresh rate (the number of samples that I ask to update) is different from the sample clock frequency, which makes synchronization with the other difficult to trigger (incomplete cycle).  Frequency 3 Hz (update 3000pts), as (update 7000pts) 7, 6 Hz (update 6000pts), 9 (update 9000pts)... 11Hz at 15 Hz and is not valid in the sense that the refresh rate is different from the sample clock frequency. That makes a whole lot of inaccessible CONFIGURED!  Can someone tell me what determines the banned frequency?  Is this something to do with the material?

    concerning

    One thing you can try is to change the number of samples per cycle. This cannot give the precise frequency accurately, but can reduce the average error.

    120 Hz, the error is currently about 400 parts per million (ppm). The accuracy of the time base is 50 ppm, then this error is less than 10 times the inherent error due to the time base.

    Consider this configuration: the closest nominal sampling you rate, you can get is 120048 Hz (1000 samples per cycle at 120 Hz). If your buffer contains 1200 samples per cycle, 100 copies of it would produce 1 second of data to 120,048 Hz. But if the buffer contained an average of 1200,48 useful Samper by cycle, you get the exact frequency.  Of course getting 0.48 of a sample is delicate. But the kind of feasible. If you use 48 cycles in the 1201 samples per cycle and the cycles of 52 to 1,200 samples per cycle, the total number of samples per second = 120048. Average frequency will be exactly what you want. Instantly, the frequency is slightly higher or lower than the exact value.  By an alternation of 1200, 1201, 1200, 1201... 1201, 1200 100 cycles that the Jig is fast.  If you group all 1200s whole and all 1201 s frequency hopping may be more sensitive.  If this kind of jitter is acceptable depends strongly on what you do with the release.

    This technique is used in some systems of frequency synthesizer.

    Lynn

  • read the output of a path of analog output current voltage

    In DAQmx if you are unsure of the status of a digital output port, you can take a reading on this subject.  When I try this on an analog output, I get an error.  Is it possible to query the status of the output of an analog output?  I realize that I could follow the State with a variable, but a direct reading would be really handy.

    Hello, GIS.

    There is no way to read the output in the AO modules without wiring physically the signal to a module to HAVE.  You are able to use a variable to read the current value of the output, as you mentioned earlier.

    Channels AO multifunction boards, however, can be read through tasks of entry by rounting in-house channel to read ao vs aoground.

    Lisa

Maybe you are looking for