Problems saving a DAQ task in Labview and running elsewhere

I am attempting to use DAQmx Save Task.vi in LabView to save a simple signal generation task, so I can open it later / elsewhere. The problem I am having, though, is when I attempt to open the task in MAX. The task is brought into MAX, but when I attempt to run the task error -200552 occurs at DAQ Assistant.
Error -200552 occurred at DAQ Assistant
Possible Reason(s):
Specified string is not valid, because it contains an invalid character.
Position of Invalid Character: 4
Invalid String: Dev1/port0/line0
It looks as though the problem has to do with the '/' character, but I am not sure how to create an output line in LabView that does not include the '/' character. Is there anyway around this problem in either LabView or in MAX?
I have attached my LabView program. Thank you for your help and patience.
Solved!
Go to Solution.
Attachments:
saving_generation_task.vi ‏19 KB

Where is your program where you are trying to run the task? I don't understand what an existing task has to do with the DAQ Assistant. You would simply have to wire the task to a DAQmx Write.

Similar Messages

  • Problem saving pages documents as postscript files and pdf files

    Hello!
    My problem occurs when the pages documents are saved as pdfs -they go 'screwy'. If you save as a pdf (through file, print, print as), the certain fonts show a holding maarker rather than spaces on the screen but prints fine. If you save as a postscript (file, print, print as) and convert to a pdf in Preview the fonts are fine on the screen but are blown out when it prints and are all over the page.
    If anyone has any suggestions I am more than happy to try anything.
    Veronica

    As every user, the 'poor silly man' may download "*_Pages User Guide_*" thru the Help menu.
    Doing that, he would be able to read:
    Yvan KOENIG (VALLAURIS, France) jeudi 8 avril 2010 12:39:34

  • LabView and Run-Time

    Hello, I have written a vi in LabView 7.0 and I would like to install this vi on other computers for which we do not have a license to run LabView. I understand the way around this is to download Run-Time from the National Instruments website. This I have done (downloaded and installed the latest run-time software from NI website) but I have no idea how to run my vi in the run-Time suite of programs. Which program should I use and so on. Are all sub-vis supported etc.
    Nevica
    Message Edited by nevica on 08-12-2009 09:11 AM

    You also need to check to make sure you actually have the Application Builder, depending on which "edition" of LabVIEW you have. The Professional edition had the Application Builder included. The Full and Base did not, and needed to be purchased separately. I think this still applied going back to 7.0. If you don't have the Application Builder then you will need to check with NI to see if you can still get it.

  • Having problems installing games such as Mine Craft and Rune Scape html version

    both minecrafe and runescape have recently had big updates and i have played them both on my mac but it seems i canot install them corectly i have atempted a wide range of things but nuthing works

    Could you try these steps to see if they help?
    1. Download the stand alone uninstaller
    2. Close all your browser windows
    3. Run the uninstaller
    4. Restart your computer
    5. Delete the following folder, depending on your operating system type:
    Windows 32bit - c:\Windows\system32\macromed
    Windows 64bit - c:\windows\syswow64\macromed
    6. Download and install Flash Player located here:
    Flash Player for Internet Explorer
    Flash Player for other browsers
    Thanks,
    Chris

  • Loading a Previously Saved Task into LabView

    I have created a digital generation task in LabView and saved it using DAQmx Save Task.vi. I am able to open and run my task in Measurement and Automation Explorer. Now I am wondering if it is possible to load this task back into LabView and run it in a new program. Can I do this with the task saved from DAQmx Save Task.vi or would I need to go about it differently? Where would I start loading the task in terms of vi's?
    Thank you for your help.

    I am actually not asking the same question as before. Previously, I was having problems using a LabView-created task in MAX. Now I am attempting to create a task in LabView and bring it back into LabView on a separate VI. I have found the answer, though.
    https://decibel.ni.com/content/docs/DOC-15842
    Thank you for your help.

  • How to install VISA after Labview and NI-DAQ are already installed

    I have Labview 5.1.1 and NI-DAQ 6.6 installed and running properly. I now find that I need to install VISA. Must I uninstall everything (hardware, NI-DAQ, and Labview) and then run the Labview installation again to install VISA? Or can I just go ahead and run the Labview setup again in order to install VISA?

    No, you do not need to uninstall any of your hardware or software to install VISA. There are two ways that you can install VISA.
    1. You can modify your installation of LabVIEW by going into Add or Remove Programs in the Control Panel, clicking on LabVIEW and selecting Modify (or Change, depending on your operating system). If you have your LabVIEW CD in the CD drive, you can simply enable VISA support in the Installer Tree. This will install VISA on your computer without modifying the installation of any of your other programs.
    2. You can also download NI-VISA from our website and install it. You will probably need a reasonably fast internet connection, but this may be the easier way to install it. The URL for the VISA download page is linked below. Ve
    rsion 3.0.1 is the newest and works with most Windows operating systems.
    http://digital.ni.com/softlib.nsf/webcategories/85256410006C055586256BBB002C0E91?opendocument
    Regards,
    Mike N.
    Applications Engineer
    National Instruments

  • How to detect a lost TCPIP SOCKET using LabVIEW and NI VISA

    I am using VISA functions in LabVIEW to remotely communicate with instruments over TCPIP SOCKET visa resources.   In general this all works well by simply creating a resource name, passing it to VISA Open and then setting a couple of session attributes.   Occasionally an instrument will be reset or power cycled and what I have noticed is that I need to call a VISA Close and then reopen the resource in order to get it to communicate again or close LabVIEW and run again.   If you just use VISA Open without calling a VISA Close first you cannot communicate with the target.   The problem is that I have no way of detecting this condition.   I have tried always calling a VISA Close before VISA Open and this seems to work for this condition but it seems odd to always close a session before opening it.   Why does VISA OPEN not work under this condition and is there any way to detect this situation?
    Solved!
    Go to Solution.

    It works that way because that is how TCP works. A TCP connection is a dedicated connection between two endpoints. Unfortunately other than getting an error from a read or write operation there is no way to determine if the othe rside of teh connection is still there. You need to close the connection because otherwise VISA will continue to use th eold connection which is no longer valid. Closing it allows the system to cleanup the dead connection.
    If you are communicating fairly infrequently you could simply open the connection, do you stuff and close it. The overhead for establishing the new connection is not that much. If you are using steady streams of data then you will need to watch for the errors and then reestablish the connection by closing the old one and opening a new connection as you have observed.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Unable to build and run Javapetstore using  Sun SDK from Command Line

    Hi,
    Here is a problem I?ve come across building and running JavaPetstore from Command Line using Ant.
    It shows that Build is successful but there is an error message in very beginning:
    ?Unable to locate tools. jar. Expected to find it in C:\Program Files\Java\jre 1.5.0_11\lib\tools.jar?
    But there is no such a file in jre-1.5.0_11 or previous versions.
    The only place where the file with such name can be found is jdk\lib.
    All attempts to run end up with:
    ? BUILD FAILED.
    C:\<PETSTORE_HOME>\bp-project\command-line-ant-task.xml:77;unable to find javac compiler;com.sun.tools.javac.Main is not on the class path.
    Perhaps JAVA_HOME does not point to JDK."
    Directories C:\Sun\SDK\bin and C:\Sun\SDK\jdk are in the PATH.
    JAVA_HOME as a System variable is set up to C:\Sun\SDK\jdk.
    Building and running other applications like a BluePrints or Samples bring to same result.
    I will post more information if needed.
    Thank you in advance for help.

    If you are using Windows XP:
    1. Right click on my computer
    2. Select Properties from the popup dialog
    3. Click on the "Advanced" tab
    4. Click the button towards the bottom that says "Environment Variables"
    5. In the dialog that pops up, look in both the User variables and the System variables for a variable named CLASSPATH
    6. If its not there, you need to create it. If you want to make it available to all users of your computer, create it as a System variable. If you only want it to be available to the current user, add it as a User variable.
    7. If it is there, or if you just created it, it needs to contain the following values: the current directory (symbolically abbreviated as a period: "."), any class libraries you want to be available to the java compiler (javac) or the java interpreter (java). By default, jre/lib and jre/lib/ext are searched for classes, so you don't need to include anything located in one of these folders on the classpath.

  • OPM "build and run" error

    Hi
    I have a problem with OPM when I use "build and run".
    I only get a message "The system cannot find the file specified" and nothing more. It has worked, but it used to open Google Chrome browser. Since I did not want this behaviour I uninstalled Google Chrome. But then I got this error instead.
    I can run "build and debug" prefectly fine.
    The problem is not related to a specific project.
    I have also tried to reinstall OPM but the problem remains.
    What file is it the system cannot find? Is there a way of finding this in a log somewhere?
    How does the "build and run" command work? Is there a way of checking why it can not open the browser?
    kind regards,
    Michael

    Hi Andrew
    Just to add some more observations.
    It seems that OPM doesn't look directly to the default browser setting. If I change the default browser, OPM does not directly recognize the new setting. OPM opens the previous selected default browser anyway.
    I dont know if the setting is unique per project or if it is per OPM installation.
    OPM seems to pick up the default browser, but then OPM caches this somewhere. Which caused problem for me when I uninstalled Google Chrome. OPM insisted on trying to start Google Chrome anyway.
    When I now got Firefox working as default browser the problem solved it self. But when I selected IE as default browser, then when I ran OPM it still opened Firefox, and Firefox gave me the warning that it was not default browser.
    So OPM does not always look at the default browser setting.
    kind regards,
    Michael

  • LV 8.21: strange behavior with DAQ tasks, parallel running VI's and shift registers

    Hello,
    I have made a VI using DAQmx vi's. The VI uses shift registers to store DAQ tasks and other (internal) information. I have implemented  several modes of operation (enum control with a case structure) like 'init', 'read AD', 'config AD' etc. If I use this multi mode VI in a single main VI everything work as expected. I have attached a jpg that shows one example where the DAQ VI is called from 2 parallel running while loops. One loop aquires the data (LOOP 1) while the other loop configures the aquisition task (LOOP 2). If I implement the same thing by putting LOOP2 in a different VI that runs seperately from the first VI I get an error message (200428):
    Possible reason(s):
    Measurements: Value passed to the Task/Channels In control is invalid.
    The value must refer to a valid task or valid virtual channels.
    Task Name: EasyDAQ_AD
    Of course, the second VI is started manually after the 1. VI has passed the initialization part. The error message is triggered from the 1. VI that executes the DAQ task. From my understanding of the LV execution system this seems like a bug to me. Does anyone have an idea what could go wrong here?
    klaus
    Attachments:
    problem.jpg ‏30 KB

    1. In general, this kind of technique is something I've been using successfully for years.  (Ben recently wrote up a very nice treatment of these "Action Engines" as a "Community Nugget.")  So I don't start by expecting this to be a bug in the LV execution system.
    2. Your description of the problem sounds almost backwards.  You say you manually start the 2nd vi ("Config AD") *after* running the 1st vi ("Read AD").  Seems like you'd need to do the Config 1st and then do the Read, right?   I kinda suspect you actually did it in the right order, but described it wrong.
    3. The next likely scenario is that the Config failed, but you didn't trap the error and were unaware of it.  Then it makes sense that the Read would also fail.
    4. A couple issues I regularly deal with in these DAQ Action Engines is internal error handling.  I often keep a shift register inside to store errors generated inside the Action Engine.  But it can get a little tricky doing sensible things with both the internal error and any other error being wired in as input.
    I said all that so I can say this: if you have complex nested case statements, or lots of different action cases to handle, double check that the task wire makes it from all the way from left shift register to right.  Sometimes they get lost if they go through a case statement, the output tunnel is set to "use default if unwired", and 1 or more of the cases don't wire the output.
    -Kevin P.

  • Problem with DAQ in while loop and Graphs

    Hello,
    I'm new here so I apologize if I posted this on the wrong board  
    This is my "situation":
    I need to make a simple PID controller which takes information (process variable) from an outside source (a NI's DAC connected through the USB port ) which is accomplished using NI-DAQ as an input, and the PID's output goes to the second NI-DAQ which is also connected using DAC to an actuator which in my case regulates the air pressure. (VI attached)
    My problem is the following.
    Both of the NI-DAQ I placed using DAQ Assist, require to be in a while loop.
    -If I place them in separate loops, I have the problem of passing information between the Input NI-DAQ and the PID, and also between the PID and the Output NI-DAQ.
    -If I place them both in one big loop, an error occurs saying that the selected buffer size is too small (Error -200609).
    The timing settings for the DAQ's N samples, 100 samples to read at the rate of 1k (I also tried with Continuous samples and many different combinations of Samples to Read an Rate but without success).
    Should I wire them with the same dt(s)?
    The other thing I need to do (I'm also writing it here in order not to open new topics) is show the following 3 signals on a Graph (process variable (dynamic data type)(range 4mA - 20mA), PID output (double)(range 4mA - 20mA), and the Set Point (double)(range 0 to inf))
    Firstly, is it possible to show the first two on a scale from 0 to 100 without changing the PID's output which needs to be 4-20?
    Secondly, which graph should I use if I have different data types? (I tried the Waveform Chart, and succeeded in showing the first two; the third just messes everything up)
    I would also have to make a legend explaining which signal is which (I see that this is possible with the Mixed Signal Graph).
    I know this is probably too much to ask, but I'd be grateful for any help
    Thank you in advance
    Attachments:
    PID while.vi ‏100 KB

    My problem is the following. Both of the NI-DAQ I placed using DAQ Assist, require to be in a while loop.
    -If
    I place them in separate loops, I have the problem of passing
    information between the Input NI-DAQ and the PID, and also between the
    PID and the Output NI-DAQ.
    This is the best option---Use QUEUE or Functional global or something else to tranfer the data to and fro
    How  do I make that QUEUE or Functional global?
    -If I place them both in one big loop, an error occurs saying that the selected buffer size is too small (Error -200609).
    Have
    you tried increasing the buffer? Is the acquisition happening
    parallelly (means to say the first DAQ not wired (error terminal) to
    second DAQ)
    Well the buffer is, at least how I understood it, the option Number of Samples when in Continuous Samples mode. Concerning the parallel acquisition, do you mean I should wire the error ports of both of the DAQs?

  • Problem with Labview and an ARM Cortex

    Good morning,
    I am currently trying to use Labview with a board from ST Microelectronics (MCBSTM32) with an ARM Cortex Processor.
    I use the SDK and have followed the tutorials.
    But, when I try to launch the program (the simple loop as write in the tutorial n°2 : http://zone.ni.com/devzone/cda/tut/p/id/7029 ), Keil gives me an error via Labview:
    "Argument 'DARMSTM' not permitted for option 'device'."
    It seems that Keil does not allow an ARM Cortex from ST as the device.
    Moreover, after having this problem, I am unable to use a Keil project ,even a project which worked before, without Labview. I need to restart the computer.
    I also try to launch the Keil project generated by Labview, without using Labview, and it works. But as soon as I use Labview, I have the error.
    Did anyone already have this error or know how to solve it
    Thank you for your answer and sorry for my bad english.
    Regards,
    Raphaël VAISSIERE

    Hi Raphi,
    So let me make sure I understand,
    The project created in LabVIEW errors out with the message "Argument 'DARMSTM' not permitted for option 'device" 
    If you open the same project in Keil uVision, it runs fine
    Here are my questions:
    1. So how does the code run when run through Keil? does it deploy and run fine?
    2. Did you follow the porting procedure completely?
    Your target STM32F103RB  is techincally supported by Keil but you need to port the RTX kernel to it. This paragraph explains it:
    To determine if your target already supports the RTX Real-Time Kernel, browse to the \Keil\ARM\Startup directory, then browse to the folder that corresponds to the manufacturer of your ARM microcontroller. If there is an RTX_Conf*.c file for your target, then the RTX Real-Time Kernel has already been ported for your ARM device. If no such file exists, skip to chapter 4 for more information on the RTX Real-Time Kernel and a guide for porting RTX to your ARM microcontroller. 
    You also need to port the Real-Time agent to it.
    I just want to make sure that you have followed the guidelines. If you have and are still having problems, we will continue to explore this.
    Thanks,
    National Instruments
    LabVIEW Embedded Product Support Engineer

  • I have a problem with simulation in Matlab 6.5 and LabVIEW for PID controllers

    I have a problem with simulation in Matlab 6.5 and LabVIEW. I have some methods for granting PID controllers in MATLAB to go but not LabVIEW. International Teams degree to transfer two but when I go past the fourth degree no longer work. We changed the formula for calculating the parameters for grade four and gave me some good values for Matlab award but when I put on LabVIEW have not settled. formulas are available in PDF and are. Please help me and me someone if possible. Thanks
    lim.4 generation parameters in MATLAB program and comparison methods are for second-degree transfer function.
    Solved!
    Go to Solution.
    Attachments:
    Pt net.zip ‏2183 KB

    This is the VIs what i try to make,but is not work. This pdf. document was used to create last VIs PID. thenk you for your colaboration.
    Attachments:
    PID create by me.vi ‏312 KB
    tut_3782.pdf ‏75 KB

  • 11.0.10 Update Issue -  Problem saving documents - getting message "This document could not be saved.  There was a problem reading this document (21)."  The PDF documents are being created by Esker VSIFax and the problem is only occuring with updated vers

    Our IBM Unix system uses a program called VSIFax (Esker) to create PDF documents such as invoices.  Users that have updated to Acrobat version 11.0.10 can open the PDF but then when trying to save the document the get a message "This document could not be saved.  There was a problem reading this document (21)."  The problem is only occuring with updated version 11.0.10 (11.0.9 works fine).

    More information about this issue can be found here:
    https://forums.adobe.com/thread/1672655
    A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
    Then download each of the individual updates and run them sequentially. 
    I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
    You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Adobe Reader 11.0 - Multilingual (MUI) installer    AdbeRdr11000_mui_Std
    Adobe Reader 11.0.01 update - Multilingual (MUI) installer    AdbeRdrUpd11001_MUI.msp
    Adobe Reader 11.0.02 update - All languages    AdbeRdrSecUpd11002.msp
    Adobe Reader 11.0.03 update - Multilingual (MUI) installer    AdbeRdrUpd11003_MUI.msp
    Adobe Reader 11.0.04 update - Multilingual (MUI) installer    AdbeRdrUpd11004_MUI.msp
    Adobe Reader 11.0.05 security update - All languages    AdbeRdrSecUpd11005.msp
    Adobe Reader 11.0.06 update - Multilingual (MUI) installer    AdbeRdrUpd11006_MUI.msp
    Adobe Reader 11.0.07 update - Multilingual (MUI) installer    AdbeRdrUpd11007_MUI.msp
    Adobe Reader 11.0.08 security update - All languages    AdbeRdrSecUpd11008.msp

  • Problems with Labview and Windows XP with error -214721786​5

    Hello. Im a new beginner in Labview and am having a problem with a error message
    I dont understand. Im running Labview on a pc-logger with windows XP.
    The program is written by a guy on my university, and logs voltage from
    a solar cell panel. He doesnt have the time to check in to it, so Im supposed to
    find out what's wrong.
    The error message is as follows :
    Error -2147217865 occured at Cmd Execute.vi->DB Tools Insert
    Data.vi->Solcelle.vi
    Possible reasons :
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers,
    [MySQL][ODBC 3.51 Driver][mysqld-3.23.38-log]Can't open file :
    'solcelledata.MYD'. (errno: 145). in Rec Create - Command.vi-
    >Cmd Execute.vi->DB Tools Insert Data.vi->Solcelle.vi
    I really hope someone can tell me what's wrong and specifically what to do
    with it, or possibly guide me to someone who could suggest a solution to this
    problem.
    Reguards
    chrisdee

    Hi Chrisdee,
          (.. not to discount what TimoS has suggested, however...) 
    Embedded in the error information you provided:
    ... Can't open file : 'solcelledata.MYD'.
    Sounds like the program needs this file?  Has the program been moved to a new location?
    just a wild guess!
    Cheers
    Message Edited by Dynamik on 10-06-2005 04:53 AM
    When they give imbeciles handicap-parking, I won't have so far to walk!

Maybe you are looking for