Sequence special error in DAQmx create raster scan with 2 Motors of stepper motors: Error Code 200088

Hello

I am trying to create a LabVIEW program that controls two bipolar motors to create a raster scan. I use DAQmx and Labview 2012 SP1 with a usb 6008. I got the engines to move in one direction, but when I try and get them to move in another direction in a separate task, I get an error-200088 code indicating that my task is not valid. This happens at the beginning vi to move the motor x in the opposite direction of the task.

The logic underlying the program is as follows:

1. move the engine x a certain number of steps to the right

2. move the engine are a number of steps down

3. move the engine x the same number of steps as 1 to the left

4. get off the engine is the same number of steps 2

5. repeat

I can get the steps 1 and 2 work but I have problems with step 3. I use a stacked sequence to show the task for each step.

I appricate all the advice on this topic as part of a final year project

Thank you

Aoife

You can solve this problem very simply.  Move all DAQmx departure calls happen * before * the structure of sequence rather than inside.  Similarly,.

move all calls to DAQmx Stop and DAQmx Clear happen * after * the structure of sequence rather than inside.

I would sequence the DAQmx Write calls to write the bit of direction * before * writing the bit clock.   And I highly recommend that wire you

to the top of your tenants error and outs so you can be informed of any errors in the DAQmx tasks.

-Kevin P

Tags: NI Software

Similar Questions

  • Error 200077 (frequency) and 200452 (task control loop) error occurred DAQmx create calendar Source.vi

    Hello

    I'm trying to control the timing of a timed loop. So far, I have tried several approaches via the software and which worked very well except the time loop in some missed cases 1-2 Ms I want to make sure the timing is right. I tried to provide an external clock through the acquisition of data I. The system I use is NI USB-6212. It has two counters and DIO and AIO, but I keep getting errors. I tried two different approaches. One was to use directly the game 'DAQmx create calendar Source.vi' in frequency mode, and when I did, I got error 200077. Then I found a post of somone saying that sometimes it is not possible and an alternative method is to use the same vi but set task of loop control mode. This one gave me Error200452. For this one you will see in my attachment the suggestion was to use an AI then the moment of him and then use this task for Creat DAQmx synchronization Source.

    I don't know what the problem is or if I need to put something differently.

    Please let me know if you can help me with this.

    I'll try to continue to work on that, but if anyone of you a suggestion I'll be very happy to consider the issue.

    Thank you in advance,

    Best, Massimo.

    Massimo,

    In my view, the errors that you see are the result of your hardware USB-6212 is supporting the functionality of the task control loop.  I have a M Series PCI card that is capable of operating both of your screws attached without problem (although they still +/-1ms variation on occaision).  When I try to use a USB-6212 simulation, I get the same error codes that you do.  Unfortunately, it's just a case of a lack of equipment.

    Kind regards

  • Error-200431 occurred at .vi DAQmx Create Channel (I-acceleration-accelerometer)

    Hello

    I tried to use DAQmx Create Channel to accelerometer and yet it responds with error (see below). When I use max OR to measure the accelerometer (I-acceleration-accelerometer), there is no error, and I see that acceloremeter works.

    OR PXI-1042 and I use OR-4462 card to measure vibration vith acceloremeter.

    Error-200431 occurred at DAQmx Virtual Channel Create

    Possible reasons:

    Physical channel selected does not support the type of measure required by the virtual channel you create.

    Create a channel to a type of measure that is supported by the physical channel, or select a physical channel that supports the type of measure.

    Property: I. MeasType
    Requested value:
    You can select: sound pressure, voltage: Microphone, accelerometer, Position: Eddy Current proximity probe, Force sensor: IEPE, speed sensor: IEPE

    Task name: _unnamedTask<104>

    Hi serdaryilmaz,

    I'm not sure why the accelerometer mode does not work, but it works very well in normal mode - it maybe has to do with the accelerometer, you?  Whatever it is, if it works with the voltage mode, I am happy that we found a way to make it work.  Is this an acceptable work around you?

  • DAQmx create virtual channel (VI) error-229771 reports

    Hello

    When in a project that I am working to get error-229771 code whenever I try to run 'DAQmx create Virtual Channel (VI)' this does not happen when I create a vi not in a project.  The problem is that this project is very large and it if poster impossible to recreate. It's several hundred vi. Y at - it something that I missed in the forums and support that could explain this. I created the VI below in the project and outside the project. In the project, the error occurs outside the project, it runs without any problems.

    Message:

    229771 error occurred at .vi:1780003 DAQmx create channel (I-voltage-Basic)

    Possible reasons:

    Internal software error has occurred in the MIG software. Please contact the support of National Instruments.

    Task name: _unnamedTask

    Any help would be appreciated.  Thank you, Matt.

    LabVIEW version: 15.052(32bit)

    OR Max Version: 15.0.f0

    NEITHER DAQmx Verson: 15

    OS: windows 7 service pack 1

    PC: Intel Core i7-2600, 8 GB of ram

    Data Aquistion: NEITHER DAQ USB-6289 calibrated June 2015

    This code snippet returns the name of the first channel of analog input on the device first, and then tries to create a task for her. The bed of the canal, then close the task.

    Error message

    Hi Matthew,

    Thank you for following up after you fix your problem.  I'm glad to hear that you do not encounter this problem more.

    Here is an article that lists the reasons for this error (although unfortunately, I cannot pin down which is the exact cause in this case).

    http://digital.NI.com/public.nsf/allkb/03123D0E8A36C48E862577A4005B6BAA

    NOTE: This article specifies that the error occurs at startup task VI DAQmx.  You do not use the start task VI, so the task starts automatically in the DAQmx Read function.  The error will occur instead in the DAQmx virtual channel create, that you encounter in your error.

    I hope this gives you an idea about what could have gone wrong, and I'm sorry he is no more details.

    Good programming!

  • Error-200431, DAQmx create Channel .vi (I-voltage-Custom with excitement)

    Where is past ".vi DAQmx Create Channel (I-voltage-Custom with excitement)?

    I tried to use this VI of force measurement with an NI PXI-4472. He responds with the 200431 error... You asked: more: voltage: Custom with excitement, you can select: sound pressure, voltage: microphone,...

    It seems to me to be an internal error of the VI's Version of LabView 8.6.1

    Hi Suse,

    Thanks for your reply.

    It's the right device but the bad VI.

    PXI-4472 is an excellent camera for the dynamic force measurement using Quartz sensors. I was intending to use the .vi (I-voltage-custom with excitement) to configure entry and IEPE excitement, but I got the error code. I have now managed by using the pure (I-voltage) .vi entry configuration and IEPE using the DAQmx channel property node.

    However, I tried the .vi (I-voltage-Custom with excitement) with appropriate PXI-4220 simulated device, no error.

    Concerning

    T.Knox

  • DAQmx error code load 3 - Labview 8.6

    Hello
    I am trying to build an executable using the Application Builder in Labview 8.6

    I get the following error when I try to run the executable file on another computer without having to install the LABVIEW runtime engine.

    «Year error occurred loading VI ".vi DAQmx create calendar Source (void)".» LabVIEW support 3 error code: could not load façade. »

    Your help is greatly appreciated.


  • Possible bug: DAQmx create channel w/o specified in task

    The VI DAQmx 'DAQmx create channel (I-voltage-Basic) .vi' requires no task should be connected, and claims his detailed help "" task in specifies the task to add virtual channels, this VI creates. "." If you do not specify a task, NOR-DAQmx creates a task for you and adds the virtual channels that this VI creates to this task. »

    My recent experience, I think that there is a problem with this feature. If no job is specified, sometimes this VI will create a new task without problems, but other times it will overwrite an existing task, causing errors later when you try to reference the crushed tasks.

    In my code, I have 7 tasks, two digital (DIO), an analog to (HAVE) and four analog out (AO). One of the AO and the tasks of the AI does not use a task VI before the channel VI create. I recently added this AO task without creating a new task manually, based on the reproduction of legacy code for the channel of AI that also not create a new task. With two spots missing the task of creating VI, I found it fairly common (20% of the tracks) a further task would be crushed, causing errors when the task has been used, either be the wrong type IO, a wrong number of channels, etc. I think I saw this error until I added the second task without creating a task, but it's so rare that he didn't pay much mind, and I would just restart my VI. Now that was occurring more often, I've been tracking it. Simply by adding 'DAQmx create Task.vi' before calling Create Channel and the new task of wiring in the task, the problem seems fixed.

    It is easy to add to create a task to avoid this problem, but it seems to me that the detailed help for Create Channel indicates that it is an unnecessary step. Thank you.

    Hi MDI - AJT.

    This looks like a problem with the code you posted, by suggestion of Norbert. When you create the task handles, you should do this only at the beginning of your code outside the loop, otherwise you will create errors that you overwrite memory locations at each iteration. If you move your virtual channel calls create outside of your loops, and does not call the handle of the task to be authorized beforehand (and implicitly create the task rather than explicitly), then this behavior must stop.

    I recommend to try this with a single line, and not 7 DAQmx calls and follow the DAQmx architecture as seen in the examples under 'Help' "'find examples' and see if this behavior persists. Later architecture, I was not able to re-create this behavior.

    BeenCoughin

  • Tecra M9 - no power orange light error code sequence

    Hello

    I have a Tecra m9 laptop and when I try to turn it on, it blinks with a light orange in this sequence:

    6 short flashes, short 1 long blink, 1 blink, a ditch, and then it repeats.

    Does anyone know what is the problem?
    Any advice would be greatly appreciated.

    See you soon.

    What you see flashes code. The flashing provides an error code. Short means 0 and 1 long.

    The hexadecimal code can be read by the service partner. The blink code will be sent when the microcontroller detects a problem with the power supply. Unfortunately you can not do anything alone. Contact the closest partner in your country and ask for help.

    All you can try right now is to disconnect battery and start the laptop with AC power only.

  • Failed to create the recovery disk - error code: 0E01B5-26-00037304

    Hello

    I bought the new laptop Satellite A300-1MC, but I was without recovery disc, so now I try to do disk recovery, but his show me then the following error:

    A power calibration area error
    and
    error code: 0E01B5 - 26-00037304

    I tried 5 times 4, and used a NEW disc, but still show me the above problem.
    Will thank you for answer you.

    Thank you
    Jan

    Use please TDK or Verbatim DVD-R media and I think everything will work OK.
    I created the recovery media on several laptops using these media. It works perfectly.

  • How to use DAQmx create linear scale

    Hello. I have an output of an amplifier which is 10 mV/V, which is read by a USB-6002. This amplifier voltage range is 0 to 200 volts. Have tested the DAQmx create scale Vi, I don't understand how it works. Looked at the other posts here for answers, I still haven't understood how it works. As a first step, it says that it uses the y = mx + b equation for it. I don't know what the slope refers to except if it is the angle of the line. If someone would have an example that explains how it works, it would be great. I also tried to look at an example but could not find one. Thank you

    Here is an explanation "improvised" y = mx + b.  If you think of 'x' as the input and 'y' as output, then you can consider "m" as the gain, and "b" corresponds to the offset, the output that you can read with zero entry.

    If you think of this equation from an amplifier, many are designed to have zero output when there is no entry.  In other words, b = 0.  If you have a gain of 10 mV/V (which I guess means that a 1V input would give an output 10mV, then m, usually called "the slope" (which is the slope of the curve of output), serait.010/1 = 0.01.)

    Note you describe the range of the amplifier as 0-200V, so the output will be 0 - 2V, well inside the ±10V USB-6002.

    Bob Schor

  • DAQmx - create channels to channel-not found

    Hello

    I'm new to labview. So maybe my question is simple...

    I want to generate a signal. That's why I use the DAQmx-create channel.vi. I have, I've created a control to selected the channel, where the signal is generated. But no channels are found.

    I use 5412 PXI and my camera is visible in MAX. So I don't know what the problem is. Can someone help me?

    Thank you

    Ratta

    The 5412 is an arbitrary signal generator. It does not use DAQmx. It uses NEITHER-FGEN.

  • error code 10 to create folder

    I develop a vi in which I have to create a folder in any drive (for example, D:\dataacquisition) in the acquisition of data folder, I have to create the folder date and name of the folder and we must create files of information of the patient for example, and as this different files in the folder name, I showed this to the attached vi , now the problem is the following that when I run the vi for the first time where no record was made it works ok with no errors, but when I run again the vi with a different patient name it displays error code 10 to create the folder, I know that this error is because the same folder is already present , but the problem when an error comes new patient record is not created, I have tried several things but unable to avoid or remove this error, is it possible to remove this error or if there is another option of creating folder in LabVIEW.

    I enclose the vi.

    Hello

    I've simplified your code a bit.

    Let us know if you need additional assistance

  • Repeat the Scans with DAQmx read/write

    Hello:

    I use DAQmx vi to generate signals on channels ao0/1 a reading of the signals of the channels ai0/1 a card NI USB DAQ of 6251. I do this by using the read and write of vi and a trigger vi. This vi will run successfully for a single analysis. Now, I need to be able to perform multiple scans with the same settings but separated by 5 seconds or more. When I click on Scan, the vi analysis. However, when I click scan again once it does nothing and I don't know how to scan again.

    The vi VU RAMP MOD (not included) is simply used to generate the shape of the signal.

    Thank you!


  • display raster scan of the 2D array

    Hi all

    I am very new to LabVIEW and I was just wondering how to make a raster scanning of a given 2D array.

    Normal passage of table 2D via loops nested sequential indexing results and show items on an indicator gives 1st line column 1 in the end... 2nd row column 1 in the end... so now.

    But I want to get: 1st line column 1 in the end... end of col 2nd at 1... 3rd line column 1 in the end... .so on. (Type of raster analysis)

    All ideas in this direction?

    Thank s in advance

    ..............

    Manish

    Hi do you want?

  • Get the error code 0 X 00000015 when you try to scan

    Original title: Scan problem

    Tried to scan HP 2100 connected directly to the USB port of the laptop. OK but previewed such access has been denied at the point of import in the process. error code 0 X 00000015 - is this a problem of security settings?

    Hello

    Check with the help of HP, their online documentation and drivers, diagnostics and ask in their forums
    on the problems known.

    Drivers and software - 2100 HP ScanJet C and CSE - enter-> scanner HP 2100
    http://WWW8.HP.com/us/en/support-drivers.html

    Support and troubleshooting - 2100 HP ScanJet C and CSE - enter-> scanner HP 2100
    http://WWW8.HP.com/us/en/support-drivers.html

    Support HP & drivers
    http://welcome.HP.com/country/us/en/support.html

    Contact HP
    http://welcome.HP.com/country/us/en/contact_us.html

    HP forums
    http://h30434.www3.HP.com/PSG/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

Maybe you are looking for

  • How can I remove Amazon search

    I use firefox on my desktop and a laptop so iwould like to use it on my new Acer A500 tablet. I would like to remove addons/widgets that I don't need like Amazon and Twitter search addons. Can you tell me how to do what you please?

  • Quality mediocre speaker Tecra R10 - 10A

    HelloI just bought a tecra r10-10 has fills perfectly. My only complaint is an * extremely poor sound quality * fate of built-in speakers. I can't complain for lack of low frequencies, which is inevitable for this size, but distortion of severe clipp

  • Satellite C50D-B - 12 c - TouchPad does not work after upgrade to Windows 10

    Can someone suggest a solution to get the touchpad working again after windows 10 upgeade?

  • I can't Partition drive!

    Please read!I can't make a partition of my drive!I got a free space as 431 GB and I can not make a partition!When everything I do at leats this message comes to me!Please tell me what I should do to solve this problem!

  • WRT610N question to access the data on the NAS

    Hello Just replaced my WRT54G (works perfectly) with a WRT610N and used the same configuration to access Internet and LAN. Upgrade to the latest Firmware for the 610N. The WRT610N that is connected to a SD2008 (1 GB of Linksys 8 - port Switch). SD200