NI USB box problem when Labview ends abnormally

Hi all

recently, I had a problem with the NI USB box used in Labview.

I wrote a very simple program and it runs in Labview 2011. Basically, it reads data from a NI USB box and also send data back. According to my knowledge (I don't know if it's good or bad), when the Labview is arrested shortly how it is completed, the USB box should also stop working. But the thing is, when the Labview program ends abnormally, let's say I directly terminate from the windows task manager when it is running, all the ports of the box USB will hold their final statements until I restart Labview and write new values to them.

This could be very dangerous. For example, when I use the USB box to control the power of a power supply, the Labview program crashes (which happens often), the power supply box and USB power will continue to work until I restart the program again. I tried several different types of boxes NI USB on PC and the problem still occurred. So I was wondering if there is no mechanism that prevents such problems or if I can do something programmatically to avoid it.

I thank very you much for your help and your time.

Best regards

Sun

Sun,

Another area where you can have a misconception: LabVIEW is not control USB DAQ device. The LabVIEW program called the DAQ driver program (typically DAQmx or DAQmx Base) and pilots say the OS to send messages via the USB port of the DAQ hardware. So stop the program LV, intentionally or accidentally, does not say the data acquisition driver and the OS USB driver to put the DAQ hardware in a State course.

If you have a configuration where the LV program can be stopped before it can send orders "Safe state" DAQ hardware, you cannot ensure the DAQ hardware stops correctly.

There are a few screws that have been written in LV "watchdog", but even those who depend on the operation of LV execution engine.

You should carefully rethink the entire system, make security issue, one of the main objectives at the beginning.  Most likely, you will find that you need to a separate device, hardware clock or PLC, if the software fails to stop him.  You should also consider whether you need a real-time operating system to avoid some of the problems associated with the standard desktop operating systems.

Lynn

Tags: NI Software

Similar Questions

  • LOGFF triger does not run when customers end abnormally

    Here's a triger to logoff:

    create or replace TRIGGER scott.before_logoff_trg
    before logoff ON database
    declare
    ......

    If customers come out normally, it is executed (just delete some rows in a table). But if the customers is crushed, the triger will not run.

    Is there a way I can run code pl/sql, when a client log normal or abnormal?

    BluShadow wrote:

    EdStevens wrote:

    Antares wrote:
    Thanks for your response!

    I'm working on an application for the edition of map of GIS, which should allow several users to edit the same map. Client A and B change the different parts of the map, but that they would like to see the result of the other. Change operations are stored which will be inserted in the staging table. When a customer edit, he must choose to save or ignore for this time editing operations. If he has abandon the changes, it has no impact on others, because these changes are useful for others, but not very important.

    No effect? Unless Customer B made a decision based on what he saw of A, make a change based on what he saw of A, so he saw has went, destroy the basis of its decision and action...

    Well Yes, as I said above...

    Which suggests that client B can act on something that is not yet truly engaged in the process of the company. This sounds like a serious gap in the business process and therefore the database design.

    Yes, it seems that the question should the cropping - how to allow collaborative editing of GIS data within maps that allows changes to be resistant and modified before to be published?

    This sounds like the O/P is in need of a kind of shared workspace that can be superimposed on an existing map changes without making public changes. The workspace must be shared between multiple users at the same time. Turns in the workspace would be committed and those changes, once accepted (and closed maybe?) must be published in the underlying plan so that everyone can see. If they are not published, they remain in the workspace.

    The idea of catering to an abnormal termination seems largely unnecessary if there is a concept of workspace. If a user ends abnormally, when they reconnect, they may choose to reuse the existing workspace or create a new. The old workspaces that have not been touched for x time could be archived or purged.

    This does not seem withdrawn too far from what the op said here...

    Change operations are stored which will be inserted in the intermediate table

    He thinks that it is mainly a question of changing the process...

    Published by: Bravid on March 7, 2012 15:49

  • Win XP - another problem when support ends

    I know that sounds as drastic [bits of candle], but when XP ceases to be MSN- supported in April 2014, if I need to buy a new pc (which must win 8 pre-installed) after this date and want to install XP from my CD on it to continue to use the old software, there will be a little routine 'Unlock in 30 days' record to cross. This copy of XP has been re-recorded many times, but I think that it will not Activate after legal if there is currently no way of saving him.

    Any ideas, please?

    Specifically, the chances are very high that there will be no all the XP drivers for a large part of the hardware of any new computer you buy in 2014.

    "The end of support for Windows XP will not effect of activation, but rather security updates and telephone support or online." -see, for example, http://www.pcworld.com/article/250774/will_i_be_able_to_activate_xp_after_2014_.html

  • Communication problem between LabView and acquisition of data USB 6259

    I want to monitor a data USB-6259 acquisition using LabVIEW 8.6. However, when you try to create an explicit task (using the DAQ assistant) in order to acquire a signal, I get the message asked supported device found¨. I can see the USB-6259 under ¨Devices and interfaces¨ to the MAX, but when I try to import the configuration data for NOR-DAQmx 8.7.2 in MAX, I get the message ¨Can´t import file configData.nce.  File not found¨. I use NEITHER-DAQmx 8.7.2.  Any suggestions?

    Corneliu

    Hi, Corneliu,

    This question could be generated due to a corruption of database of MAX. Here is a link to restore the database to the MAX.

    http://digital.NI.com/public.nsf/allkb/2C7480E856987FFF862573AE005AB0D9?OpenDocument

    Just follow the steps and let me know if that solves the problem.

    A greeting.

    Jesus.

  • My USB to ethernet adapter works only if plugged into my MacBook Pro. I tried to use to start an expander USB (power strip), but this has not--a problem when you have only TWO USB ports ports! Any suggestions?

    My USB to ethernet adapter works only if plugged into my MacBook Pro.

    I tried to use to start an expander USB (power strip), but this has not--a problem when you have only TWO USB ports ports!

    Any suggestions?

    Juice what 'expander' did you use?

    What model of MacBook Pro?

    This is the Office Mac Pro forum. I asked that your post be moved to the MacBook Pro laptop forum.

  • I can not access my Verizon email on my iPad. I can access the login page, but there is no box to enter the user name. I talked to Verizon support, and they say no problem at their end. Any ideas?

    I can not access my Verizon email on my iPad. I can access the login page, but there is no box to enter the user name. I talked to Verizon support, and they say no problem at their end. Any ideas?

    Macbeth,

    From your description, it appears you are trying to get your mail using Safari to access your e-mail account. Why you do not use the Mail App?

    http://www.Verizon.com/cs/groups/public/documents/adacct/Setup-email-mobile-Devi Ed.pdf

  • I have some problems when connecting my hub USB for Windows 7.

    Original title: Windows 7 & PnP...

    I have some problems when connecting my USB hub (this is PnP)...  I don't know Don t what the issue with windows 7 and PnP´s, but I ´ve read some info about it on the net saying that peripheral soe Pnp will not work on windows 7... So, what can I do?

    Hello

    1. What is the brand and model of the computer/hub USB?

    2. what happens when you plug the USB hub to the computer?

    3 - is it is not detected?

    4. other USB devices work?

    Response with more information to help you further.

    The hardware which are not compatible with Windows 7 will not work with it. However, almost of hardware and software are compatible with Windows 7.

    Step 1:

    See if the USB hub is compatible with Windows 7.

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx

    Step 2: Run the following fix - it:

    Hardware devices do not work or are not detected in Windows:

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

  • Dell laptop 14zxps with windows 7... I get the error code 43 problem when I connect my USB on my laptop

    Hey, I have a laptop of dell 14zxps with windows 7... I get the error code 43 problem when I connect my USB to my laptop... n this laptop is designed in a way where the battery cant b removed... Please help me on how my USB is started again here... Thank you :D

    Try this.

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

  • Bluetooth Windows 7 USB port problem

    Hello

    I use a bluetooth class 1 dongle (manufacturer unknown) with the V 8.00.03 Premium toshiba bluetooth stack and a bluetooth headset. The specifications for the dongle are: Bluetooth V1.2, compatible USB V1.2/2.0

    I have a strange problem when changing the USB dongle is plugged. If I change the dongle on another USB port, searching for devices fails. I tried to uninstall the battery and of course remove device from the bluetooth Manager window.

    Also, strangely, when I plug the dongle on a USB extension on the same port, it does not either. When I put the dongle into the same USB port it works fine as usual.

    I want to change the USB port so that I can get the best reception, like its plugged in to the back at the moment. Also, I want to use the usb expansion for the same reason, to bring out above the office. Oddly, if, as I say, it does not work with the extension (just a regular cable with USB male on one end and female on the other to plug the dongle in.)

    Is this something to do with voltage drop down a cable? And regarding the change of the ports usb is it something to do with ports being installed on this USB port bluetooth only? I don't know exactly how ports bluetooth works, how they settle etc.

    Thanks much for any help.

    Hello

    > Also, strangely, when I plug the dongle on a USB extension on the same port, it does not either. When I put the dongle into the same USB port it works fine as usual.

    I think you're wrong here buddy
    If you use another manufacturer's computer, and if you have problems using it, you should check the page of computer manufacturing support.

    In my opinion the question isn t linked to Toshiba BT stack but to the USB ports on your computer.

  • Micro adapter USB keeps disconnecting when I try to copy the files.

     
     
    Micro adapter USB keeps disconnecting when I try to copy the files.

    Hello

    I have a Micro SD card reader, when I insert my memory card into the reader, he comes and stays there until I try to transfer files to the memory card, or if I run a h2testw test it disconnects.

    Its getting boring, I bought another card reader, but the same problem persists. I tried the drive in my computer and it seems to have worked here, but just on my laptop, I'm having problems.

    Any help will be appreciated, thanks in advance!

    Hello

    1 did you change on your computer?

    2 did you receive an error message?

    I suggest you to check with the other USB port.

    Method 1:

    Tips for solving common driver problems

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-driver-problems

    Method 2:

    I suggest you to remove and reinstall all USB controllers

    To remove and reinstall all USB controllers, follow these steps:

    (a) click Start, click Run, type sysdm.cpl in the Open box, and then click OK.

    (b) click on the Hardware tab.

    (c) click the Device Manager button.

    (d) expand Bus USB controllers.

    (e) right click on each device under the Bus USB controllers node and then click on uninstall to remove them one at a time.

    (f) restart the computer and reinstall the USB controllers.

    (g) connect the removable USB storage device and perform a test to ensure that the problem is solved.

  • Transferred XP hard drive to external usb box. Records showing as empty on Win 7 64 system read external drive.

    I can see the folders but contents show as empty. Visible hidden folders option is checked. This drive was my first drive on my old computer which had XP 32 bit. I took the car and put it in a external hard drive Bay, so I could keep my files.

    Getting a family system Windows 7 premium, I am able to see all records, but very few files. Hundreds of pictures that worked on my old computer are now showing "empty folder" when seen on my external hard drive and the new operating system.
    I tried all the hidden and sharing files options that have been suggested. I do not erase all images on the disc, and now maybe 6 hundreds of photos show with all records showing as "empty".

    Help, please.

    Hi Carlscott,

    Thanks for posting your question in the Microsoft Community forum.

    From your problem description, I understand that you are not able to find the files on Windows 7, after the transfer of files from Windows XP hard drive to external USB box.

    (1) what anti-virus program you use on Windows 7?

    (2) you try to connect the external USB box on another computer and see if you can find the files?

    You can deal with this problem because of the Virus on the disk external drive or USB key. If you use an Antivirus program on Windows 7, it will automatically delete the files infected by the virus.  In other words, that there is a risk of data loss. You may also experience this problem if bad sectors are found on the hard drive.

    Step 1: I suggest you run this Microsoft Fixit and check if it helps.

    Diagnose and repair Windows files and folders problems automatically

    http://support.Microsoft.com/mats/windows_file_and_folder_diag/

    Step 2: Download and run the latest Microsoft security on the computer Scanner and check if it helps:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Step 3: I also suggest to check the hard disk for errors.

    http://Windows.Microsoft.com/en-in/Windows7/check-a-drive-for-errors

    Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data may be lost

    Please follow all the steps and if the problem persists, return back and we will be happy to help you.

  • If I drag and drop an object in a box. When the timeline returns like that, I want the object to remain in the area and restores not where it was originally.

    Hi all, this is my first post here. Very happy to be here.

    I created an interaction by which objects can be dragged and got stuck in a box. Never, I solved the problem when the playhead returned items I looked where I had left. I did it with as2 and never solved the problem which I am sure is easy enough to solve. I remember someone saying something about levels.

    I need to create an interaction where objects are put in a box and they stay there until the interaction ends. Say that the objects are in a room where the user must visit several times in the interaction. There must be a certain number of objects in the room and drag them into a box to get a done message, I want the user to be able to move to another part of my interaction and come back and be able to complete the conclusion and place the objects in the box without reset everything to where they were first encountered user them.

    I have wi

    All advice, tips are greatly appreciated.

    Looks like you need to add programming that 1) stores the x / y locations of the objects since they change 2) uses this information in position to position objects whenever you enter the picture that they are in.

    You should be able to create variables to store the information that is on a layer that extends from the complete timeline so that the data is stored as it is updated and you move along the timeline.  When you move the object update you its position data. Then, in the context where you have objects use you a simple coding to place objects using this position info... something as simple as...

    Object1.x = object1X;

    Object1.y = object1Y;

    If you are still using AS1/2 you would use _x and FLF instead of x and y

  • Satellite C660D - 10 p - USB connect problem Windows 7 64 bit

    Hello!

    USB drive is no longer recognized shortly after the start.

    According to 'Unsubscribe' or 'Edit user' still OK, but even for a short period.

    Have no USB Updat to Toshiba, a controller failure will probably be.

    Can anyone help?

    Harald greetings

    Hi Harald

    Can you please tell us what model of laptop do you have?
    Are you using the original version of OS that you got with your laptop?

    Maybe I didn't understand the description of your problem, but I imagine that the USB ports do not work on your laptop satellite? Right? have you tested with different USB devices?
    When you open Device Manager you will see some unknown devices here or some hardware issues?

  • Problem with LabVIEW

    I met a problem when using the peak detection function in LabVIEW...

    Basically, I load a waveform in VI to detect peaks using the function of Ridge detection. of the waveform, it is obvious that the first peak will happen about 10570Hz...

    Using size 3 subgroup, it detected 1 pic to 10567Hz (correct)

    When you use the size of subgroup of 4, it detected 1 pic to 10569Hz (correct)

    When you use the size of subgroup of 5, it detected 1 pic at 12737 Hz (bad)

    When you use the size of subgroup of 6, it detected 1 pic to 10588Hz (correct)

    When you use the size of subgroup of 7, it detected 1 pic to 10588Hz (correct)

    And using other different sizes of subgroup, the freq agrees with waveform... Why when you use the size of subgroup of 5, it does not give good playback? Is there a theory or a reason for this? or just a bug with the LabVIEW function?

    A VI is fixed and the default values are loaded.

    Appreciate any assistance/advice.


  • Do another counter for usb-6008 VI using Labview 8.5

    I want to create another counter for usb-6008 using Labview 8.5, it is necessary to calculate the two gears simultaneously.

    The best way to proceed is to use the meter.  The counter counts
    signals without having to interrupt the system or use the USB bus.
    When you ask the number of ticks that saw the meter, one
    request is thrown from the CPU to the USB line to the 6008, which then
    request counter "ticks how have you seen?  This number is
    returned on the USB bus, goes to the CPU and display on your
    screen.  Given that the DIO lines on the 6008 are software timed, it is
    no way to guarantee that the data back to the central unit is
    deterministic.  The conceptual difference between software-controlled
    DIO (that nondeterministically returns an entire stream) and a
    meter software-tick-application-controlled (which returns a unique number
    with the number of ticks) prevents us from using the DIO lines on the
    6008. the best way to count more edges is buying more 6008 s.
    Another possibility would be to buy a PCI card to counter such as
    the PCI-6602, who owns 8 counters. Most of the counters we offer in the
    USB form factor is 2 per device.

Maybe you are looking for