Acquisition of data & MDI - Exception after the closure of the MDI child with execution of the task-Daq

Hello

while I make my first steps with Measurement Studio and c# in Visual Studio 2008, I tried to close an MDI child with a running task Daq breast. This throws an exception because the task has already been deleted. So, how can I avoid this?

THX, Peter

Hi Peter,.

Sorry for the delay.

It is normal behavior when the DAQmx task is still running.

You must stop/clear the task before closing the window. It's especially good style to work with only one user interface / window.

I hope this helps.

Kind regards

N. Ralf

BTW:

A good starting point are the DAQmx-examples:

Where can I find examples of NOR-DAQmx?
http://digital.NI.com/public.nsf/allkb/E3BAF6FC4017960B8625755A00525D37?OpenDocument

Measurement Studio installed NOR-DAQmx examples
http://digital.NI.com/public.nsf/allkb/52F5F5EF78AF084286256E0B007FE793?OpenDocument

Tags: NI Software

Similar Questions

  • Save the data before and after the occurrence of a Trigger Condition.

    Hello

    I am worrking on an application that acquires data from 64 channels and performs many analyses.

    Necessary to implement something is recording the data in the event of alarm condition.

    I've implemented datalogging in many previous applications, but this one is difficult.

    I need to save data for a few seconds before and a few seconds after the alarm has occurred in a single file.

    I thought constantly write data to a file PDM and at the same time deleting the old data, until the alarm trigger occurs.

    but I was not able to do, since I have no blocks to remove data from a PDM file.

    I'm looking for the ideal approach to this recording.

    Any help will be appreciated.

    What I have to do this in the past, use of a queue with loss as a circular buffer.  When you get the relaxation, dump you the data in the queue to your file and then save however many data you want after the outbreak.

    For the purposes of the memory allocation, do not use the queue to rinse.  Use rather a Dequeue element inside a conditional FOR loop with a 0 timeout (reading the queue stops when you have a timeout or you read X samples).

  • How to connect dwyer SERIES 629 differential pressure transmitter to the acquisition of data 9219 and read the signal?

    Here is my sensor
    Pressure sensor

    Here's the DAQ data sheet:

    ACQUISITION OF DATA NOR 9219

    Here are my issues:

    First of all I don't know what is LO and HI exactly in the DAQ 9219 material.

    Second, I don't know what pin code I should connect the DAQ sensor signal wire. PIN 4 or 5 pin? The sensor has three pins, and I guess I should connect the other two wires to the power supply.
    Thirdly how to calibrate the sensor. In labview choose voltage in the wizard?

    I'm pretty new in this acquisition of data and I need your help.

    Thank you

    Hi SilasIII,

    Hmm well 3 sons are probably on the ground, the power and the return signal. The datasheet for the sensor says:

    First of all, you need to know which model you have (4-20mA, 0 - 5V or 0-10VDC). HI refers to the return signal, LO essentially means the land of the food that feeds the sensor. Then, you must get the 13-30 VDC supply. I don't think this should be too complicated and can be a simple wall DC power. You can learn how to create a custom in DAQmx scale. I hope that this is a starting point.

    Kind regards

    Eric

  • Missing data in XP after the transfer from one machine to another

    3 xp machines do a restore destructive on a saved data machine xp in 2 files twice, the xp machine, the data are on slow so I put it in another to copy the disk after the machine notes that the data he copied only half and the other half is missing. I was single click copy right and whenever I do more data are missing? Idea of this itn was the first time I work with several types of OS but XP is the only one who did this is there a solution?

    Hi HarrisonLane,

    You can run a check disk on the hard drives & check if the problem persists.

    How to perform disk error checking in Windows XP

    It may be possible to recover the missing files by using data recovery software. There is no Microsoft recovery tool to recover the lost data. However, you can use your favorite search engine and download any third-party data recovery software.

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope the helps of information.
    Please post back and we do know.

  • VERY URGENT. Data in accessible after the system recovery which says - data will not be deleted.

    I did a system restore by pressing F11 on my laptop HP XP Home pre-loaded. The step has asked told me that by doing a restore via this procedure, my data will not be changed or lost. I did not a destructive restore.

    Now after recovering my laptop works very well, however I got two sets of data - much of the imp in My Documents data and personal data to another folder. When I went back to work on the laptop, I was able to access the data that I had the pvt. folder, however, any data that is very Important to me and who was there in My Documents has been moved to a new folder named HP and I can't access it. The capacity of the disk hard has not changed, which means that the amount of hard disk space that has been used before is the same, so it means, no data has been removed. I analyzed the defragmenting drive C drive and can see the report, which said, all data is located in the HP folder, but when I try to enter the folder, it says access is denied.

    During recovery, I haven't used any password, which could help to access this folder, I am still unable to view this file, I tried to use an administrator in safe mode too, still the same message.

    I called HP customer, but after talking with them for an hour, I couldn't find a solution. I called microsoft and they say that they support no more than XP? PLEASE HELP ME. I do not understand when I follow on screen instructions from microsoft themselves, why am I facing this problem? Is it a fault of customers to purchase an original product from microsoft, and then when he has a problem microsoft responds that they cannot help them?

    Since I followed all the instructions from microsoft, I'm in trouble, if at any time it would give me a warning that your data won't be accessible or will change, I would have not been made.

    PLEASE HELP ME, I NEED AN URGENT DATA. I HAVE A FEW PRESENTATIONS MAJOR IN THE COMING WEEK, AND I DON'T GET.

    Most probably, you have just to take ownership of these files.  The recovery process has probably created a new user, who does not recognize the system as having access to this folder.  To do this follow these steps:

    "How appropriate a file or a folder in Windows XP"
      <>http://support.Microsoft.com/kb/308421 >

    HTH,
    JW

  • Data store missing after the reconstruction of the raid array

    One of the players in my raid array has failed a few days ago.

    I had a spare drive in the table so the controller immediately began the process of rebuilding and all servers were running throughout.

    When the reconstruction has been completed (I checked this via the user interface of raid array and the newspaper), I had to stop the server to remove disc defective (not replaceable chassis hot) and when I restarted the server, the data on the raid array store isn't there anymore.  I also checked through the raid controller interface that I removed the (defective) drive and that the table was always in a ready state when he came.

    In vsphere client, when I click on the storage... Add link, the server sees the material but if I click then it tells me that it will be re - format the volume.  See attachment.  I have most certainly does not take the next step and reformat.  Simply, I took the screenshot and regularized.

    I found these instructions, but they are for an older version of ESXi and am unsure if they are correct for ESXi 6.0.0 338124

    VMware KB: Lack of data store after the reconstruction of the RAID disk/LUN

    Here are the steps I should follow?

    If these aren't the right instructions can you tell me the version which is for ESXi 6.0.0 338124 that I couldn't find anything either.

    Thank you

    Hi ThompsG,

    Yes, there are two data stores for the virtual machine located on the RAID array.  The virtual machine itself was stored in a different data store that was not in the raid array.

    I spent about 48 hours last week, including this morning, trying to coax ESXi recognizing volumes, with no luck.  Finally, I gave up and I removed the virtual computer hard drives that were on the corrupt data store.  Then the virtual machine came without problem.

    Finally, since I have everything on these 2 volumes backed up to a cloud provider, I have recreated the two data stores in the raid array and began the restoration process. It is currently running and has about 16 days left to go.

  • Automatically the field value date one month after the date of the day

    Hello
    I have a table called equipment with a field called NextUpdate.
    I need to create a trigger when the data entered into the table, the NextUpdate field value should automatically be on a month since the sysdate.
    I could start there, but I'm stuck... (and tired!)

    CREATE OR REPLACE TRIGGER nextupdate_equip
    Before INSERTING on the hardware
    FOR EACH LINE
    BEGIN
    : NEW.nextupdate: = NEW.sysdate + 30;
    END;

    Thank you

    Use the ADD_MONTHS function:

    CREATE OR REPLACE TRIGGER nextupdate_equip
    BEFORE INSERT ON equipment
    FOR EACH ROW
    BEGIN
    :NEW.nextupdate := ADD_MONTHS(sysdate,1);
    END;
    

    Check this box:

    SQL> alter session set nls_date_format='mm/dd/yyyy hh24:mi:ss';
    
    Session altered.
    
    SQL> select sysdate,ADD_MONTHS(sysdate,1) from dual;
    
    SYSDATE             ADD_MONTHS(SYSDATE,
    ------------------- -------------------
    10/26/2008 08:31:02 11/26/2008 08:31:02
    
    SQL> 
    

    SY.

  • the time of acquisition of data - how to calculate the rate of analog output

    I want to calculate an acceptable rate of analog output, one that is taken in charge by material (PCIe6353), without the rate being changed by the VI DAQmx Timing (sample clock). The final objective is to have a rate of analog output that is an integer multiple of the analog input for precise frequency, since the sinusoid AO's amplifiers, which have a ringtone when AO updates occur.

    According to 27R8Q3YF of the knowledge base: how the actual scanning speed is determined when I specify the rate of scanning to My d..., the rate is revised as needed by calculating the rate of clock / asked for advice, divide the result rounded downwards and upwards in the clock of the Board and use the one that is closest to the requested speed.

    If 'Embedded clock' is selected, which is the result "Council clock.  DAQmx sample clock timebase Timing node - SampClk.Timebase.Rate says 100 ms/s. However, for a rate resulting from the update of 2.38095MS / s, the divisor of the time base timing node - "SampClk.TimebaseDiv" gives a value of 42. 42 x 2.38095 M = 99, 999, 990, where it should be 100 ms/s.

    How to calculate an acceptable rate of analog output is supported by the hardware? I have other plates, in addition, a general method would be appreciated.

    I haven't worked all the details yet but noticed a few things that may be relevant.

    Req AI rate isn't a whole ditch 1E8. It is used to determine the rate of the AO.

    There is no check to ensure that the rate of the AO is an integer division.

    It seems that you have the right idea, but the implementation is not yet there.

    Lynn

  • Acquisition of data using the DAQ card

    Hello everyone

    I need assistance with the acquisition of data of the generator of signals through DAQ cards. I plugged the signal to the SCB-68 generator where the analog inputs of the generator are connected to AI CH5 and AIGRND of the Terminal Board. Then the output of the block is connected to the DAQ card. The maximum sampling frequency of the card is of 250 kech. / s. The problem is for reason that I am not able to see the waveform on the labview. I looked at other examples to find the problem, I am, but I am not able to understand this. I want to be able to choose the sampling frequency. I attatched my code as an attatchment for you all to help me know what the problem is. Any suggestions will be appreciated.

    There is no task!  You have not specified any hardware (i.e. your data acquisition card) anywhere.

    Here's a suggestion.  MAX aperture.  Find your DAQ hardware.  Open a Test Panel.  Implement a continuous sample of N Points to some sampling rate.  Press Run and convince yourself that you get the data.

    Now, while remaining in MAX, to create a task, using the same settings.  Call for example something sensible ("MyFirstDAQTask" is not a good reputation).

    Now, go back to your code.  Eliminate the first two functions DAQmx.  Wire a constant task to the DAQmx Start feature.  See the little triangle down?  Click it, and it should show you the tasks he 'sees', the only one should be the task that you created in MAX.

    Note that 'Samples Visible' is now 'hard coded' in the task.  To get its value back out, you need to put a property node Timing DAQmx after the task start and pull on the quantity of the sample, samples per channel (which, for reasons that escape me, is a Dbl, you need to convert to an I32 before importing it into the while loop).

    Bob Schor

    P.S. Thank you to join your code.

  • Unexpected end of VI after the acceptance of 3 lines of values from a serial port, transmitting continuous data.

    Hello

    I am currently working on the acquisition of data from a unit of 2 balls of hair, installed with a Zilla controller on an electric vehicle. Hairballs allows other devices to the device through a serial port. The option of data acquisition for displays information like speed, tension etc.

    I use Teraterm, a terminal Communicator to start communication with the device of hairballs. After having sailed in the various menus, I can access the DAQ feature that provides data continuously to the status of the various components of the vehicle. I saved the logfile of teraterm (Teraterm - Results.txt). 5B 01 0b C8 03 53 02 39 27 OMFS is, for example, a sample of data from the module of data acquisition.

    When the port is configured to send these data, I close the program Teraterm and run the LabVIEW VI (read and Write.vi series). It accepts 2-3 rows of data (error LabVIEW - 2.jpg In Motion) and then stops. I know there is a message of error involved, but I think that its storage in what concerns the information in the file (this is another problem, I need to resolve, the file is always empty).

    Could someone help me with this problem please. Why the software ends the execution after only 2-3 loops. Sometimes he starts to accept data from the middle (@ 1 0b C8 03 53 02 39 27 OMFS for example) and stops after displaying the it.

    If there is information required please let me know.

    Thanks in advance.

    The error you get is:

    1073807252 VI_ERROR_ASRL_OVERRUN A time-out error occurred during the transfer. A character not read in the material before the arrival of the next character.

    Your buffer is probably full of data.

    See here and here for possible solutions.

  • Start another task process after the user complete

    I would like to have a process task trigger after the task of process 'User' successfully completed.

    For example, scenario

    A user currently has a disability resource. When I allow the user, the task of user process

    is called, and allows the user. After that, I would have my custom process triggered after that task.

    I tried to add my task of custom process in the task of the user as a dependent task, but it is never called.

    Also, I tried to add the custom task to generate task, but it does not work.

    What am I doing wrong or am I missing a step?

    Directions for use:

    Goal: When 1st job process is triggered, the task of 2nd process will be kickoff.

    1. Select the task in process 1

    2. in the task of the process task dependencies tab 1, add the 2nd task in process in the section of the task of the person in charge.

    3. in the task of the 1st task of process responses, select the SUCCESS response and add the task of 2nd process tasks in section generate.

    IMPORTANT: Every answer has its own task to generate. So make sure that you add to the answer that you want the task to process 2 to trigger by.

  • taskSvc.reassignTask () API give do not permissions on the task to all users also.

    Hello

    JDeveloper/SOA/BPM 11.1.1.7

    WebLogic 10.3.6


    I am programmatically reassign a task (which is by default assigned to a group) to a set of users using the following API.


    taskSvc.reassignTask (ctx, task, newTaskAssignees);


    The 'newTaskAssignees' is built for a set of users by ITaskAssignee objects of Type user.


    User ITaskAssignee = new TaskAssignee (user, IWorkflowConstants.IDENTITY_TYPE_USER);

    NewTaskAssignees list < ITaskAssignee > = new Arrayist <ITaskAssignee< ();


    The controllers are usually the current user and other users.

    After the 'reassignTask()' method is called, the task is assigned to all users successfully.


    But the problem is not that all users get the privileges on the task all too.

    Only the current user is able to perform all actions on the task (as redirect, approve, reject etc.)

    All other users do not receive these actions when also looked into the workspace of BPM for this task.


    I tried the following.


    Manually 'release' the task of the BPM workspace by logging in as a user with original permissions.

    After that all other controllers task get all actions.


    Obviously, the task is "acquired" by the current user who is logged in when the API 'reassignTask()' is called.


    So, I tried to call the 'releaseTask()' method after calling the reassignTask() method.

    But when I call the releaseTask() method gives the following exception


    Exception: Action RELEASE task '< taskId >' cannot run the user "abcd".


    I also tried to question the freshly task using the "querySvc.getTaskDetailsById ()" after the call to the reassignTask() method.

    But still get the same exception


    Is there something I'm missing here?


    Thanks for any help.

    Sameer

    This problem is solved.

    In fact, after the output of the task the payload is updated again, which was originally the task that needs to be acquired by the user, and therefore no one else could not perform any other operations on the task.

    So after the task he must be released again.

    Here are a few points we should remember when you work with the BPM API as above.

    1. always question the task using getTaskDetailsById() or getTaskDetailsByNumber() before any operation on it. If it is updated in the meantime, the operation may fail.

    2. after the execution of the operation on the task, we need to release him if we want other assignees to be able to work on the task.

    3. If he is assigned to multiple users or groups, better is worth to acquire the task before calling top transactions.

    4. of course no other operations or payloads updates are performed which may cause the task to acquire automatically.

  • Use of data cell after the upgrade to iOS 10.0.2 has increased dramatically

    Hello:

    I noticed a HUGE increase in mobile data usage by my phone (iPhone 6s) after the iOS to 10.0.2 update.    I had not changed anything since before the update.  A few days after my phone iOS update my more than double to 15 days prior to the cell data update!   I went under a GB to 2.2 GB for two days.  I am only allowed 2.5 GB of my company.   Assist of WiFi was interrupted. I am connected to a wifi most of the time, all day at the office and at home in the morning and in the evening.  I haven't changed my phone usage habits nor have I down loaded new applications.   I also did all the stuff reset once I downloaded the update as turning on and off, hold down home and appears on the sides until that little Apple.

    I looked in the cell parameters section and noticed a few things that consume more data:

    Facebook: I had disabled cell Facebook use.   However, there was a large amount of data used. I also, by habit, only check Facebook when I'm at a known wifi spot as the House or the office.   It was less than a MB before and near a GB of data in 2 days.

    YouTube: Idem, had turned off cell phones and only look at the House.

    Maps - never used but the use of data.

    e-mail-HUGE amount of data used.  Normal use for me. in the past, the amount of data has been a MB.  Now it's 65 MG in 2 days,

    Siri - I do not use Siri as in "Hey Siri" or by using voice commands.  I use it from time to time to the voice on texts.

    AccuWeather.  Even.

    It's just as much as the apps that I use, the rest is electronic mail and stuff systems.   I uninstalled nearly all applications except for the few that I need as my ticket train and planning aps and mail want to stop this.   I won't send any imessages anymore.

    Quite an experience of something like that?

    Yes! I have iPhone 6 - after that the update almost all my data is gone for the month! I do not have Wifi Assist on and I only use data when I'm home and can connect to Wifi!

    I see my iPhone to connect to my Wifi then bounce to the cellular network. I have no problem with my home wifi network. This problem also occurs in the work. In addition, the network at work requires the password to the network - I type in iPhone tells me it's the wrong password, and then it connects. Then it disconnects after 2 minutes.

    I tried to reset the Wifi feature. Help!

  • Writing data to extend the acquisition of data for the sampling rate high file

    These are the tasks that I have to do to take noise measurements:

    (1) take continuous data to USB 6281 Office, in a sample of 500 k (50 k samples at a time) rate.

    (2) save data continuously for 3 to 6 hours in any file (any format is OK but I need to save in a series of files rather than the single file). I want to start writing again file after every 2 min.

    I enclose my VI and pictures of my setup of the task. I can measure and write data to the file continuously for 15 minutes. After that, I see these errors:

    (1) acquisition of equipment can't keep up with the software (something like that, also with a proposal to increase the size of the buffer...)

    (2) memory is full.

    Please help make my VI effective and correct. I suggest to remove him "write in the action file" loop of consumption because it takes a long time to open and close a file in a loop. You can suggest me to open the file outside the loop and write inside the loop. But I want to save my data in the new file, after every 2 min or some samples. If this can be done efficiently without using Scripture in the measurement file then please let me know.

    Thank you in advance.

    This example here is for a single file and a channel, you should be able to loop over that automatically. The background commentary should be the name of the channel, no group namede the name of the channel in the control.

  • Oscilloscope for the acquisition of data from the usb-6009 or - example of temporal division for 5 seconds, 10 seconds

    Hey Hey everyone

    I was looking for an example for two-channel oscilloscope virtual using e/s all-in-one of the 14 bits of NI DAQ USB 6009. I tried to research for example BOF time division or s/div for 1 second, 5 seconds, 10 seconds.  but was shocked to find that there is no reference for it. The range of oscilloscoper virtual

    Minimum - 10 micro s / div maximum -10milli second div but there is no example for 1 second / div or 5 seconds / div...  If anyone can guide me. I'm new to labview environment.

    This is the oscilloscope two sample obtained from google search. is there material limitations. ?

    I'm working on continuous 4-channel data acquisition data acquisition using niusb 6009

    The sampling frequency is sufficient for any desired s/div. The sample rate is 12 ksamples / s per channel, so if that meets the Nyquist criteria for the input signal, you can capture it. The number of samples has no effect on that with the exception of the amount of the signal you acquire. Your chart is not stable, if you do not trigger the acquisition. Even as real significance, therefore your emulation seems actually successful.

Maybe you are looking for