Determine the presence of a device

Y at - it a simple method to test for the presence of a device?  I have a chassis 9172 that I sometimes forget to put on for my mistakes of LabVIEW VI on the first time he's trying to do something with the material (and I need to resart the VI and re-enter the selections of GUI ).

I would like to find a nice simple way to test to make sure the cassis is connected to the PC and turned on and if it does not give a not so subtle remicer to do before the real test of the code portion.

Any ideas?

You can look at this thread. Also, what kind of communication do you have in your application now? What devices you expect to be there? I have to assume that your applications run if the chassis is running. So you knew the equipment that connect you with now. Any request for State of the any of these devices does not suffice for you to determine if the chassis is here or not. If you can connect and get an answer, you're good to go. If this isn't the case, you must create a user switch on the chasis, connect or other problem.

For your application, you can use an architecture of producer/consumer or a state machine which would allow you to stay in the initialization state before continuing, if you cannot communicate with the device.

Tags: NI Software

Similar Questions

  • Determine the orientation of a device

    Hi, I've seen tutorials on the internet where people use navigator.landscapeOrientation inside a resize handler, check the orientation of a device. Who does more then, how can I check the direction now?

    I need this work as soon as a view is created, for example from the creationComplete Manager. It should also work for iOS devices and iPad. Thanks for your help.

    Ignore this, the use of FlexGlobals.topLevelApplication.aspectRatio to find the guidance works very well.

  • I can't get a connection with my USB flash drives or portable hard drives under windows 7. It detects only the presence of usb devices, but usually gives me access to a drive letter for it.

    When connecting usb data as a flash drive or an external hard drive the device drives shows its presence in the clock system but custom windows status bar 7 give a drive letter to access the drive. Stuart Bennett

    Right-click on my computer and select manage.  On the next screen, click on disk management.  Now appear on the right side of the screen?  If yes you can assign a drive letter to them here.

  • Determine the presence of multiple recipients

    Hi all

    We have an entity - benefit with multiple instances
    each instance has a code allocation and a code of the recipient
    We need to determine if the same allocation code has several recipients

    For example
    Allocation Code Code of the recipient
    ABC 03
    03 DEF
    ABC 04
    05 DEF

    Allocation of codes 04 and 05 do not have multiple recipients, but
    Allocation code 03 has several recipients.

    Can someone help us with that?

    Thank you
    Allan

    Published by: a Gibson on September 8, 2011 08:10

    Assuming that each entity 'advantage' has 1 allocation and 1 code of the recipient as attributes...

    the advantage was a recipient in double for compensation if
    .. for at least one of the advantages (another benefit)
    ... code = code of another benefit allowance benefit allowance and
    ... code of the recipient of the supply = code of the recipient of the other advantage and
    ... the advantage is not the other advantage

    For more information, refer to the reference to the functions of OPM and the heading 'Reason on the relationship between two entities' in help.

  • I can determine the amount of traffic to/from my Internet connection through my Airport due to each connected device (both wireless and Ethernet)?

    My traffic internet, as reported by my ISP, has increased significantly in the past few months and I would like to determine where this increase. Devices that potentially connect via my Airport are:

    Wireless:-2 iPad, 2 iPhones, iPods, MacBook Pro

    Ethernet:-desktop HP, Swann CCTV security system.

    Unfortunately, airport routers provide no information on the use of the data of the connected devices, or the product itself.

    I'm not aware of a 3rd party application that would do exactly what you want... but someone else may know, and if all goes well they after.

  • Programmatically determine the PCI device ID

    Hello again all you lovers forum useful!

    I am writing an application for exit to and read entry from ARINC PCI card, specifically the ICAN-530 of GE Intelligent Platforms.  Now their LabVIEW drivers and the documentation is pretty good, but one of the things that I have a problem with is how to determine the ID of the Board of Directors.

    The documentation on this Board ID is marked "for PCI devices, this Council number must match the device ID assigned when the installation of the API and the corresponding device has been installed."  I'm sure that I have discovered this using MAX, but what I really want is to determine if the laptop running my application has this card special in it ARINC and if so what is its device ID, by any program without the user to select or install MAX, etc.

    I hope it's doable, but I failed to find the right screw looking through this forum and in the pallets of LabVIEW.  If someone could point me in the right direction (or definitely state that it can be done programmatically), I would be very grateful.  :-)

    Thanks in advance!

    -Joe

    Just in case where someone else finds this useful thread in the future, I got the following response from GE Intelligent Platforms (who I bought the card), that indicates there will be a relatively simple way to reach my goal by using the LabVIEW drivers.  I have not tried so I can't guarantee its effectiveness, but it sounds good.  :-)

    If the only GE avionics installed is the ICAN-530, he would have no problem invoking AR_Board_Init until you encounter a status of passage; However, if there are other cards installed AND the distribution of the CIS - x 30 - SW is installed on this host, there is a mechanism to check room types.

    The AR_Query_Device of VI VI provided in CIS - LV Version 4.10 (latest version and probably the one would have received you if purchased with the ICAN-530), can be used in the following sequence to check such allocation device number on your system without actually opening a session and during the initialization of the Council.

    (1) call AR_LoadDLL.vi with the set control system Type to be 'CIS - x 30'.

    (2) call AR_Query_Device.vi in a loop (BoardIDIn control incrementing from 0 to 15) until the indicator of Type of card is returned in 26 (type for ICAN-530) AND the errorOut.code '1 '.  The BoardIDOut indicator will be the Deviceid for the ICAN-530.  Council for the VI types are described in the online documentation and printed for CIS - LV live.

    (3) If you will be running your application, you can just go forward on the basis of the VI AR_LoadSlv and waive AR_Board_Init (as AR_Board_Init is just a combination of AR_LoadDLL and AR_LoadSlv).

    (4) If you plan on using it to work with any other type of Council other than a CIS - x 30 Board, you must call AR_UnloadDll.vi to remove the library API CIS - x 30 memory.

  • How to determine the type of device programmatically

    Hello

    I think I need determine the type of device (IE. Bold, Curve etc.) in order to use the appropriate images.  I can't find a api that indicates to which device the application runs on... could someone point me in the right direction?

    In addition, is the type of device, the best way to do it... or use the width of the display or resolution and choosing him the appropriate icon a better idea?

    Thank you

    check the DeviceInfo class.

    I use the screen resolution to determine the size of the icons. I use two sets of icons, one for the kid, one for big screens.

  • Determine the device model

    Hey,.

    I just have a small question. I am developing an application and I want to assure the compatibility of some models (eg. 9550, 9530, 9700 (a). Is there a way to determine the version of the OS and the Version of the model of its blackberry through the JDE access?

    Use the DeviceInfo class.  DeviceInfo.getPlatformVersion () to get the BONES and the getDevicename() to get the model of the device

    HTH

  • I signed up for photography CC, loaded on laptop main, when installing on my ASUS Transformer to only LR5.7 not CRD.  Determine the latest version that a device can run install?

    I signed up for photography CC, loaded on laptop main, when installing on my ASUS Transformer to only LR5.7 not CRD.  Determine the latest version that a device can run install?

    Yes.

  • a trick to find the drivers for "unknown devices".

    I see a lot of messages on the forum in which users try to find the drivers for "unknown devices" in the Device Manager.  That's how I usually go on the search for drivers for these users.  I thought that the community, this may be useful.

    I use a site called pilot identifier.  However, I do NOT use the stand-alone application.  I'm NOT suggesting that do you.  I have not used the app, so I can't speak to its usefulness.

    I use the site to determine exactly what is the material element.  To do this, the site doesn't have a search function, I use a updated Google search the.  I will now give the steps with examples.

    First of all, you need the hardware ID for your hardware.  To locate this information, follow these steps.

    1. Click Start, type "Device Manager" and press ENTER.
    2. Look for the device that needs a driver.
    3. Right click on the device and select Properties.
    4. Go to the tab "Details".
    5. Select hardware ID from the drop-down.

    Here is an example of a hardware ID:

    HDAUDIO\FUNC_01 & VEN_10EC & DEV_0662 & SUBSYS_103C3047 & REV_1001.

    I then use this Hardware ID and Google to determine what the hardware item by searching for the use of the site: modifier for Google.  So, my research looks like this

    "site:www.driveridentifier.com .

    HDAUDIO\FUNC_01 & VEN_10EC & DEV_0662 & SUBSYS_103C3047 & REV_1001.

    When I go to the first result, it will be, in general, identify the material at the top of the page.  Here is the page for my research above.   The page identifies audio material like "realtek high definition", which is correct because it's the hardware for my sound card ID.

    Now, on this page if you scroll down it gives you a list of all OEM drivers for this piece of hardware.  However, you cannot download the drivers from them without having to install their software.  What I do is so, note the name of the driver for HP.  In this case, you will see that she is named "sp59642.exe".

    Because I can not download the driver from the website, or even be directly connected to HP's Support site from there, I still use Google.

    This time, I use a search of "sp59642.exe" in Google, which returns this page as the first result.

    I can't always find the executables that are listed by pilot identifier.  For example, I can't locate sp59660 or sp59662 who are both on the same list.  So it may take a few tries to find a driver, but I had some success using this method.

    I hope the community finds this useful tip.  Have a great week everyone!

  • How to use NIDAQmx to determine the number of lines correlated DIO?

    How can I used NIDAQmx to determine the number of correlated DIO lines that supports a device?  For example, the NI6225 supports 8 correlated digital of/s lines while the NI6229 supports 16 correlated digital of/s lines.  How can I used NIDAQmx to determine the NI6225 supports only 8 lines while the NI6229 supports 16 lines?

    I moved this question from a previous thread.

    Thank you

    Ian

    Here is a code snippet that implements the regular expression detection:

  • 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

  • Determine the number of traditional DAQ hardware using Labview.

    Hello

    Anyone can answer the question:

    Regarding materials traditional DAQ, for example the DMM OR-4060, how

    can I programmatically determine the number of device which can be seen in MAX?

    With the help of Labview 8.5, I looked into the following function libraries:

    NOR-DMM

    VISA

    NOR-ModInst

    None of the libraries above seem to provide access the number of traditional DAQ hardware

    property, which is automatically assigned.

    Background:

    I have a 18 PXI chassis containing 2 DMM, in housing 3 and 14.

    The DMM may be a mixture of type OR-4060 or NOR-4070.

    The system is controlled by a Teststand sequence employing IVI - DMM

    steps.

    When you set the IVI logical name step, I am referring to IVI device defined Sessions

    Max - rutime determined.

    Labview VISA functions using I can determine the model, i.e. 4060 or 4070.

    Because the DMM just locate into the slots 3 or 14, then the devices NOR-4070

    are accessible using the following descriptors of resources: PXI1Slot3 or

    PXISlot14.

    (The 4070 is compatible DAQmX.)

    So for devices OR-4070, I can predefine 2 Sessions of IVI device, knowing

    It will be sufficient for all occasions, when I run my Teststand sequence, which will be

    determine what device session to use at run time.

    But I'm stuck for the NOR-4060.

    At the Session of the device, I have to give a descriptor of resource the following

    format: DAQ::x (where x is the device number)

    I could create device 18 sessions each reference to a different DAQ::x, but to select

    the good pair during execution, I would need to programmatically determine the device

    number, i.e. the value of x.

    Where my question.

    The closest I came to a solution was an entry of the Knowledge Base that said that the

    Assigned device number would be the same as the slot number, providing the

    Number of the device had not previously configured manually.

    Unfortunately, our device numbers have been changed manually and maybe in the future.

    All popular solutions.

    Gary.

    Hi Gary,.

    Good afternoon and I hope that your well today.

    Thanks for your post and I want to help you solve your problems.

    I don't think there is just a function that you can use to identify and collect information on all cards with your. For traditional DAQ devices in particular I suggest using the Information.vi of DAQ devices get.

    If you look at this link,

    SAL posted an example VI entitled, find dev trad.vi.

    You can get information such as serial number, Dev name and the Base address.

    The assistance of the respective drivers to collect information you could generate an array of strings with the information that you need all the slots.

    Please let me know if this is useful at all,

  • How to determine the USB 2.0 ports on the machine.

    Original title: Usb 2.0 Ports.

    My Device Manager lists 8 Usb ports, including Usb 2.0 2.  How can I determine which ports are 2.0?

    Hello

    To determine the USB (Universal Serial Bus) 2.0 port, you can connect any USB device to each port & check in Device Manager at the same time to check which of the 8 USB 2.0 ports.

    Hope the helps of information.

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

  • The backup failed. "Windows backup failed while determining the location of the libraries of one of the users included in the backup"

    Original title: Windows backup has failed

    Windows backup does not have everything in determining the location of the libraries of one of the users included in the backup. Details: The device is not ready.

    What I found was causing this problem for me has been my dongle wireless Optus.

    It appears in my computer as a CD player.
    Out the wireless internet key and the backup finally started running.

Maybe you are looking for

  • laptop HP 1000-1411AU: graphic design

    I used windows7 32 bit but now converted to 64-bit. 64-bit my chart does not work correctly. My chipest is AMD A68M FCH and 1.48 microprocessor GHz AMD Dual-Core APU E1-1500. Please suggest me how to solve the problem. Thanks in advance.

  • I'm unable to download updates and have the Error 80004002.

    As in the title.  I'm unable to download the updates and my computer freezes on "download of update 1 0f 33'."  Would appreciate any advice.

  • Issue scan Photosmart 7520

    The cycles of scanner on about every hour. Is this normal and if so is it possible to stop it.

  • Cisco ISE 1.4 - guest access

    Hello world We use the ISE 1.4, now, we want to use the guest access ISE Module. I created the user invited on portal of the sponsor. Now, how can I configure authentication and authorization policy? I want to verify the user. Thank you.

  • PS3 IOM on LOCK handler

    HelloI created an EventHandler in IOM on event LOCK. I followed the same procedure to create anything like the other actions create, edit etc. The issue I'm facing is that my custom code isn't triggering. Based on the newspapers, I learned to know th