SetCtrlVal on "control of the string" request execution 'int' data

Hello

We at KPIT Cummins use LabWindows for one of our automotive projects. We have a GUI with multiple tabs and one of our boxes of string text is emerging the error (also attached jpeg) below.

FATAL ERROR: 'Temp.c', line 2642, col 38, id thread 0x00000F4C: invalid argument type: found "pointer to char", should "int".

We tried to debug this project, and we believe that the line which gives us a question is:

ret_val = SetCtrlVal (h_Tab_Intgd [INTGD_CFG_DATA_TAB], INTGDTAB_ACCXSCALE, aa_uc_Temp_Array);

where,

h_Tab_Intgd [INTGD_CFG_DATA_TAB] is an array of handles of the form (stores all handles to the tabs)

INTGDTAB_ACCXSCALE is the name of the string object (exactly the name of constant as it appears in the file .h created constant LabWindows GUI)

aa_uc_Temp_Array is an array of characters. ("0.000000\n" which currently occupies)

There is another form in our code with similar functionality, but with a different constant ID... and the SetCtrlVal seems to work for this form. We do not understand why it gives an error of execution for this particular form.

The code in this project is a big piece of code, and we cannot currently share the project because of a confidentiality clause. You can help us find exactly the problem with what little information shared us?

Thanks for the snippet of code... the error was in the tab page handles... we are grateful for your help.

Tags: NI Software

Similar Questions

  • Download Itunes on my laptop just before, it starts to install, I get a message saying that windows Explorer stops because the prevention of execution of data has stopped installation

    original title: Itunes and DEP

    While downloading Itunes on my laptop right before you start to install, I get a message saying that windows Explorer stops because the prevention of execution of data has stopped installation.  Is there any solution for this?  I'd like to install itunes on my laptop.

    Hi Steve681229,

    Thank you for using the Microsoft Answers forum.  Here's what worked for someone else.  Thanks Kevin

    Hi thrivenformore,

    Please use the forum for Support of Vista,

    You could try to add iTunes to the DEP exception list.  However, this behavior is not normal.  Go to the support forum of Apple for iTunes for Windows, search on DEP.  There should be a thread "How can I turn off DEP for iTunes?" or it Prevet planting iTunes? "which provide troubleshooting steps you might want to try before adding it to the list of exceptions."

    How to add the program to the DEP exception list:

    1. Press Start, right click on computer and select Properties.
    2. in the window that appears, click Advanced (on the left panel) system settings.
    3. in the first box that says Performance, click on the settings button.
    4. in the window that opens, click the Data Execution Prevention tab at the top.
    5. There should be a box of exceptions in the middle of this window. Click the Add button and navigate to the C: drive, then Program Files, then the iTunes folder, and then choose the iTunes exe.
    6. Add the exception, and then click OK in the window of the DEP.

    Hope this helps, Kevin
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    Thank you for using answers Forum. Please let us know how it works.

    Joseph
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • If I type the text in a control to the string * extra must be posted

    Hello

    If I type the text in the control chain * s should appear as a password. How can I go about it?

    RT-click the control chain & choose the option "display of the password.

  • Whenever I try to open anything, it won't let me. It refers to the prevention of execution of data.

    Original title: help DEP

    How do I get the data execution protection?  Whenever I try to open anything, it won't let me.  This was not used to be a problem.  The things that I try to open are safe.  I need it fixed and tried to do it through Control Panel by following the instructions, but it wouldn't let me.

    Your Internet Explorer is apparently infected by malware (add a malicious on). It is likely that DEP is doing exactly what it should - preventing access to areas of memory that should not legitimately serve and protect you from the consequences.

    Run a scan with your antivirus software and these two programs-
    Http://www.malwarebytes.org/products/malwarebytes_free/ Malwarebytes
    Http://www.superantispyware.com/-SuperAntiSpyware

    In addition, if you run IE with no Add-ons, choose Manage Add ons and examine and manually turn off all suspicious items.  (If you type Internet exp... in search you should see no modules another option see
    http://www.SevenForums.com/tutorials/25331-Internet-Explorer-no-Add-ons-shortcut-create.html

  • Cannot run Chrome or any other browser due to the prevention of execution of data in Windows 7

    I tried to launch Google Chrome or any other browser, and I was not able to run due to data execution prevention message. I turned to in my control panel and enter cmd and I turned off and it continues to be. Any ideas? IM in a Hp Pavilion running Windows 7 64 x.

    Hello

    1. What is the exact error message that you receive?

    2. you remember to make changes to the computer before this problem?

    If DEP closes all Windows programs or other Windows services, the cause could be smaller programs, such as extensions, that are created by other software publishers and that operate inside Windows. If you have recently installed a program and notice DEP closing Windows-based programs, check with the software publisher to see if there is an updated, DEP compatible version, or try reinstalling the program.

    For more information, you can consult the following link:

    Data Execution Prevention: Frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/data-execution-prevention-frequently-asked-questions

    Warning: Data Execution Prevention (DEP) is a security feature that protects against viruses and other security threats by analyzing your programs to make sure that they use the system safely memory.

    Change Data Execution Prevention settings
    http://windowshelp.Microsoft.com/Windows/en-us/help/1d9bb9b4-f6ba-466D-AC2B-7b8c4f8361611033.mspx

  • What program is the prevention of execution of data casuing?

    DEP original title: data

    How can I know who should I activate my data execution prevention to stop

    Hello

    1. Once you get the DEP error message? It is working on Internet Explorer?

    Data Execution Prevention (DEP) is a security feature that protects against viruses and other security threats by analyzing your programs to make sure that they use the system safely memory.

    You can try to change the DEP settings to check which program is causing the problem.

    What is Data Execution Prevention?
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-data-execution-prevention

    Change Data Execution Prevention settings
    http://Windows.Microsoft.com/en-us/Windows-Vista/change-data-execution-prevention-settings

    Data Execution Prevention: Frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/data-execution-prevention-frequently-asked-questions

    I also suggest you to check in the event viewer for the exact error message.
    What are the information in event logs? (Event Viewer)
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-information-appears-in-event-logs-Event-Viewer

  • Windows Messaging closed by the prevention of execution of data. How do I turn it back on?

    Windows mail displays blank pages. Message to say Microsoft closed messages due to the last post a threat to the computer.

    Try to compact and repair the database of WinMail (www.oehelp.com/WMUtil/) and see if that fixes it.

    Steve

  • Why the prevention of execution of data is closed itunes?

    I try to connect to itunes. I get itues has stopped working properly. What is a custom of preventation of executing data allows me to go on itunes. never had this problem before. So it has been for a week. you will need to get pieces of itues for my work.

    Try to update to iTune or install the latest version. Try to uninstall and install the most recent. Also run full system scan with:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

  • Using a control of the chain with the Enter key, return * and * allowing repeated identical entry

    Hi all

    There must be a simple solution for this, but it's Friday afternoon, and my brain is not cooperating.

    I create a simple terminal through which a user can interact with an instrument. My question is about the only query string control. The button send and the Terminal Table are here for reference.

    Here is my desired behavior:

    (a) the user types a command in the field of the query, tape input or return. An event is triggered, and the request is sent to the instrument. The focus remains on the field in the query.

    (b) with any other action the interface user, the user types Enter or return again and again, by triggering an event that sends the request to the instrument every time Enter or return is typed. The focus remains on the field in the query.

    Here's what I have:

    This allows for one), but fails to b). The reason is, because the value of the field in the query has not changed, change value event does not fire when the user starts to spam keys enter or return. There is a way around this, as suggested by this post. Here is the solution in a few words:

    Instead of looking for the change in the value of the query command, the event fires for each key event to the bottom of the control and resembles a pressure of enter key or return. What attracts the user action, even if the content of the field of the request have not changed. The problem with this approach is that, when this event fires, I need to read the value of the query string order and send it to the instrument, but the value I get via the local Variable query is the old value, probably because the key down event fires before the value of query is saved as changed. Is there a way to programatically "enter" the contents of the control channel so it is recorded as a change in value, until I have the question via a local Variable? Is there a different way I should go about it? I'd rather not do anything that bound the input keys or return to this particular area, since I have many other UI elements that need these keys in my program.

    If not, is there a way to make the control of the fire 'Change of value' query string event when the user presses enter or return even if the value has not changed?

    Thank you for your comments!

    I thought about it.

    (1) control of the string (query) a value of update while typing.

    (2) save the key event down to the control of the chain. If the entry or return was pressed, send the state machine to the State 'send request '.

    (3) in the application 'send' State read control channel via the local Variable value.

    This is the desired behavior to allow the user repeatedly hit entry or return to regularly send a command, and the user can also type in a new order and send it by pressing enter or return.

    Thanks to all who have helped me this something to think about!

  • [ADF, JDev12.1.3] What is the right approach to manage the Value property of a Date of entry through a bean?

    Hallo,

    I created a custom search form by dragging on the CIU af:inputText and af:inputDate.

    I have some difficulties in the treatment of af: inputDate CIU.

    I've linked the Value of each af:inputDate property to a Date variable in a range backingBean bean.

    It is the correct type of Date or can I use the String type?

    When the user clicks the button to search for the form of the search_action in the bean creates the query with parameters (identified by (?) because I am using SQL Server as DBMS).

    Then, I need programmatically check the values of af: inputDate CIU and then use them to define the query parameters.

    Are there property should I settle for FA: inputDate CIU to "do a good job? For example Valdiator, converter...?

    I see that when I use the calendar of af: inputDate, the field is entered in the format dd/mm/yyyy is good for me but I'm not able to uderstand how to treat the value to check by program and then use it to set a parameter to the query of VO.

    I also want to set the initial value of some CIU af:inputDate in the bean. It takes for example the 1st of the month 6 months ago. What code would I use to do this?

    You could you kindly help me (better if give me a simple example)?

    Thank you

    Federico

    I've linked the Value of each af:inputDate property to a Date variable in a range backingBean bean.

    It is the correct type of Date or can I use the String type?

    Date type is correct.

    Are there property should I settle for FA: inputDate CIU to "do a good job? For example Valdiator, converter...?

    Well, if you need validate the date, then you will need validator (or check the value in managed bean)

    It goes the same for the converter.

    I see that when I use the calendar of af: inputDate, the field is entered in the format dd/mm/yyyy is good for me but I'm not able to uderstand how to treat the value to check by program and then use it to set a parameter to the query of VO.

    In your beans, you will get the Date value, so no matter how it is displayed on the user interface.

    To date handling, you can use standard java api as java.util.Calendar

    I also want to set the initial value of some CIU af:inputDate in the bean. It takes for example the 1st of the month 6 months ago. What code would I use to do this?

    Use standard java api to calculate the new date, then assign accessor value in your bean (for example, in the constructor of the bean)

    Dario

  • Control the order of execution of the init/release

    I have a small program that I write in LabView.  It has an API (one set of screws to wrapping the functions of the DLL to control a device).

    Other such programs in the Gayshop make liberal use of the structures of the sequence.  I understand that the sequence into LabVIEW structures are not usually recommended.  I am writing my program with the best style of LabVIEW (as far as I understand - I'm still a relative novice in LabVIEW).

    I found that I could wire together the error / mistake Terminal to create a data flow to control the order of execution and it works beautifully.

    However, there are some cases where it is not enough.

    Here is an example.  I hope that the answer to this will answer my other questions.  If this is not the case, perhaps that I'll post more.

    One of the first live I call is an Init function.  One of the last screw is the release function.

    The release function must be called at the end, after the rest of the program executed (in this case, it is after the user requests the stop).  It should be naturally at the end (or almost) of the error string in / out connections error (as it is currently).

    However, the error it receives, which will determine whether or not he will run, should be the output of Init.  Release should work even if something else has failed.

    I enclose a photo showing the problem, with most of the code snipped out (as exactly what is happening in the middle is not relevant).

    What is the elegant way to handle this in LabVIEW.  Is it really a deal for a structure of the sequence, or is there a way more pleasant or better?  How would you recommend handling?

    Thank you very much.

    BP

    I agree with what pincpanter said, more you will need to use the status of the function 'Init '.

    Note that you can ignore the error and make the merger within the Vi version if you wish.

    Steve

  • Add control characters of the string without full control update

    Hello

    I want to have a chain of control where the text has different colors (like DockLight fx).

    What I CAN do now, writes a string with several lines to a control of the chain.

    Then format each line in a different color.

    But it fails so when I want to add a new text, with a new color.

    When I update the chain control, all previous formatting is crushed, and all lines have the same color.

    I want to be able to:

    Add string1 with blue color.

    Add string2 with green color

    Add string3 with red color

    etc.

    Is this possible?

    Thanks in advance!

    Awesome! Glad I could help.

  • In the VI library OR: extract, control of the channel numbers are loaded automatically every time that the VI is open with "count to five: a 2 three 4.0 five." Whence this string of data?

    Even after the removal of the string "count to five: a 2 3 4.» 5."since the control of the chain and its replacement by another string, the original string returns after that the VI has been saved then reopened. Whence this string of data? I have attached a copy of the library feature. In my application, I was able to work around the problem by replacing the chain with a constant string control. But I'm still curious to know what is happening.

    Thank you
    Chuck

    Chuck,

    Chain drive was scheduled by default with the string you see.  To change it, enter the new string, right-click on the control and select

    Operations on the data > default font of the current value

    Now, save your vi.

  • How to use the string as a terminal window control

    Hi all

    I am setting up a terminal window in my VI and to do this I have a control of the chain and an indicator of the chain.

    I want the user to be able to write a command in the terminal and when hitting enter into the control must update, but not before! I'd do it

    as the user to be able to enter several commands without having to re - click the control with the mouse, so he must stay in the

    control window.

    The result of this chain control is introduced to an external motor controller, which responds with a string entry in the string of an invoke node indicator.

    I tried to make some case of the event, but not quite sure how I'm going to only detect the input control.

    Any ideas how to precede?

    Thank you

    Concerning

    Tommy

    Yes, in the structure of your event, look for an event of your control chain called 'key' down... on the left, there are several upcoming parameters (char, Vcle etc.) where you can use for example the char find char = 13 (back).

    Look here: http://zone.ni.com/reference/en-XX/help/371361B-01/lvprop/control_key_down/

    Good luck

    Christian

  • How to join a support team of unknown applications due to the ' opinion of the new library "this application has requested execution to terminate in an unusual way.

    "Were informed by your visual c ++ Runtime Library that"this application has requested execution to terminate in an unusual way"please contact the support team of the application for more information" I don't know where the application. How to locate even. I'm stuck.

    Hi RobertBurnsZZ,

    You received this error while you browse your Microsoft account? Were you running e-mail software when the error message appears in place? If Yes, what is this e-mail application? Can you give us the details of the specific steps or activities that you perform on your computer when the error occurred?

    Thank you.

Maybe you are looking for