Get custom device name of in Sub VI

Hi all

I write an error handler that creates log files for any errors and warnings that are generated in a custom device fault.  One of the pieces of information that I would like to include in the file is the name of the custom device the error handler is incorporated in (because I run multiple devices customized in the same project).  I tried various classes of property and refnums different nodes, but I was not able to find something that works.  Is the closest I got to get the name of the VI incorporated in my error handler.  It is of course very little use because of custom device file naming structure are always the same, (the error handler is still in the RT pilot VI).

If anyone has a method to get the name of the Custom device of in a Sub VI of the custom device, your advice would be greatly appreciated.

Thank you very much

GSinMN

the device point reference is passed into the custom device. If you the wiring in the VI, you will get the custom device name

Tags: NI Products

Similar Questions

  • Best way to pass the name of the e/s DAQmx channel Veristand 2011 Custom Device?

    I'm building a custom device that will run a DAQmx task on the target of RT.

    I use VS2011 and alsoSimple custom device tool, which, at this point I'm not sure if it can work under VS2011...

    I created the fine libraries and custom device (a PWM input called InputPWM) has added to the Explorer from the system.  Running it returns the following error when I deploy:

    -----------

    LabVIEW: Type VI reference is not part of connector of VI.
    =========================
    NEITHER VeriStand: Open VI reference in Custom Devices Storage.lvlib-> pen device reference (Interface HW) .vi-> Custom Devices Storage.lvlib:Initialize Device (Interface HW) .vi OR VeriStand Engine.lvlib:Initialize Inline Custom Devices.vi-> NI VeriStand Engine.lvlib:VeriStand Machine.vi engine-> Engine.vi NI VeriStand Engine.lvlib:VeriStand-> NI VeriStand Engine.lvlib:VeriStand .vi engine Wrapper (RT)
    c:\NI-rt\VeriStand\Custom Devices\InputPWM\InputPWM Engine.llb\InputPWM RT pilot VI.vi

    ----------------------

    On the console, it says that the error is 1026, LabVIEW: Refernece VI is not valid.

    I suspect that a potential problem is that I used a DAQmx e/s in the Configuration.ctl and the InputPWM RT pilot VI.vi in the framework can not deal with this type. So my questions:

    -What is the easiest way to pass the names of e/s to the custom device? For a quick test, I could go to hard code, but a more generic solution would also. Should be based on the address for the e/s MAX? Do I have to create the ctr under the DAQ hardware in VS?

    - or said by the way, is there a way to review these screw frame to see where the questions is, as you would with LV - RT?

    THX.

    L.

    If you use the tool of easy custom device, just put everything you need inside the cluster configuration data and these data will be in the home page of the custom (for the user to set) device and be available at runtime in the RT device custom code.

    You could have them type the name of the DAQ card and have an array of names for the channels to use. You then create the task running. or something like that. You like.

  • I get the message 'the' device name' cannot be stopped because a program accesses still it."when using safely remove hardware program.

    Trying to read an external drive "Xcraft", by chance the power supply cable was disconnected. I ' v ereconnected the cable and try to remove the device using the ' renove safely» The unit is not stopped after selection and | I get the message 'the' device name' cannot be stopped because a program is accessed again. ' Y at - it patches or wrap-around work. Just, I can't access the drive. Appreciate any help.

    Try this and see if you can get it to unlock. If it does not just try to restart your computer without USB drive.

    The download is from Microsoft so it's safe!

    Good luck!  Please rate me upward if you find my post helpful. Thank you!

  • Changing Z10 blackBerry device name gets the error message

    Hi, I'm not sure if this is the right place for newspaper bug?  I don't see any bug report feature on z10 device similar to the older versions of the operating system, I have to raise this issue here.

    I went in my device settings - 'About' to change the name of devcie for a description more usability.  The default when registering on Rogers was 'BLACKBERRY - 54 A 8' for my device.

    I tried to change 'Mike z10' and after an attempt to save, I get the following error "device name not valid - have chosen you an invalid name.  A devcie name must be alphanumeric and may contain '-'and'.', but not as the characters of the first or the last and '.' can only be used as part of a complete domain name. "

    I don't think I'm violates all the above statement, however, it doesn't let me save?  I think this could be a bug?

    Mike

    It worked.  Thank you!

    May be a suggestion to the State in the error message that the name must not include space because it does not currently.

  • change device name of user/pass to customer (agent-msync dm)

    Greetings,

    When I download the cab file lite Oracle and install it on my handheld I wonder about the user name and password. Once I have them enter the device successfully connects and records with my server. How can I change the username and password of this device later in the future on the client, if for example someone else gets the device? is it possible to change the username and the password of the dmagent and msync utilities that seem to be saved?

    This is possible thanks to an interface of code or c#?

    Thank you

    From now on, the device is intended to be used for a single user.

    10.3.0.3.0 will be a device sharing feature that i.e. the device can be shared between multiple users. If you can't wait until then, you can try this - save the credentials via msync.exe and then restart the device.

  • Custom device error VeriStand-307603: no specified main page?

    I get the 307603 error when I try to add a custom device, I developed a VeriStand project on a client computer.  The message error window States:

    «Error 307603 occurred at Custom Devices Storage.lvlib:Initialize New Custom Device.vi > Custom Devices Main Page Data.vi Storage.lvlib:Get.»

    Possible reasons: NI VeriStand: the required custom device doesn't have a specified master page. Contact the creator of custom feature to correct the error. »

    I get this error when you add the device custom VeriStand on my development computer; only on the client computer.  I tried to copy the custom device built on top of the client computer and the custom device of source based on the customer's computer.  I also have three other devices custom that I developed that work fine on the same computer, so I don't know why it does not work.  I checked the specification of the build configuration to ensure that the VI home page is included in the source files, and to generate test preview shows only the custom device LLB and the XML from the file in the build directory, as expected.  The XML file is also oriented the correct path for the homepage VI and the GUID in the XML is the GUID file matches in overall search GUID variable.  I can't think of anything to check.

    Development computer:

    Windows 7, 64-bit

    LabVIEW 2011 SP1

    VeriStand 2011 SP1

    The client computer:

    Windows XP SP3, 32-bit

    LabVIEW 2011 SP1

    VeriStand 2011 SP1

    Everybody knows such a question or give me additional troubleshooting tips?

    I got it to work, but I don't know exactly what the problem was.  I made a copy of the part of the XML file that adds the device custom menu right-click and commented of the original, then edited the part I copied it to give the device custom a different name in the menu.  It worked fine on my development computer at the time I made the change, so I thought it was OK.  I just went and restored the file in the original version and now it works on my customer's computer.

  • Asynchronous custom device fails to stop

    While I was developing a custom asynchronous device, I came across a problem with the cancellation of the deployment of the .nivsproj I created to test the custom device.

    The custom device would send the error: -307730 Error Message: NI Veristand: one or more asynchronous custom devices did not close correctly and has been abandoned by the Veristand engine.

    I decided to do some troubleshooting for what could be wrong with the custom device by creating a separate custom device using the custom device model. I left completely intact model and it has deployed to our machine pharlap. When I canceled the intact custom asynchronous device it gave me the same error as above.

    I use Labview 2010 Professional version 10.0f2 development system, NI Veristand 2010 for a complete system of development and deployment of the .nivsproj on a licensed machine Pharlap.

    Sorry for the late reply.

    Zach-H by using simple device custom you provided I was able to create a custom asynchronous device that was able to stop. This allowed me to insert instructions printed in the two devices to help out what was causing the unit to raise an error when stopping.

    The culprit seems to be the NI VeriStand - Get loop Type.vi. The type of loop is never defined in the initialization.vi or the main.vi of the device model tool customized. So, when the RT pilot ran VI.vi the Type.vi loop get it would exit always false for the clock of the device to use and never use the correct name of the device clock. Without the name of the unit's clock he would never get a reason for reactivation.

    I forced the vi to use the clock of the device listed in the custom device model tool and I was able to shut down properly.

    TimothyA, you are right about the features of the measuring device. Even with the error of abnormal termination, the meter continues to operate normally after each deployment.

    Thanks for pointing out the problem with no channel being added to the measuring device. I'll make sure the custom device I develop handles the case where no channel, input or output, are added.

    Thanks for the help.

  • Write to channel outside custom device

    Hi all

    I am writing a custom device to control some aspects of my definition of system (more specifically another device custom).  I can't solve this problem because I can't find a way to write about a VeriStand channel located outside my custom device.

    Help to get channel reference data (which I usually use to get a data reference so that I could use the channel for the data set Reference.vi) says expressly that I can't get write access to a channel outside of my custom device.

    Is it possible for me to get write access to a channel outside my ring custom?

    I realize I can create system to the output channels of my device custom maps, but I'm not crazy a whole bunch of mappings of system because they are not very visible, and I would like that the user only need to use my configuration pages.  I also realize that it's probably possible to create these custom mappings by my setup of device programming, but I was not brave enough to venture down this road again...

    I use VeriStand 2011 SP1 and LabVIEW 2011 SP1.

    Thank you

    Chris

    Project engineer

    Certified LabVIEW Developer

    BaseNodeType is part of the Assembly SystemStorage, that something is used internally and is not intended for use by the public.  The publicly documented API is the API of ZFS, which has documentation available and a little easier to use.

    In the ZFS API, there is a class called "Utilities" that has a (Source channel, Destination) AddMapping method and a ClearMapping(Channel Destination) method.  These work as expected and disable the mapping entirely (not only the creation of an invalid mapping with value null, like your screenshot).  It would be better to add and remove mappings.

    However, if you want to stay with your existing code, I think you can accomplish what you want by removing the method "SetDataSourceValue" and replaching with a method "RemoveProperty.  The name plugged into "RemoveProperty" will remain the same ("DataSource").  This actually completely erases the mapping of the string instead of remapping it on channel zero.

    Kind regards

    Devin

  • EMail address added to < < my device name > > < < my device name > > now using < < my mailadress (identical to the Apple ID) > > for FaceTime and IMessage.

    My iPod touch get now and then next alert message due to change on my iPhone.

    EMail address added to < < my device name > > < < my device name > > now using < < my mailadress (identical to the Apple ID) > > for FaceTime and iMessage.

    Why I get this message? iPhone is disabled due to my work offshore for two weeks, but the use of the iPod touch is allowed.

    What is my apple ID used on other devices with the same name as my iPhone?

    I would be happy if anyone has an explanation of why I feel this strange behavior.

    When you connect to FaceTime or Messages on another device, another peripheral other device using this same ID will get the message that has been signed to. Some iOS (and OSX) update log for other devices will get the message when that happens.

    You said "by reason of change on my iPhone"

    What has changed on the iPhone?

  • How can I get my device to the Profile Manager list to a .csv file?

    Hello

    I have Apple Profile Manager configured as my MDM solution and I have created dozens of groups of devices for about 500 aircraft.

    Now, I need to get a list of my devices (names, serial numbers and groups) for a file that I can read and edit with Excel. As a ratio of registered MDM devices by device groups...

    I've not found tools in the server itself for this report. I looked on the internet and I managed to run a console command that created a .sql dump of the database, but this is where I am stuck. I can't seem to find a way to correctly convert this .sql file into a .csv or .xhtml or whatever it is readable.

    Can someone help me how to do this?

    I've got covered you.  You must connect to the database and clear the records you want.  It's easy.  Follow these steps:

    1: connect to the database

    sudo psql - U _devicemgr d devicemgr_v2m0 h/Library/Server/ProfileManager/Config/var/PostgreSQL

    This allows you to enter the interactive shell.

    2: select the database you want to interact with

    \c devicemgr_v2m0;

    3: dump all the data on your devices.

    Select * from devices;

    4: If you want the names and serial numbers, use:

    Select "DeviceName", "SerialNumber" of devices;

    5: when to leave the shell

    \Q

    Many data are there.  Be careful.  Don't use that selects them.

    Reid

    Apple Consultants Network

    Author of "El Capitan Server" - Foundation Services: available exclusively in Apple iBooks Store

    Author of "El Capitan Server - Collaboration & control": available exclusively in Apple iBooks Store

    Author of books of Yosemite server and server Mavericks

  • Remove the multiple VirtualBench device name

    Hello. There is a problem need advice.

    The PC had been link with some Virtuabench, and it remember its device name even if it had not been connetced. This causes the tech lab get confused and often choose the wrong device. Somethimes the Virtualbench had already been hook upward with testing circult. This will result to return the Virtualbench to verify nom_peripherique is not possible.

    Is there a way to remove the unwanted peripheral VirtualBench in the list?

    Thanks and greetings

    ZachHindes wrote:

    If the device is no longer connected, you can remove it by calling the 'delete device' API (http://zone.ni.com/reference/en-XX/help/374540C-01/lciviref/remove_device/). It should be in the range of VirtualBench under "utilities".

    Ugh, I broke the link, and I can't fix it.  http://zone.NI.com/reference/en-XX/help/374540C-01/lciviref/remove_device/

  • How to integrate model of custom device controller

    Hello

    I now live a labview including 18 sub controller model, and I am trying to run this controller on RTOS VxWorks, through customized device model.

    1. when I tried to run a model simple controller (ex, a controller with 3 ~ 4 void / screw) on RTOS VxWorks, I just put simple controller in RT Driver.vi model, and then the build and deployment succeeded.

    2. then, I did it with my model of labview in the same way above controller, but I couldn't even build my model controller labview. I don't know why, but the build process stops at the initialization stage. I think that this problem will appear when there are more than 3 ~ 4 sub vis are added under the custom device project.

    Any ways to use a model of controller labview instead of just put a model in RT Driver.vi?

    Now, I managed to build my model labivew, I saw the light of the compactRIO blinked, which measn the connection is ok by CAN - Bus.

    But it's still weird and not possible to build my model at a time. In addition, cannot again build the custom devcie just before successfully built after the addition of two functions simply.

    In any case, the solution to my problem is as below.

    For example, my cruise controller written in labview consists of 3 simulation systems arrive.

    Each system to arrive includes several subsystems.

    First, create the model after adding one of 3 major subsystems. (In this case, I never had errors in the construction of models of labview)

    Secondly, if the first step is ok, add one of the other 2 systems come in the custom device and then build again.

    Thirdly, add the remaining subsystem in the custom device and establish the entire model and deploy it to the target.

    With three steps above, I can still build devices customized successfully.

  • 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.

    ++

  • 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

Maybe you are looking for

  • all used bookmarks appear in a drop-down list to the right of the bookmarks bar, now they are not

    All my favorites appeared in a water drop down automatically to an icon at the right end of the bookmarks bar. These were not only the additional toolbar bookmarks, but all the bookmarks you'd get to go to bookmarks in the menu bar. Now all I have is

  • Advanced HD call VoLTE Update 1.0

    This update was successful; However, most of the time when I see the camera in gray icons and when I select the I get an error message that my signal is too weak. However, sometimes they were active, and after that my brother has updated his Droid Tu

  • Windows media player library

    My media player library does not allow me to delete files and it always trys to update. There is a folder called D:, users, rodger, videos that no longer exists, but it won't let me get rid of it and I have a full library of icons that point to this

  • Updates install error 779

    original title: trying to appropriate error message during the installation of updates I have error #779 .this which is it and how can I get rid of it

  • SyncToy 2.1: Problem opening a PPTX when copied

    I use SyncToy 2.1 (32-bit) to copy files in bulk (daily) from my USB on my NAS. I noticed that only the PPTX files have difficulty to open the destination folder, but are very good on the source folder. Other files such as PDF opened very well once c