NI-XNET nxBlink() what session type to use ?

What session to pass to nxBlink() NI-XNET function ?
I tried to pass sessions obtained from:
- nxCreteSession(..., nxMode_FrameInStream, ...)
- nxCreteSession(..., nxMode_FrameOutStream, ...)
But I get error. The nxBlink() help only says use "The XNET Interface I/O name".
but that doesn' tell me what kind of session out of these to use:
nxMode_SignalInSinglePoint
0
nxMode_SignalInWaveform
1
nxMode_SignalInXY
2
nxMode_SignalOutSinglePoint
3
nxMode_SignalOutWaveform
4
nxMode_SignalOutXY
5
nxMode_FrameInStream
6
nxMode_FrameInQueued
7
nxMode_FrameInSinglePoint
8
nxMode_FrameOutStream
9
nxMode_FrameOutQueued
10
nxMode_FrameOutSinglePoint
11
nxMode_SignalConversionSinglePoint
12

I already found out that system type of session leads to interface/port type of session that can be used
to blink the particular port LED.
Thank you, Radek
 // Open system session.
        nxCheckErr(nxSystemOpen(&l_SystemRef));
 // Each Interface is represented by a u32 (4 bytes).
         l_NumberOfInterfaces = l_PropertySize /4;
         l_pInterfaceNames = (char**)malloc(sizeof(char*)*l_PropertySize);
         l_InterfaceBuffer = (u32 **)malloc(l_PropertySize);
         // This property returns the u32 value for each interface.  
         // You can use this value to get individual interface properties
         nxCheckErr(nxGetProperty (l_SystemRef, nxPropSys_IntfRefs, l_PropertySize, l_InterfaceBuffer));       
         // Get the individual interface names.
         for (i = 0; i < l_NumberOfInterfaces; i++)
            nxCheckErr(nxGetPropertySize((nxSessionRef_t)(l_In​terfaceBuffer[i]), nxPropIntf_Name, &l_PropertySize));
            l_pInterfaceNames[i] = (char*) malloc(l_PropertySize);
            nxCheckErr(nxGetProperty((nxSessionRef_t)l_Interfa​ceBuffer[i], nxPropIntf_Name, l_PropertySize, l_pInterfaceNames[i]));
            // Identify the port that match the resourceDescriptor.             
            if (0 == strcmp(resourceDescriptor, l_pInterfaceNames[i]))
                actualInterface = (nxSessionRef_t)l_InterfaceBuffer[i];
                nxBlink(actualInterface, 1); // Blink particular port for identification and
                Delay(1);                    // indicate that input stream was succesfully opened.           
                nxBlink(actualInterface, 0);    

Similar Messages

  • What data type is used for storing password,

    What data type is used for storing pass word in oracle db, i mean if user inputs some thing from forms it should be in Encrypted form in db, please any help??
    Thank you
    Hina

    Data type is VARCHAR2:
    SQL> desc dba_users;
    Name                                      Null?    Type
    USERNAME                                  NOT NULL VARCHAR2(30)
    USER_ID                                   NOT NULL NUMBER
    PASSWORD                                           VARCHAR2(30)
    ACCOUNT_STATUS                            NOT NULL VARCHAR2(32)
    LOCK_DATE                                          DATE
    EXPIRY_DATE                                        DATE
    DEFAULT_TABLESPACE                        NOT NULL VARCHAR2(30)
    TEMPORARY_TABLESPACE                      NOT NULL VARCHAR2(30)
    CREATED                                   NOT NULL DATE
    PROFILE                                   NOT NULL VARCHAR2(30)
    INITIAL_RSRC_CONSUMER_GROUP                        VARCHAR2(30)
    EXTERNAL_NAME                                      VARCHAR2(4000)
    PASSWORD_VERSIONS                                  VARCHAR2(8)
    EDITIONS_ENABLED                                   VARCHAR2(1)
    AUTHENTICATION_TYPE                                VARCHAR2(8)You can use SQL function ORA_HASH to hash password: http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions124.htm#SQLRF06313.

  • What connector type is used to plug a guitar into the iPad?  Does it connect to the earphone jack?

    What connector type is used to plug a guitar into an iPad?  Does it connect to the earphone jack?

    Actually you can get something like this from your local mac store. http://www.ikmultimedia.com/products/irig/ It plugs right into the earphone jack and works fine (I own this model and it works well on the go). For my actual mac, I use a Monster iStudioLink, which I have heard will work with the iPad 2 (but with some bugs - see the comments on the Monster website) http://www.monstercable.com/productdisplay.asp?pin=2440

  • What message type to use for syndicating data back to R3 from XI

    What message type to use for syndicating data back to R3 from XI. It gives a Message type IDOC error code 51.

    Hi Rehman,
    You are getting error 51 which means "Error: Application document not posted".
    This might because of two reasons:
    1. Your IDoc doesn't contains all the mandatory fields required by the inbound function module to post the IDoc.
    2. You have assigned wrong inbound function module to post the IDoc.
    Please check these cases.
    Hope this will help you.
    Thanks,
    Shiv Prashant Dixit

  • What are type defs used for?

    I am learning about type defs and wanted to ping the community to get a feel for what expanse of things they are useful for.  Any and all comments are welcome.
    Cheers!
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

    I found this (from LV Help) enlightening as to the differences between typedefs and strict typedefs:
    Type Definitions and Strict Type Definitions
    Use type definitions and strict type definitions to link all the instances of a custom control or indicator to a saved custom control or indicator file. You can make changes to all instances of the custom control or indicator by editing only the saved custom control or indicator file, which is valuable if you use the same custom control or indicator in several VIs.
    Type Definitions
    Type definitions identify the correct data type for each instance of a custom control or indicator. When the data type of a type definition changes, all instances of the type definition automatically update. In other words, the data type of the instances of the type definition change in each VI where the type definition is used. However, because type definitions identify only the data type, only the values that are part of the data type update. For example, on numeric controls, the data range is not part of the data type. Therefore, type definitions for numeric controls do not define the data range for the instances of the type definitions. Also, because the item names in ring controls do not define the data type, changes to ring control item names in a type definition do not change the item names in instances of the type definition. However, if you change the item names in the type definition for an enumerated type control, the instances update because the item names are part of the data type. An instance of a type definition can have its own unique label, description, default value, size, color, or style of control or indicator, such as a knob instead of a slide.
    If you change the data type in a type definition, LabVIEW converts the old default value in instances of the type definition to the new data type, if possible. LabVIEW cannot preserve the instance default value if the data type changes to an incompatible type, such as replacing a numeric control or indicator with a string control or indicator. When the data type of a type definition changes to a data type incompatible with the previous type definition, LabVIEW sets the default value of instances to the default value for the new data type. For example, if you change a type definition from a numeric to a string type, LabVIEW replaces any default values associated with the old numeric data type with empty strings.
    Strict Type Definitions
    A strict type definition forces everything about an instance to be identical to the strict type definition, except the label, description, and default value. As with type definitions, the data type of a strict type definition remains the same everywhere you use the strict type definition. Strict type definitions also define other values, such as range checking on numeric controls and the item names in ring controls. The only VI Server properties available for strict type definitions are those that affect the appearance of the control or indicator, such as Visible, Disabled, Key Focus, Blinking, Position, and Bounds.
    You cannot prevent an instance of a strict type definition from automatically updating unless you remove the link between the instance and the strict type definition.
    LabVIEW 8.0.1; WinDoze XP
    aut viam inveniam aut faciam

  • What MIME type to use for DNG?

    Is there an 'official' MIME type to use for DNG? I've seen image/x-adobe-dng used, also image/tiff, and sometimes image/x-dcraw. I'd like to know so that I can characterize DNGs correctly for format identification software we are writing. I don't believe the MIME type is specified in the DNG spec. Thanks.

    I think this is clear
    image/x-adobe-dng = DNG
    image/tiff = for tiff images. I know that Phase One gives there RAW images .tif at the end but tiff sould be a real image.
    image/x-dcraw = for other camera raw files like CRW/CR2 of Canon, NEF of Nikon....
    I would suggest to use the "image/x-adobe-dng" for DNG files.

  • What cast type are used for?

    In the example attached to this question is a simple VI application that cast, using type cast of LabVIEW, one value to different other type. My understanding of type cast, in C, C++ and to my best knowledge, was an implicit adaptation of a numerical value in a specific format to an other format. The value should remain the same. Unless the type in which the value is assigned is not enough large or adapted to contain such a number ex:
    I8 = 500;
    U32 = -1;
    But in my example all the assigned indicator are large enough.
    I have the same problem in LabVIEW 5.1.1 and 6.1
    If someone could only tell me what it is used for?
    Best regards,
    Nitrof
    Attachments:
    Type_cast.vi ‏26 KB

    The type cast function is really helpful for typecasting "unusual" data to a more convienient data format. It can also be used to coerce data, like in your example, but coercion is usually not always a good thing because it can cause bad values.
    There are lots of good examples of typecasting.
    For example, I use the typecast function to change refnums to unsigned 32 integers (U32), just so I can pass the refnums between VI's easier.
    Another VERY common typecast is if you want to display the ASCII value of a character. Run the string character "A" into a typecast, and set the output type as a Unsigned 8 bit number (U8), and you will see 0x41. Take a look at my example VI's to see what I mean.
    David
    Attachments:
    Type_cast_Example5.vi ‏16 KB
    Type_cast_Example6.vi ‏18 KB

  • What compression type to use when exporting?

    I need to export a Final Cut Pro Movie File to a QuickTime Movie file. There are so many copression types to choose from. Which should I use so that people with both Mac and PC could open the file? Some friends have complained that they can´t open files that I´ve exported using H.264 which is the default I get in QuickTime.
    thanks in advance

    Backward compatibility has always been a QuickTime strong suit. Files made in version 3 still open just fine in version 7.
    But H.264 (and the preset export options) make this a bit more confusing.
    MPEG-4 Video codec will open in version 6, or higher and, since version 6 has been available since 2002, it is a very good chance your viewers have version 6 to view it.
    Older machines that can't be upgraded to version 7 or viewers that still haven't upgrade their version of QuickTime beyond version 4 (Win 95) would like to view Sorenson 3 Video codec.
    Don't bother with any conversion to AVI as the QuickTime export options (Cinepak) haven't been used since Win 3.
    If you have a lot of videos to share or are making files to be used in a Web page you'll probably get the best results by choosing:
    Export > Movie to QuickTime Movie
    and choosing MPEG-4 Video codec. These .mov files work just fine on the Web and also in other players (iPods, etc.) as long as you don't exceed the specs for iPod.
    Learn more by experimenting with one minute exports to various codecs and settings.

  • What variable type to use??

    i need to perform calculations on various numbers ranging from 0 to as big as possible.i also need to perform divide operations on these numbers and i need the result to be very accurate including decimal points.
    example: (24 * 1000000) \ 35250
    what type should i declare these numbers as??
    i have tried BigDecimal but it always rounds the result to a whole number??

    BigDecimal setScale throws an ArithmeticExpression exception if roundingMode==ROUND_UNNECESSARY and the specified scaling operation would require rounding.
    since my calculations would give results with many numbers after decimal point would it require rounding??

  • What data type to use?

    I need to compute the percentage of each INTEGER, say, 4,5,6,3,2. So this is what I did:
    percent_value[] = (value[] / total) * 100;
    both percent_value and value[] are int arrays.
    I know there's something wrong, I don't know what... please help :)

    If total is an int, then you will always get 0 (or 100) the way you calculate it, since dividing two ints will produce an int, not a float. So you should multiply with 100 before you divide with total.
    You need a for-loop to work with your arrays:
    for (int x = 0; x < value.length; x++) {
      percent_value[x] = value[x]*100/total;
    }I assume that was what you were trying.

  • What compression type to use for disk image files

    Hello all
    I was wondering if a more experienced user than me could give a recommendation as to which compression format I should use to compress an image I made of my / partition. I used dd to make the image file.
    For me, (de)compression time is more important than compression ratio (size), but I'm of course looking for a good blend of both
    Thanks for any advice

    If you have a multicore processor, use pigz instead of gzip etc. Start with this app and only after you're not happy with it, look for one that's faster / compresses better.
    BTW, do you have a lot of incompressible data in there? Movies, pics, music and already compressed files won't compress any more.
    Last edited by karol (2011-01-29 16:16:03)

  • What report type should use ?

    Hi all,
    I got the following query output :-
    Item___Type
    1233___011
    1233___013
    1233___015
    1233___014
    and I will like to display the output in the following format :-
    Item__Model_011___Model_013___Model_014___Model_015
    1233__011_________013_________014_________015
    How should I do ? Thanks in advance.
    rgds
    Lim

    Hi Lim,
    U can use the matrix report.
    It will solve yr purpose.
    Regards
    Mayank Sharm

  • When to use what project type?

    Hi,
    I am kind of baffled by the use of Flash Project in Flash Builder 4.
    Flex Project is for build RIA\Flex applications with a design view available for creating the GUI.
    ActionScript projects allow you to program\debug AS3 code and only when you run the application you get a visual feedback.
    1) But when will I want to use Flash Projects?
    The reason I am asking is that I have a project that currently works by running a main swf file that in turn loads additional swf files (Sorry I can't show you a demo), switching the loaded swf every 30 seconds.
    I am leaning to use a Flash Project to manage my project. On the other hand, I could move the entire project to Flex and implement the different swfs as different states of the GUI.
    2) What do you think?
    Thanks for your help and feedbacks.

    You can start reviewing this topic from here
    http://help.adobe.com/en_US/flashbuilder/using/WS6f97d7caa66ef6eb1e63e3d11b6c4d0d21-7ffb.h tml#WSbde04e3d3e6474c4-63107a8b12642da83ed-8000
    I would also want to add some details about my project that cause me to ponder on what project type to use.
    1) My project involves multiple flash\swf files that are loaded during work. I need to manage their creation.
    2) All my swfs are loaded as part of a single application that runs in the backgrounds and loads each swf to display different information.
    3)I have many as3 files that I use and would also like to manage them properly.
    4) I would have liked to manage the project under a cvs project, like you can do with Java, so I don't have to do manual backups.
    Any ideas?

  • What message type used by ALE in transactional data

    Hello friends,,,
          I wish to know what msg types are used in transactional data like PO, PR, etc in Materail tables???
    thanking you

    hello babi,
        Message Type         Technical Name
        Product                    PRODUCT
        Location Group/Assortment  LOCGRP
        Assortment Product         ASRTPRD
        Assortment Version         ASRTPRDVRSM
    Assortment Version for Space Management ASRTPRDVRSO
       Allocation and PO           ALLOCPO
       Markdown Proposals          MDPROP
        Open-to-Buy                 OTB
    complete details of ALE:
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a6cdd507d11d18ee90000e8366fc2/plain.htm
    REgards
    Varun

  • What file type and codec should I use for creating a file to send to have an HDCAM copy made

    I'm prepping to take a video file of my film into a tape dubbing house to have an HDCAM copy of my project made. I'm using a PC, so Apple ProRes is not an option. What file type, codec, and settings do you recommend?
    I was considering MXF, but the highest quality codec is XDCAM 50, which only does up to 50Mbps (I think). I believe HDCAM works at 140Mbps, so I would rather not give them a file that's compressed to almost 1/3rd that, especially since the source is a 5K 5120x2560 project. DPX maybe? I've never exported DPX before because it's not an option on my copy of CS6 - maybe that has to be downloaded separately? I was considering a Quicktim in H.264 at 140Mbps, but I think that would mean some serious rendering for the tape house. I would like to be able to offer them a few different options and see what they prefer, but this is an area where my knowledge runs thin. Any suggestions would be much appreciated. I'm hoping there's an industry standard that I can stick to.

    DPX maybe? I've never exported DPX before because it's not an option on my copy of CS6 - maybe that has to be downloaded separately?
    Your CS6 'Format' dropdown list should include DPX:
    Among the options you listed, DPX would be my choice.
    Be certain the dupe house can accept these files before proceeding.

Maybe you are looking for