How implement not checking in LabWindows/CVI interchangeability?

Hello

I'm creating a driver of IVI - C using LabWindows/CVI 2012. I used IVI Instrument Driver Tool Wizard and he created most of the code to support inherent attributes and functions of the IVI.

I do not plan to support the verification of interchangeability in option and according to the specifications of the IVI (IVI-version 2.1, 3.2 section 5.21):

«If the IVI specific driver does not implement verification of the interchangeability, the specific driver returns the unsupported value error when the user attempts to set the attribute Interchange check true.»

It would be a simple task if I could change the reminder of the writing of the Interchange attribute check. However, LabWindows/CVI does not any change of an inherent attribute. How can I make the driver returns the value not supported error when the user attempts to set the attribute Interchange check true?

Any help is appreciated!

Thank you.

Hello buckhorn,.

From your statement, I tried to 'Edit' the reminder of the writing of_ATTR_INTERCHANGE_CHECK attribute and seems it worked. Here is part of the codes.

1. Create a ViBoolean write callback function:

static ViStatus _VI_FUNC agx2k3k_InterchangeCheckWriteCallback(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViBoolean value)
{
    return IVI_ERROR_INVALID_VALUE;
}

2. Add the callback function to ATTR_INTERCHANGE_CHECK:

checkErr (Ivi_SetAttrWriteCallbackViBoolean (vi, AGX2K3K_ATTR_INTERCHANGE_CHECK, agx2k3k_InterchangeCheckWriteCallback));

I hope that it might help for your case.

Thank you

-Charles

Tags: NI Software

Similar Questions

  • How can I convert a LabWindows/CVI 2010 project to a Visual Studio 2011 project?

    I have a good size project, 12 source files, headers 14, 1 uir, I want to be able to edit and compile in MS Visual Studio 2011, MSVC ++.

    I remember that we tell him that LabWindows dropped support for C++ in 2008 and is more had a wizard to convert projects. I know that I can follow the path of the DLL, but I have never created a DLL before and don't know where to start with it. What would be the best way to go about this conversion?

    CVI 2010 always supports the Assistant Conversion of Visual Studio to Visual Studio 2005/2008. We are not planning to add support for VS 2010 in a later version.

    If you need a project to VS 2010 now, you can use the Visual Studio 2008 conversion wizard, and then upgrade the project VS 2008 for VS 2010.

  • How to group radio buttons LabWindows/CVI

    Hi all

    I use 3 boxes in my GUI. Only onle is selected at a time where no one is selected. For example, I have three buttons B1, B2 and B3. By default, B2 is selected and (1) if I press B2 it désélectionnera it free, and nobody is selected in this group. (2) if B2 is already chosen and I based on B1, then désélectionnera B2 and B1 will be selected.

    Is there why group multiple radio buttons?

    -Vishnu

    Hi Vishnu,

    CVI comes with a custom control called Radio group that you can use for this purpose. It is a custom tree control that you can add to a group of experts. You can locate this control in the control of Toolslib:

    If you don't want to use this instrument, it is pretty simple implementation of a group of radio buttons. You can use something like this:

    1. Create controls that must be grouped on the Panel
    2. Create a control array
      CTL int [3];
      CTL [0] = PANEL_RADIOBUTTON1;
      CONT [1] = PANEL_RADIOBUTTON2;
      CTL [3] = PANEL_RADIOBUTTON3;
    3. In the reminder of the command:
      for (i = 0; i< 3;="" i++)="" setctrlval="" (panelhandle,="" ctl[i],="" 0);   ="" turn="" off="" all="">
      SetCtrlVal (panelHandle, control, 1);     Turn on the active radio button

    Modify Normal behavior in radio buttons is that one of the group must always be selected. If you want to be able to have no selected control, you can easily customize step 3 to get:

    for (i = 0; i< 3;="" i++)="">
    If (Control | = ctl [i]) SetCtrlVal (panelHandle, ctl [i], 0);    Disable all controls, different from the active
    }

  • How DO NOT check the modal phrases

    I use the latest version of InDesign on my iMac. When I check spelling, he noted all modal sentences. It's embarrassing. Is it possible to turn off this feature? I searched in Google and could not find anything. Thank you.

    Julie

    It is in the application, under the spelling preferences...

  • How to make a manager of UIMessage of PostStep of TestStand in LabWindows/CVI 8.1?

    How to make a manager of UIMessage of PostStep of TestStand in LabWindows/CVI 8.1?

    Hi all

    I have a problem of capture UIMessages motor TestStand for a DLL called from a sequence.
    A search on the forum gave rise to 2 posts on this topic or a similar problem, but with LV and unfortunately, they were not solved.

    TestStand Event 13 - UIMsg_StartInteractiveExecution is not captured by LV operator Interface

    Problems with ActiveX in LabVIEW 7 reminders

    In detail, I want to activate a DLL access the TestStand SequenceContext (variables) in phase of execution of the step.
    A pop-up Panel could then display variables such as the spy does, but more flexible user defined Panel window.

    He is currently working with a periodic timer that causes racing with TestStand conditions while monitoring the variables.
    It works 99%, but I want it to work 100%.

    I found the
     TS_ExecutionAddPostStepCustomUIMessage()
    to indicate to the engine, I want to be informed of one end of the stage with my private UIMessage.
    Next is to implement a callback with
     TS_EngineRegisterUIMessageCallback()
    to retrieve all UIMessages and filter my private.

    Sounds good - works for the capture of events, but TestStand locks and does not continue execution and not to carry out handling
    any operation of the user interface. I have tried 4 solutions (see code), no difference in the result.

    I must kill TestStand to get out of it.

    Attached you will find a stripped down a simple example to reproduce the problem.

    I'd appreciate any help.
    Thanks in advance.

    Kind regards
    Tom

    TestStand 3.5.0
    LabWindows/CVI 8.1.0

    Hello Nick,

    Thank you for your quick response!
    Yes, you are right. That works, I tried today, but...
    isn't this practice as I want it to be. The programmer of a sequence (not me) should take care of the good implementation of a reminder of PostStep to make it work, although he just wants to make a popup. It is not a real problem, but if you use a TestStand MessagePopup command, expected to implement another somewwhere command to make it work. Don't get me wrong, it's just that I don't think that it is a clean solution. And... at least, it is slower.
    I found a tutorial OR a LabView solution for this and two people were asking a LabWindows version. Of course, some are
    interested in this solution. These 2 functions, that I mentioned in my post should work somehow, otherwise they are fools.
    I would really like to know how.

    Thanks again anyway. I'll use your suggestion, if I don't get the problem solved at the root.

    Kind regards
    Tom

  • LabWindows CVI RS-232 is not fast enough

    Hello

    Is it possible to write a C program which takes RS-232 data buffers and prints it on the screen?

    I ask this question because I write a program in LabWindows CVI and the data is not correct. I used SimpleTerm Gold to see what data are supposed to look like, but CVI misses some. I believe it is not fast enough and therefore lack of data.

    A C program (do not use the functions or reminders CVI) would be possible and better?

    Is it possible to make the CVI to work faster? I changed the environmental policy of the previous "do not sleep". There are two ComRdTerm because we're not getting all the other packages.

    Rate 115200 baud, no parity, 8 data bits and 1 stop bit. Most of the data I receive are 313 bytes and the smallest is 17.

    Any help would be MUCH appreciated as I am completely puzzled.
    Thank you

    Code is below.

    OpenComConfig (com, "COM9", 115 200 Baud, 8, 1, 0, 1024, 1024); / /< opens="" serial="" ports="">
    SetComTime (com, 0); / /< sets="" serial="" port="" to="" never="" time="" out="">
    T0 = clock(); / /< calculate="" how="" fast="" comrdterm="" is="">
    bytes_read0 = ComRdTerm (com, & buffer0 [0], 314, 10); / / read com and store it in the buffer
    sprintf (p_check0,"%.4s" & buffer0 [0]);
    T0 = clock() - t0;
    Double time_taken0 = ((double) t0) / CLOCKS_PER_SEC; / / in seconds
    printf("%d\t%f\t%s\n",bytes_read0,time_taken0,&buffer0[0]);
    Memset (buffer0, 0, strlen (buffer0)); / / Clears the buffer

    T1 = clock();
    bytes_read1 = ComRdTerm (com, & buf1 [0], 314, 10);
    sprintf (p_check1,"%.4s" & buffer1 [0]);
    T1 = clock() - t1;
    Double time_taken1 = ((double) t1) / CLOCKS_PER_SEC;
    printf("%d\t%f\t%s\n",bytes_read1,time_taken1,&Buffer1[0]);
    Memset (buf1, 0, strlen (buffer1));

    Thanks for all the help guys. I finally found the solution. The program was running too slow because I kept opening and configure ports (not shown in the code) I simply kept open ports and it works fine.

    I appreciate all the comments and insight. Each of them will definitely help me still to develop with CVI.

    Kind regards
    Keegan.R

  • LabWindows CVI Full recommended OI does not start

    I made an installer of deployment Teststand-2013. On a target PC (Windows 7 64-bit) it works fine. But on another target PC starting the Labwindows/CVI Full IO recommended (attached screenshot) fails with an error-145 when trying to load testexec.uir. Both targets have Windows7 64-bit and Office 2010 installed. How will I know what ActiveX control is missing or damaged on the second PC?

    I found http://digital.ni.com/public.nsf/allkb/9894BE2B832B7FDE86256ECD00041172. But the Office is installed, and ActiveX Control Pad is obsolete and incompatible for Windows7 64 Bit and is no longer available from Ms.

    mkossmann,

    You can use the option "Hide the license dialog box" on the Installation Options tab. This will not prompt the user to activate TestStand until they try to open the software after installation. What is the desired behavior?

  • How is for NI LabWindows/CVI? How is it likely to be in the future?

    Hello

    How is changing in favour of NI LabWindows/CVI?  If it's good now, expect the same level to continue in the future?

    Thank you

    Gayle

    Hi Gayle,

    To answer your question re using LabVIEW OO with CVI, they are quite different technologies and really cannot be used in conjunction with each other. That said, if you put the code of the BCI in a DLL, you can call in the LabVIEW DLL using a node call library feature. If this is not clear things up for you, please let us know a little more on what you ask.

    As an observation, I am happy to learn that many of you have had good experiences with our support! Certainly, we do our best to provide excellent support and strive to help you succeed with your applications.

    Best regards

    John M

  • How to create a "band of the art" in LabWindows/CVI

    Hello

    I am well aware of how it is easy to do in LabView, but I can't seem to find all the information on how to do this in Labwindows. There are other ways I can close a fall tips, but I really like what the end of the strips do for me.

    The CVI equivalent is called "tooltip" and is defined by program based on SetCtrlToolTipAttribute (): with the attribute CTRL_TOOLTIP_ATTR_ENABLE you decide whether to show the ToolTip or not, whereas with CTRL_TOOLTIP_ATTR_TEXT , you set the text to display. The links are using CVI 2009. There are a few caveats when using ToolTips: here a case where balloons are carried forward off.

  • Can't see taskbar, except if I close all the windows, but hide automatically is not checked - how to fix this?

    It happened all of a sudden during a browsing session. Also, I do not see the albums "open windows" list unless I have point to him. "Auto-hide taskbar" is not checked. I tried to stop and do a restart, but nothing has changed. The two bars are always top in IE but not in Firefox more. It is very annoying. I would like to know how to solve this problem, and also how it could have happened, so I don't do it again! Thanks in advance.

    Firefox is stuck in mode full screen? The F11 function key switches between regular views and full screen modes.

    Firefox window is an irrational dimension in normal mode, it can indicate a corruption of the file that stores the information of location/size of window. The usual medicine is to rename this file and let Firefox restart by using the default dimensions. Here's how:

    Open the settings folder (AKA Firefox profile) current Firefox help

    • button "3-bar" menu > "?" button > troubleshooting information
    • (menu bar) Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table of the page, click on the view file"" button. This should launch a new window that lists the various files and folders in Windows Explorer.

    Leave this window open, switch back to Firefox and output, either:

    • "3-bar" menu button > button "power".
    • (menu bar) File > Exit

    Pause while Firefox finishing its cleanup, then rename xulstore.json to something like xulstore.old. If you see a file named localstore.rdf, rename this to localstore.old.

    Launch Firefox back up again. Windows normally appear again?

    As this process goes probably most toolbars, you can use one of the following methods to display the toolbar list and activate the desired bars it:

    To activate the menu bar, toolbar bookmarks or other bars, click it in the list.

  • HOW CAN I CHECK IN NEW IPHONE IS ACTIVATED OR NOT ACTIVATED

    Hello

    Can you advice me how I can check region or specifications from the iphone, and whether active or not activated

    A new device (one of Apple or an Apple authorized reseller) should not be enabled until you, the buyer, is it.  If you mean a used device, then check its state of activation lock here - https://www.icloud.com/activationlock/ if it says that it is locked, he won't tell you where on the planet the device or its owner are good.

  • Why can I not use my labview controls created dll in labwindow CVI?

    I created a DLL in LabVIEW for run of LabWindows/CVI.  The DLL is started very well but I have no control on the GUI.  Why and how can I use this GUI controls?

    I found the solution on the following thread.

    http://forums.NI.com/NI/board/message?board.ID=180&message.ID=36951&query.ID=314335#M36951

  • NOR tkds5000 LabWindows/CVI IVI driver not work for TDS5104, TDS5054B

    I'm trying to get the driver NI LabWindows/CVI IVI (tkds5000 version 1,212) working for the Tektronix TDS5054B scope.  When I execute the following functions, I have the warning 'Is not a valid value for the parameter or property' of 0xBFFA0010:

    IviScope_InitiateAcquisition

    IviScope_GetAttributeViInt32 for IVISCOPE_ATTR_TRIGGER_SCOPE and IVISCOPE_ATTR_ACQ_TYPE

    IviScope_ActualRecordLength

    This is not an exhaustive list of the functions that do not work, but just that I currently see.  There are several functions that work (see this joint SPY OR file).

    The strange thing is that everything works fine when I have an oscilloscope Tektronix TDS5104 connected (file SPY OR see attachment).  The code also works when I have an oscilloscope connected and selected through MAX TDS3054 driver tkds30xx IVI of NOR.

    Is it possible that the driver of version 1,212 tkds5000 does not support fully the TDS5054B?  I looked through the files tkds5000.c and tkds5000.h, but has not seen any dependencies on the model of the oscilloscope for these functions.  Any ideas?

    Thank you!

    Dave

    So, then I thought about it.  The tkds5000 driver AND works very well.  The problem is that the Tektronix TDS5054B scope do not "initialize" some of the attributes.  For example, I had a problem reading the value of the attribute of slope of relaxation because an invalid value was returned.  If I set the slope of the trigger, first of all, then read it, it works fine.

    Its strange because most of the attributes is set to the correct value corresponding to what is displayed on the oscilloscope screen and the Panel, but not ALL of them.  In addition, other Tektronix oscilloscopes did not require a writing before reading.

    Anyway, thanks a lot NathanT.  I appreciate your help.  You saved me a bunch of time to have to go back and add in a dedicated driver.

    -Dave

  • Windows Media player on my machine does not run some AVI files. How can I check what the problem with AVI files. Files are running in other utilities of free ware

    Windows Media player on my machine does not run some AVI files. How can I check what the problem with AVI files. Files are running in other utilities free ware. Also, windows Explorer does not display dimension and other video related information for the file. Y at - it a tool that can indicate what exactly is the problem with the file.

    Ritu

    Hello

    1. you get any error message?

    2. don't you make changes to the computer before the show?

    Please follow the steps from the link below.

    http://support.Microsoft.com/kb/279242

  • How can I check that my windows licenseed or not

    I have several computers in my office with different types of windows (win xp, win vista, win7). How can I check that versions of windows installed on each computer is authentic (licensed) or not

    The Genuine Microsoft website provides information about the Genuine Advantage program:
    http://www.Microsoft.com/Australia/genuine/how-to-tell.mspx

Maybe you are looking for