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.

Tags: NI Products

Similar Questions

  • UDP read too Long timeout, Async Custom Dev fail Shutdown

    Hello

    I've got a simple custom UDP for VeriStand receiver device that uses a timed loop. She has an infinite timeout so that I can listen on port constantly. I cancel the deployment every time I cause an error: 307730 Error Message: NI Veristand: one or more asynchronous custom devices did not close properly and has been abandoned by the Veristand engine.

    Does anyone know how to stop the function Read UDP when it expects a package? What's doing VeriStand when she replaces this behavior, for example he closes the network connection, as the unit cancels? The "Stop.vi" of the device model custom runs?

    Similar question for Visa Read with a long time (> 10 s). VeriStand closes the Visa Session? VeriStand just kill the timed loop and leave the rest of the finishing of custom device?

    Please note that if I shorten the timeout to 1 s or less the custom device can cancel the deployment without any problem.

    Thank you

    Brent

    Brent,

    You should have a way to interrupt your UDP activities to check the system status. Open UDP will create the buffer to the data to be received on this port. As long as reading occurs to clear the buffer before too much data overruns the buffer memory capacity, then you should be fine. Leaving a deadline of waiting-1 loop which blocks it is why VeriStand is having to stop the loop.

    You should have a case of time-out period for your operations of UDP/TCP for the periods of low activity in order to check a channel to shut down the device custom.

  • Flashing v2.2 to flame does not work: Gecko pushing the device failed.

    My flame won't take the production version 2.2: https://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-b2g37_v2_2-flame-kk/

    Before you start to blink, I installed v188 base image. I repeated the process several times, all with the wire and a normal USB cable.

    Am I doing something wrong, that is, should it work? Or is the 2.2 build flawed production? STH. anything else?

    Details:

       $ sudo ./shallow_flash.sh --gaia=gaia.zip --gecko=b2g-37.0a2.en-US.android-arm.tar.gz
       Are you sure you want to flash
       Gaia: gaia.zip
       Gecko: b2g-37.0a2.en-US.android-arm.tar.gz
       to your Device? [y/N]y
       ### Waiting for device... please ensure it is connected, switched on and remote debugging is enabled in Gaia
       ### Restarting adb with root permissions...
       adbd is already running as root
       ### Remounting the /system partition...
       remount succeeded
    
       ### Stopping b2g process...
       ### Processing Gecko: b2g-37.0a2.en-US.android-arm.tar.gz
       ### Untar b2g-37.0a2.en-US.android-arm.tar.gz to /tmp/shallowflashgecko.00iXx8EkcRhd ...
       ### Pushing Gecko to device...
       ### Cleaning Extra System Files ...
       ### Cleaning Done.
       ### Cleaning Extra Gecko Files ...
       ##### Removing /system/b2g/distribution ...
       ### Cleaning Done.
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/dictionaries/en-US.dic -> /system/b2g/dictionaries/en-US.dic
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/dictionaries/en-US.aff -> /system/b2g/dictionaries/en-US.aff
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/components/components.manifest -> /system/b2g/components/components.manifest
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/ua-update.json -> /system/b2g/ua-update.json
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/platform.ini -> /system/b2g/platform.ini
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/crashreporter.ini -> /system/b2g/crashreporter.ini
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/libmozsandbox.so -> /system/b2g/libmozsandbox.so
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/omni.ja -> /system/b2g/omni.ja
       ### Failed: Pushing Gecko to device failed.
    

    Seems Virtual Box was to blame: use the scripts to upgrade from a virtual machine of Xubuntu. After migrating to VMware player, things went. As reported by other institutions, Virtual Box has problems of stability with the USB communication.

  • Multi-threaded custom device

    Is it possible to create a custom multithreaded device?  I want to create a client-server architecture, somewhat like the http://zone.ni.com/devzone/cda/tut/p/id/3098 example in a custom device.  The only difference would be that I would like to make the series of read/write in the high priority task.

    Thanks for the help!

    -Ryan

    Hi Ryan,

    This should be possible if you use a custom asynchronous device. The curls will then run in their own thread and do not affect the execution of the primary control loop. Make sure that there is enough time sleeping in your loop of high priority. Note, however, that put communication series in the loop of high priority will negatively affect your determinism.

    For more information on the Veristand engine and the custom device types you can choose one, please see the following:

    Understand the VeriStand engine

    Creation of custom devices

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

    ++

  • Choose CPU Inline Custom Device

    Hello!

    I wonder if it is possible to assign a Custom inline device to a specific processor. I know it's possible to do a custom asynchronous device.

    I developed a custom device inline, calling an asynchronous vi. I can affect the heart for the asynchronous part, but how to choose the kernel for the part online?

    Thank you...

    Hello, I guess that the online part is executed from the thread VeriStand, then the kernel is involved by the call control loop and cannot be changed. But maybe I'm wrong?

  • New device failed, HD Audio after installing updates to Win 8.1

    Hello.

    I have installed recent updates from Toshiba, exactly:

    * 06/02/14 display nVidia Windows 8.1-64 Bit 9.18.13.2660 World Wide disk *.
    * 06/02/14 display driver Intel Windows 8.1 - 64 Bit 10.18.10.3308 World Wide *.
    * 06/05/14 gas station Toshiba Windows 8.1 - 64 Bit 2.6.8 world wide *.
    * 06/02/14 Toshiba Audio Enhancement Toshiba Windows 8.1 - 64 Bit 2.0.15.4 world wide *.
    * 06/02/14-key Toshiba utility function Toshiba Windows 8.1 - 64 Bit 1.1.0001.03 world *.

    and one of them has forced the creation of a new audio device, fails with 'STATUS_DEVICE_POWER_FAILURE '.

    I tried to remove it (and uninstall related drivers to) the device, but it reappears if I do the new hardware detection.

    What is?
    The drivers are Microsoft, 6.3.9600.16384

    Thank you very much
    Marco

    Hi Marco

    As I can see from another thread, you Satellite L50-A-1CU. According to the specifications of the laptop this laptop was offered with pre-installed 64 bit ML WIN8.1.
    Preinstalled OS contains all the necessary drivers, tools and utilities, so I want to ask you if there is a problem with the feature.

    Please don't get me wrong, but I use laptop 4 years but always with the original substance of preinstalled and everything works perfectly so I don't see the reason to change anything if the machine works well and pre-installed OS is stable.

    One last thing. Do not use the Microsoft drivers. Some of them are offered as optional Windows updates. Don change anything. Use the original Toshiba drivers only.

  • MTP USB device failed to install

    During the installation of the driver the USB MTP device fails. Four of the five categories work fine, but it fails every time.

    I'm not the only person having this problem, but I can not find this question on the support forum.

    Should I send the phone to USCellular?

    Should I send the phone to Motorola?

    or is there a solution for this on Microsoft or Motorola?

    Please notify

    Motorola or someone who has an idea on how to solve this problem.

    Question about USB drivers you have installed this driver on your PC:

    http://www.Motorola.com/consumers/v/index.jsp?vgnextoid=bda09ec8009a0210VgnVCM1000008806b00aRCRD

    Driver USB Motorola 5.2.0 with MotoHelper...

    Poko

    Published by: Poko... you may need to uninstall the driver, reboot your PC and then reinstall USB with MotoHelper driver. Do not connect your phone until the driver is completely installed... try to reboot your PC before connect you your phone via a USB cable.

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

  • I have problems with of the Subvi after the use of customized device model

    I used to start my machine personalized customized device model and I got success in the deployment until I started to do more complicated the Subvi.   I am currently trying to convert low FPGA and high ticks to the duty cycle, but for some reason when I add it to the RT VI "Data read of HW" driver, it seems to cause a downtime... ideas? Is a circuit agree? I have added a time delay but I am still having problems. It is a device online, so I'm suspicious of it hogging resources, but am not sure.

    Attached images are meant to be read like this:

    1. the case of the RT pilot ReadDataFromHW

    2. it's the Subvi calling ToDutyCycle SIMStimPWMSubVI

    3 ShiftRegister.PNG is inside the Subvi.

    As a robotician I celebrate early and often (usually by a failure or two...), but it seems that the answer was to transform fundamentally the While loop for a loop with a count of 1 and then remove the additional elements to ensure that each shift register has that one and then right click on the shift registers and convert at the Feedback node...
    I was able to deploy to VeriStand as a custom device and it runs and calculates the factor of use with no problems. WOOHOO! Where - what is celebrate button!

  • Why my custom device break only when VeriStand trying to run it?

    Hello

    I have a custom device, he worked for some time now, today, I made a few changes to add some features more and now VeriStand tells me the RT pilot is more executable.

    I have not change my build configuration or add any functionas that could bring in an external DLL, or something that could link incorrectly.

    Any ideas of how I could go on this shrinking.  The problem is that when running in VeriStand.  Built LLB has no problem, the source of the development has no problem, it's only when VeriStand tries to deploy there is a problem, so there must be something that is not bound correctly Yes?

    The system isn't RT, it's just deploy on Windows using a SMU.

    I am not sure the exact cause, but I ended up simply remove parts of the code piece by piece pilot to refine what was causing the problem. It turned to be a VI of debugging I used several times before in various projects, but which contains the string "call" LabVIEW primitive, but set apart from that, it's just a simple string manipulation.  So I don't know if it was just a few cases of random edge that occurred when running under code basic LabVIEW VeriStand clean, but for some reason, he broke the driver VI.

    So, solved the problem, but the cause, I can't really say.

  • 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

  • How to detect the channel delete event in a custom device

    I am creating a custom device and want to detect when you press the button Delete (X) in the system browser.  This is so I can increment or decrement a counter in a folder (where the channel is under).  I saw no option in UserEvent loop options.  How do I detect that a channel is deleted?, I'm sure it's easy, but I can't seem to understand.

    Thank you!

    I recommend usually do not do that... If you can avoid it. For example the parent folder can do if everything is just a child get point-> the size of the array to count channels rather than storing a property that could get out of sync. I always try to design my devices do not store the property values for things I could go get.

    That being said... Sometimes you don't have that. You want an actionviondelete: https://decibel.ni.com/content/docs/DOC-30447

Maybe you are looking for

  • Removal of previews in Photos

    Hi all. My Photos (Yosemite) program currently uses not least 135 GB. He says I have 15,000 images, but, in fact, I have - at most - about 5 000. I used a program to remove duplicates, but it had little effect. I think that the issue could be with th

  • Several legend on the chart

    Hi all I make a program to display the number N of parameters on a single graph. I managed to do it on my test vi, but when I code the same coding for my true vi, the arrangement of the legend is not expected. She always jump to the second parameter

  • Channel indicator color

    Hi guys I want to know if it is possible to change the color of the indicator chain twice according to the entry. For example, on the same channel indicator, I want the color red when the result of the test is False and green when the test is success

  • Very often slow wifi internet on my Probook g2 450 brownsey

    device: Hewlett Packard Probook 450 G2 (J4s43EA) operating system: windows 8.1 pro x 64 Windows updates: the latest BIOS: last drivers: on the hp device driver site problem: Very often, but not always my internet speed is slow down. (Web sites needs

  • code 57

    I have tried dozens of times and it just says: failure