The value of custom device entry

Hello

In fact, I create a custom (asynchronous) device that controls a climate system. It consists in adapting a functional code LabVIEW to create custom device. Unfortunately the LabVIEW code uses a lot of FGVs that act as input and outputs at the same time (this means that the system can change the value of an entry).

So, I would like to know if there is an easy way to set the value of an entry in the custom device engine code. I tried the following without success:

  • Written in the FIFO of the entrance channel.

  • 'Set channel use value' of the API of NI VeriStand-> I get the error 307970.

Yes, is there something I can do to facilitate the creation of my custom device? instead of "Rethinking" all the code which is a real pain in the * the complexity of it?

Thanks in advance.

Pen

We solved that by using part of inllne to only update the channel and postponed the real asynchronous threads treatments with exchanges of data through FIFOs.

++

Tags: NI Products

Similar Questions

  • What is the value of a registry entry "PromptRunasInstalNetPath" Windows for?

    What is the value of a registry entry "PromptRunasInstalNetPath" Windows for?

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies]

    "PromptRunasInstalNetPath" = DWORD: 00000001; Guest ' run as ' install Net way -?

    It is not yet in the "WindowsServer2008R2andWindows7GroupPolicySettings.xlsx" Microsoft Excel spreadsheet Data-Base; so that is it for exactly?

    Ditto for the following RegEntries 3:

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Network]

    "NoWorkgroupContents" = DWORD: 00000000. No content of working group -?

    "NoFileSharing" = DWORD: 00000001; No file - sharing?

    "NoPrintSharing" = DWORD: 00000001; No print sharing -?

    JPD

    Hi JPD.

    Thank you for visiting the Community Forums of Microsoft.

    We don't have enough resources to provide a good explanation for this query. It is better suited for the professionals on the TechNet Forums. So, please post your question on the Forums Pro TechNet Windows 8 IT from this link:

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w8itpro

    Hope this information is useful.

  • I have problems with of the Subvi after the use of customized device model

    I used to start my machine personalized customized device model and I got success in the deployment until I started to do more complicated the Subvi.   I am currently trying to convert low FPGA and high ticks to the duty cycle, but for some reason when I add it to the RT VI "Data read of HW" driver, it seems to cause a downtime... ideas? Is a circuit agree? I have added a time delay but I am still having problems. It is a device online, so I'm suspicious of it hogging resources, but am not sure.

    Attached images are meant to be read like this:

    1. the case of the RT pilot ReadDataFromHW

    2. it's the Subvi calling ToDutyCycle SIMStimPWMSubVI

    3 ShiftRegister.PNG is inside the Subvi.

    As a robotician I celebrate early and often (usually by a failure or two...), but it seems that the answer was to transform fundamentally the While loop for a loop with a count of 1 and then remove the additional elements to ensure that each shift register has that one and then right click on the shift registers and convert at the Feedback node...
    I was able to deploy to VeriStand as a custom device and it runs and calculates the factor of use with no problems. WOOHOO! Where - what is celebrate button!

  • The list of custom device alias

    Hi all

    I'm trying to retrieve the list of aliases of a custom device and generate a file containing the list of aliases and the reference of the chain. I wanted to do before the depoyment of my device custom (for example, during the initialization stage). I have tried different means:

    (1) from the driver of the RT, I get the reference of the target and navigate the tree of thr to get the aliases Section. The problem is, apparently, that you can not get the aliases section. When I call get target Ref, I received the mention of the controller, and then I managed to get the parent (targets)... but I can't get the root node, and then get the alias Section...

    (2) after that that I wanted to use the API to run. I opened a connection to the workspace, call the list of aliases to Vi... But the problem is when I'm in the my custom device initialization stage, it is not started yet, so it returns an error and that you can not deploy

    (3) my last idea was to use the systemDefinitionAPI. But I don't know how to get the path to the custom device system definition file...

    I think that I have run out of idea... If anyone has a suggestion...

    There is a function on the system definition API you can call directly to translate a reference device custom in the definition corresponding system API node type. This type of node, you can navigate to the root and then find all defined aliases.

    The class is called NodeIDUtil. See the example below. Note there is also some other functions to translate the reference point in node types more specific, as a custom device, channels, etc., waveforms. For example, recorded in 2012.

  • Capturing the value of custom in the OA Page profile

    Hello

    We created a custom profile and set a value for it.

    Now, I need to capture this value of profile in my OA Page.

    What is the method for capturing the value of profile Page OA?


    Krishna

    Please update the same

    Please read the ettiquettes forums

    http://forums.Oracle.com/forums/Ann.jspa?annID=914

    Thank you
    AJ

  • JavaScript function to exchange the values of two text entry fields

    Hello

    I am a beginner APEX with the first application of the APEX. This app has a 22 page to enter data for a graph edge. There are two P22_LINK_NODE_A, P22_LINK_NODE_B text input fields.
    Sometimes it is necessary to toggle (swap) the values of these two areas.
    To do this, I added a button 'toggle_A_B' HTML and a Javascript function.

    But... it does what it is supposed to make :(
    By clicking on the button seems to send the page to the server, although this should not be the case... and the values of the fields P22_LINK_NODE_A, P22_LINK_NODE_B do not change.

    I didn't expect that everything goes right on the client side.
    Is it normal that the browser is trying to send the page?
    Do I need to implement something on the side Server? (process, branches,...)


    The "toggle_A_B" a button attribute HTML button: onclick = "toggleNodes (); »
    Redirect Optioanl of the button is set to "no target". (behavior is the same with "redirecting to page 22")

    In the "HTML Header" page, there is the following Javascript function (which works find in a non-Oracle-APEX HTML page).

    < script type = "text/javascript" language = "JavaScript" >
    function toggleNodes() {}
    var x = document.getElementById("P22_LINK_NODE_A").value;
    var y = document.getElementById("P22_LINK_NODE_B").value;
    document.getElementById("P22_LINK_NODE_B").value = x;
    document.getElementById("P22_LINK_NODE_A").value = y;
    }
    < /script >



    There is a post on the forum with a similar topic, maybe I should also use this approach to ($s)?

    Changing a value of the element in Javascript

    Kind regards
    Roman

    Roman:

    Set the target URL of the Html button

    JavaScript:toggleNodes();

    CITY

  • Apex 4.2. report filltered with the value of table by entry

    Hi all

    Please could you help me? I have problem with my select input filtering.

    select 
    "ROWID",
    "OSOBA_NASAZENI",
    "PROSTREDI_ZAKAZNIK",
    "PROSTREDI_VRSTVA",
    "DATUM_NASAZENI",
    "KOMENTAR",
    "KOMPONENTA_POLOZKA",
    "KOMPONENTA_NAZEV",
    "KOMPONENTA_VERZE",
    "ID_NASAZENI"
    from "#OWNER#"."NASAZENI"
    where PROSTREDI_ZAKAZNIK in (:P21_X)
    

    Filtr works very well in P21_X of entry can TBC value only or a different alone as GEMB. Where there is variety "TATRA", "FOUR", "BSC", "GEMB" it no longer works. I tried this single list without quotas, but it does not help.

    I want to reach is in case I will come to the page that I need to see specific things for people. As if someone extends from TBC, it should see only things to confirm. In which case I'll app I'd like to see all things. Is this possible?

    Thank you for your time and effort

    Good day

    redy007 wrote:

    Please could you help me? I have problem with my select input filtering.

    1. Select
    2. "ROWID",.
    3. "OSOBA_NASAZENI,"
    4. "PROSTREDI_ZAKAZNIK,"
    5. "PROSTREDI_VRSTVA,"
    6. "DATUM_NASAZENI,"
    7. "COMMENT."
    8. "KOMPONENTA_POLOZKA,"
    9. "KOMPONENTA_NAZEV,"
    10. "KOMPONENTA_VERZE,"
    11. 'ID_NASAZENI '.
    12. of ' #OWNER # '. " NASAZENI ".
    13. where PROSTREDI_ZAKAZNIK in (: P21_X)

    Filtr works very well in P21_X of entry can TBC value only or a different alone as GEMB. Where there is variety "TATRA", "FOUR", "BSC", "GEMB" it no longer works. I tried this single list without quotas, but it does not help.

    I want to reach is in case I will come to the page that I need to see specific things for people. As if someone extends from TBC, it should see only things to confirm. In which case I'll app I'd like to see all things. Is this possible?

    It's the common "variable list" model [anti-]. In

    select * from table where columnvalue in (7788, 7839, 7876)
    

    (7788, 7839, 7876)is a list of expressions and the predicate is evaluated as a membership condition.

    In

    select * from table where columnvalue in :P1_X
    

    :P1_Xis a scalar string, unable to contain multiple values.

    In a report of type APEX, a source report of the body of the PL/SQL function returning a SQL query with lexical substitution can be used to produce a "variable list:

    return 'select * from table where columnvalue in (' || :P1_X || ')';
    

    where P1_X contains less than 1000 values, has been disinfected to code SQL injectionand string values are properly cited.

    Some people suggest the following approach, that will work also in interactive APEX reports:

    select * from table where instr(':' || :P1_X || ':', ':' || columnvalue || ':') > 0
    

    However, it is underperforming because it eliminates the possibility of using the index optimizer or the size of the partition in the execution plan.

    See various elements in the list to ask Tom and imitating the channel to the table using sql features for effective solutions.

  • SOAP API - get the value of an external entry of default user Interaction

    Hi guys,.

    I'm trying to get the default value of an external input of User Interaction.

    My Testworkflow has a beginning and end, in the Middle it is a "user interaction" with two external entrances. Among the external references entered through presentation with a default value.

    This default value is what I want to get via SOAP for Scripting

    All I can understand with the "getWorkflowInputForWorkflowTokenId" method is the following:

        [getWorkflowInputForWorkflowTokenIdReturn] => stdClass Object
            (
                [id] => 2c961dc145ccc05e0145e0baae600c7a
                [workflowTokenId] => 2c961dc145ccc05e0145e0baadd40c77
                [name] => myWorkflowName : TestInteraction
                [description] => Description der Interaction
                [parameters] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [name] => externalInputString
                                        [type] => string
                                    )
    
                                [1] => stdClass Object
                                    (
                                        [name] => externalInputNumber
                                        [type] => number
                                    )
    
                            )
    
                    )
    
                [attributes] => 
                [state] => 0
                [creationDate] => 20140509132501+0200
                [xmlContent] => 
    

    Is it possible to get this value? (even with the REST API? < = I don't find as well)

    Thank you

    Marc

    Hi Marc,

    "xmlContent" property must contain a similar XML content to:

    
       
    ...
       
    
    

    User interaction, including the default, settings must be inside the element 'presentation '.

    Hope this helps,

    Ilian

  • Creation of custom device

    I am trying to create a custom device that makes it easy for a user to configure many digital output channels. My camera is now Initializes in VeriStand without any problem. I have a hierarchical design with a folder "Output Module 1' containing 32 channels. I've added the output Mode (U16) properties and enable State (Boolean) for each channel. The problem is that I don't know how to set the values of these properties in the design of LabView. I tried to use the Set point property VI to write a new value for each property without a bit of luck. I tried different others live too, but none seem to set the value of the property. I get a response to change the values in the "front" page in VeriStand System Explorer, but when I click on a channel to look at properties, nothing has changed.

    I followed step by step custom device guide http://zone.ni.com/reference/en-XX/help/372846J-01/veristandmerge/cust_device_overview/ of OR.

    My hunch is that my lack of familiarity with the node pointers cause me problem. Does anyone have an idea about this problem?

    Hi MitchD319,

    If I understand your question, the following resource should be helpful:

    Adding the element of custom device properties

    http://zone.NI.com/reference/en-XX/help/372846J-01/veristandmerge/adding_cd_properties/

  • Error 1074384569 in NI Veristand Custom device while deplying code.

    Hello

    I'm relatively new to products EITHER, but I've been learning on the go while working. Here's the problem I've been meeting as he tried to use Ni Veristand. The code for custom device, the system definition file and the XML file was all given to me. All I had to do was connect to the target of RT (verified via MAX), checked the XML file by using the XNET database editor, checked the definition of system Explorer system file and deploy the code. But I get this error.

    Veristand gateway has encountered an error while deploying the system definition file.

    Details:

    -1074384569 error in the window.lvlib project. Window.VI of the project > Project Window.lvlib:Command Loop.vi > NI_VS Workshapce ExecutionAPI.lvlib: NI Veristand - connect to System.vi

    Possible reasons:

    NOR-XNET: (Hex 0xBFF63147) information database on the system in real time was created with an old version of NI - XNET. This version is no longer supported. To correct this error, redeploy your database for the system in real time.

    I tried this redeployment after update the XML file. I also installed newer XNET in the RT system. I still get this error. It would be awesome if I get some tips. These are the products that I installed in my laptop.

    NEITHER Veristand 2011 SP1

    OR LabView 2011 SP1

    XNET OR 1.6

    Thank you in advance.

    Vishwa.

    [ EDIT ] -------------

    Sorry I forgot to mention the equipment I use. It's the NI SMU-8133-NI PXI 7853R, NI PXI 7841R chassis and two PXI 8512 of NOR.

    Thank you very much. »

    Vishwa.


  • Validation formula to check the value of prop parent within the DRG

    Hi people,

    As I said, I would be harassing you with some questions when creating certain validations of DRG thanks for understanding.

    Creating node in DRG, I need e validaytion more to kick off:

    If the Member starts with 'ZEN' and a Parent starting with "CCC", the value for Custom.prop1 of the parent company must be "Post-Cs".

    Example of

    Parent Customprop1-

    CCC-XXXX-XXXX Post-Cs

    Child

    ZEN-XXXX

    Thank you!

    Hello

    If this is the scenario, you can change the condition first ZEN-a formula

    If the formula should look like below:

    If(Equals(String,Substring(Propvalue(Core.Abbrev),1,3),ZEN-A),If(Equals(String,Substring(PropValue(Core.Parent),1,3),CCC),If(Or(Equals(String,ParentPropValue(Custom.prop1),Post-Cs),Equals(String,ParentPropValue(Custom.prop1),Pre-Cs)),True,False),False),True)

    Thank you

  • Preserve the values of the custom of NI VeriStand device settings?

    I am trying to create a system customized for VeriStand. The custom device must have a few settings that are configurable in the Explorer system solutions and are used in its VI in real-time. How can I save the parameter values so that they are retained in the next time I open the definition of system file? Is the only way to do by combining each of these parameters to a channel in the custom device and using the custom peripheral Channel Set default value VI?

    Thank you.

    You can use strings for the values of these parameters and default values as you described. Only, I would create channels if you expect to need to change the parameter at run time values by defining it from the workspace or a profile of stimulus.

    If the parameters are static (for a start at least), then I would just set them as a property on one of the nodes in the device customized using the NI VeriStand - Set point property VI. You can create as many named properties. Properties can be any value you choose, such as double, double table, etc., boolean, string. You can set these system explore and they will be saved in the definition of system and available on the target of RT using the NI VeriStand - point Get property VI. You can read them only in the engine, not write down them, but there is usually a lot more low overhead to have properties of programs.

  • Read VeriStand channel from inside the custom device that are not part of the custom device?

    Is it possible to read VeriStand channels from within a custom device VeriStand (RT Driver) that are not part of this custom device?

    For example, suppose I want to be able to configure a channel in my custom device to always be twice the value of a string of material that my user selects (I know, better/more simple ways to do this, but this is just a simple example ).  Can I do this from the device custom without programmatically create a mapping of the system? (I've done this before and it is messy and VERY prone to error of the user).

    Thank you!

    good point

    the channel ID (U64s) are not the same in the engine config of vs. Instead, you must set 'references to dependent item' in the config and then get these references in the engine.

    See the source jarrod linked, which makes it

  • execution of the RT custom device screw driver

    Hi all

    I'm building a custom device in which I expect a user input. (user provides entries on the home page of the custom device).

    Once the entry is expected on this basis I read the file-specific data and creating channels and article.

    Previously creating channels and article I in the initailiazation code.  But now that I'm waiting for user input I can't create these channels during initialization (reason is before getting the input channels will be created which I don't want. My creation of channel depends on the intervention of the user).

    If this logic of formation of channel I now write in pilot RT VI with my main logic of the reading and writing of the channels. For this I just want to know what exactly is the RT pilot VI begins its execution?

    If the RT Vi driver starts to run after adding the deivce custom veristand and after giving the user input and then my purpose will be resolved.

    I hope I explained my question correctly.

    The pilot begins after the definition of the system is deployed.  I don't think you can add strings in VI driver.  Nor do I think that you want, because you won't have an interface for them in the system definition.  Without a channel interface, i.e. mapping, how do you get data in and out of them?  I think your plan to create channels based on user input and data configuration are fine.  I suggest that you implement in the homepage or pages on the main page.

    -Steve K

  • How to detect the channel delete event in a custom device

    I am creating a custom device and want to detect when you press the button Delete (X) in the system browser.  This is so I can increment or decrement a counter in a folder (where the channel is under).  I saw no option in UserEvent loop options.  How do I detect that a channel is deleted?, I'm sure it's easy, but I can't seem to understand.

    Thank you!

    I recommend usually do not do that... If you can avoid it. For example the parent folder can do if everything is just a child get point-> the size of the array to count channels rather than storing a property that could get out of sync. I always try to design my devices do not store the property values for things I could go get.

    That being said... Sometimes you don't have that. You want an actionviondelete: https://decibel.ni.com/content/docs/DOC-30447

Maybe you are looking for