Basic question MATLAB/LabVIEW

I'm very new to LabVIEW and MATLAB and have had problems making my LabVIEW code compatible with MATLAB scripts I wrote.

In my LabVIEW program, I have simulated two channels one NOR 9237 USB - DAQ and recorded outgoing data in an ASCII .txt file (using the Save to ASCII/LVM vi format).  I have also written a MATLAB script that reads this .txt file, removes the header and records digital data in a .txt file.  The script works well in MATLAB and does exactly what I need to.

I tried to use the MATLAB script node in LabVIEW to import the MATLAB script that I wrote, and create the new file .txt (with little success).  I imported my entire script in the MATLAB node, but the LabVIEW program run any of my statements when I try to run the program.  I tried to type in the first several orders of my MATLAB code in the LabVIEW command window, but it keeps returning errors when I try to open and read the .txt file I created with the LabVIEW program using 'fopen' and 'fgetl"from MATLAB commands.

Any suggestions would be much appreciated!

Rachel

It is not a specific VI or function that will do that, but that does not mean it's hard. In your VI you are already save data to a file of measurement using writing to the file of the measure, which is configured to save a .lvm file (which is just ASCII), so why are you re-register? Who is the consumer of these data? If LabVIEW, you can simply use the read measurement VI file to read the file directly. If you want to save the raw data for another program to use and then just use the write to the spreadsheet file VI. This will create a text file using tabs to separate columns:

NOTE: When you wire dynamic data in the input array of writing on a spreadsheet file dynamic data conversion VI gets automatically added.

Tags: NI Software

Similar Questions

  • Basic questions Profibus

    I have a few basic questions about Profibus. We seek to develop a system that uses this form of communication, but we need a few questions answered in a broad sense, until we can move forward.

    How fast can it reliable to deal with a large amount of data while contained in an executable multithreaded great? Our typical executables are 7 500 KB and must run on a Pentium 4 PC indefinitely without triggering more than 20% CPU. Given this constriant and my general lack of familiarity with the technology / Protocol, how fast can go us? 100ms? 5ms? 1ms?

    Do I need any special software packages? Can I expect
    the developer of the Profibus card to provide the essential in software
    LabVIEW?

    We use LabVIEW 8.2.1; is it reasonable to expect a profibus card manufacturer to get the code for this version of the software, or is it possible that we have to upgrade?

    Hi BobChuck,

    PROFIBUS boards run the Protocol on board, with resulting very low CPU usage. If you buy a Profibus from a seller at random, you should be able to access the Profibus OPC server which should benefit from this provider. In such a scenario, you can expect the flow of data between 10 ms and ms 200 for all data (depending on the amount of data, the baud rate, implementation of the OPC Server and so on).

    With a card Profibus of NOR comes a set of screws that will interface directly to the Board of Directors, leading at the speed of communication much more high. This can be as low as 1 ms for all data, but there still depends on several factors. Still, you should expect a 10 x performance gain using the LabVIEW interface directly from the OPC. In addition these boards can also be used with LabVIEW RealTime.

    For more information, please refer to this tutorial.

    Kind regards

    Jochen Klier

    National Instruments

  • Basic questions about the port of Vsphere mirror

    I set up a lightweight VM that would deal with inter-VM traffic. To do this, I want to activate the duplication of port between virtual machines.


    I have ESXi 5.5 Update 1 installed, use the Vsphere (no webclient) client. I see no duplication of port capacity on my Vsphere Client

    vsphere_esxi5.5_sc1.png

    I have some very basic questions:

    (1) all documentation I've read involving 'Port mirror' is done via web Vsphere client. Vsphere is provided with Vcenter (please, correct me if I'm wrong)

    (2) only functions with "Distributed Virtual Switch", not "switch vSphere Standard" port mirroring. How can I activate "Distributed Virtual Switch"? What products can I download/install and try (suppose I go to the user a license for 60 days)

    (3) exist what API to enable/disable/setup Port mirroring?

    (1) all documentation I've read involving 'Port mirror' is done via web Vsphere client. Vsphere is provided with Vcenter (please, correct me if I'm wrong)

    Because the mirror of port requires a distributed switch, you will need to vCenter Server and once in vCenter Server, you can the vSphere Web Client of the user or the vSphere Client (c# version).

    (2) only functions with "Distributed Virtual Switch", not "switch vSphere Standard" port mirroring. How can I activate "Distributed Virtual Switch"? What products can I download/install and try (suppose I go to the user a license for 60 days)

    You can download the server vCenter Server (60 day trial) and you'll have an Enterprise Plus version for your ESXi host vSphere.

    (3) exist what API to enable/disable/setup Port mirroring?

    Check the comments of this blog: http://blogs.vmware.com/vsphere/2013/01/vsphere-5-1-vds-feature-enhancements-port-mirroring-part-1.html

  • Very basic question :) in the forum

    :)

    I don't know her like a basic question, but struggling to get this straight all in detachment.
    I just wanted to know the steps to connect the text into a hyperlink when validating responses...

    If someone can solve the example: here_ "go-ahead" should be a hypertext link and the link should point to google.com

    See you soon,.
    Manik.

    Something like this:

    [url http://oracle.com] Oracle

    How to write on it?

    [url http://oracle.com]Oracle[/url]
    
  • Basic question on the configuration of the OVD

    Hi gurus
    I have a basic question about the configuration of the TPM. I have all the "employees" in Active Directory and 'Employees + external users' in OID. The employee user password is maintained in AD, while the same for the external user is maintained in OID.

    Query:
    I need to configure authentication for an application for the employees present in the AD and present external users in OID. I have to join the profiles of employees present in AD and OID. Even if the employees are present in the OID, I don't want to configure for authentication of the OAM.

    How can I implement this using OAM and OVD.

    I got your condition.

    You said that OID contains external users as well as employees. You manage a container separated for employees in OID. If so, you job would be easy. If there is no container separated for employees on the OID and storing all users (employees and external users) in the same container (default: cn = Users, dc = xxx, dc is com) then you can get the list of AD users only with the following ldapsearch command:

    ldapsearch h Pei d 'cn = sleep '' w sub s b '' 'objectclass = user' SamAccountName

    Create three adapters OVD:

    1 adapter used (this should point to Active Directory)

    2. users adapter (when creating this, you have to exclude users AD, just similar to find the above option).

    3 create the adapter to store as the clubs above two adapters.

    Now, OAM should talk to store adapter.

    I hope this helps.

    Thank you
    GK

    Published by: GK Goalla on October 3, 2012 12:34

  • Entities does not Contribution - very basic question

    Hi guys,.

    My apologies for this very basic question: I am very new to Hyperion, with just one week of training! Anyway, I'm building a basic model and have noticed that my features are not in the dimension value roll altogether the [Contribution]. This means that entities do not roll upwards!

    It was suggested that problem was that I needed a Sub consolidate in the rules, but I put the attribute 'ConsolidationRules' = n. In the documentation it is defined as "N to use the consolidation by default and eliminations".

    I was wondering is there anything else that is needed to use default groups, or do I need to create rules?

    Thank you
    G

    Why do you think that's not driving? If your building rules are set to "n" you don't need rules.

    Make sure that your presentation was made to IsConsoldiate. Make sure that you're displaying a "Parent.Child" to total Contribution.

  • Basic question Oracle BI

    I have a request of presentation of Oracle, where there are answers, dashboards etc etc already set and I can visualize coorectly in the current state.
    What I need now is to migrate to another server of BI.
    I don't think it's enough to migrate the RPD file, update the tnsnames.ora and everything will be OKto. What should I do? What is the fundamental role of the RPD file?

    Sorry for the basic question, but I'm a newbie

    Thank you

    Jin
    You must migrate the RPD file and the catalog web and update the nqsconfig.ini and instanceconfig.ini accordingly.
    refer to this link
    http://www.rittmanmead.com/2008/04/migration-OBIEE-projects-between-dev-and-prod-environments/

    assign points if found useful.

  • Basic question - graphic legends in the heads side

    Hey,.

    Hooray, my company eventually got Framemaker, and I am now in charge of the control of FM and fall all our old content FM. I'll use it to create our manual of the product.

    Anyway, what I do is align text in the heads side with graphs in the main text column. As follows, from the old manual:

    text_in_sidehead.jpg

    So far, I tried to create a paragraph tag that sets the text in the head to one side. It works, but I can't align the text of the head to one side with the chart. (The paragraph Designer options seem to allow only aligning the text side-head with other paragraphs, no graphics).

    So, given that our manual is full of graphs that need aligned beside text, what is the best approach?


    Thank you very much. I know it's a very basic question.

    Ian

    A fairly standard practice with framework is to create a paragraph tag that is used only as a part of positioning to hang frames anchored (with images) and tables. The font size is usually set to something like 2 or 4 points, so that it fits in the documents without adding white space. And he never actually wears text.

    So if you create an anchor tag and anchor your chart it, you should have a tag to align a sidehead against.

    However, if it was me, I probably hang a picture two-column a row of my anchor tag and the graphics of the pop in a cell and a legend in the second.

    See you soon,.

    Art

  • Basic question on circles

    Im sorry new to this, so it will probably be a really basic question.  So, I designed a few Web pages and the opinions they do not adapt to different resolutions.  Now, I have been in charge of the search and code search and just can't quite figure out how to get the bottom to adjust.  If someone could help me that would be great!

    Background images are static unless you repeat them or add you a solid behind color to fill the empty spaces.

    CSS:

    / * with background color * /.

    Body {background: url #CCC (some - bg.jpg) non-repetition}

    or

    / * Repeat image * /.

    Body {background: url repeating (some - bg.jpg)}

    Liquid layouts

    http://ALT-Web.com/templates/CSS2-liquid-page.shtml


    Layouts fixed-width, centered

    http://ALT-Web.com/templates/CSS2-centered-page.shtml

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB
    www.Alt-Web.blogspot.com

  • Basic question on the client connection to the Fund with several oracle instance

    Oracle 11:

    I have just a basic question about how doing listener/customer determine how oracle instance to connect to:

    1 tnsnames.ora and listener defines the configuration of the host and the port is that how he comes to know? I'm just trying to understand if the request comes to the listener how listener knows what Oracle instance to route traffic to?

    2. when I do sqlplus / as sysdba how knows what Oracle instance to connect to?

    Look at the differences

    [oracle@srv01-18-102 trace]$ cat $ORACLE_HOME/network/admin/listener.ora
    
    cat: /u01/app/oracle/product/ 11.1.0/dbhome_1/network/admin/listener.ora: No such file or directory
    
    -- start listener
    
    [oracle@srv01-18-102 trace]$ lsnrctl start
    
    LSNRCTL for Linux: Version 11.1.0.7.0   on 09-JUN-2009 01:05:42
    
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    
    Starting /u01/app/oracle/product/ 11.1.0/dbhome_1/bin/tnslsnr: please wait...
    
    TNSLSNR for Linux: Version 11.1.0.7.0
    Log messages written to /u01/app/oracle/diag/tnslsnr/srv01-18-102/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srv01-18-102.amis.local)(PORT=1521)))
    
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.1.0.7.0
    Start Date                09-JUN-2009 01:05:42
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Log File         /u01/app/oracle/diag/tnslsnr/srv01-18-102/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srv01-18-102.amis.local)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    
    -- startup database
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    
    SQL> startup
    ORACLE instance started.
    
    Total System Global Area  849530880 bytes
    Fixed Size                  1346664 bytes
    Variable Size             725615512 bytes
    Database Buffers          117440512 bytes
    Redo Buffers                5128192 bytes
    Database mounted.
    Database opened.
    
    SQL> alter system register;
    
    System altered.
    
    -- check again after a while (or for registration via "alter system register")
    
    [oracle@srv01-18-102 trace]$ lsnrctl status
    
    LSNRCTL for Linux: Version 11.1.0.7.0    on 09-JUN-2009 01:05:50
    
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.1.0.7.0
    Start Date                09-JUN-2009 01:05:42
    Uptime                    0 days 0 hr. 0 min. 8 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Log File         /u01/app/oracle/diag/tnslsnr/srv01-18-102/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srv01-18-102.amis.local)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srv01-18-102.amis.local)(PORT=8080))(Presentation=HTTP)(Session=RAW))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srv01-18-102.amis.local)(PORT=2100))(Presentation=FTP)(Session=RAW))
    Services Summary...
    Service "DEMO" has 1 instance(s).
      Instance "DEMO", status READY, has 1 handler(s) for this service...
    Service "DEMOXDB" has 1 instance(s).
      Instance "DEMO", status READY, has 1 handler(s) for this service...
    The command completed successfully
    
    -- BEQUEATH
    
    SQL> host
    [oracle@srv01-18-102 ~]$ set ORACLE_SID=DEMO
    [oracle@srv01-18-102 ~]$ sqlplus / as sysdba
    
    SQL*Plus: Release 11.1.0.7.0   on Tue Jun 9 01:17:42 2009
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    
    -- Query V$PROCESS
    
    SQL> desc v$process
    
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ADDR                                               RAW(4)
     PID                                                NUMBER
     SPID                                               VARCHAR2(24)   <---
     USERNAME                                           VARCHAR2(15)
     SERIAL#                                            NUMBER
     TERMINAL                                           VARCHAR2(30)
     PROGRAM                                            VARCHAR2(48)
     TRACEID                                            VARCHAR2(255)
     TRACEFILE                                          VARCHAR2(513)
     BACKGROUND                                         VARCHAR2(1)
     LATCHWAIT                                          VARCHAR2(8)
     LATCHSPIN                                          VARCHAR2(8)
     PGA_USED_MEM                                       NUMBER
     PGA_ALLOC_MEM                                      NUMBER
     PGA_FREEABLE_MEM                                   NUMBER
     PGA_MAX_MEM                                        NUMBER
    
    SQL> select * from v$process where program like '%(TNS V1-V3)%';
    
    52ACC7FC         19 26000                    oracle                   2
    UNKNOWN                        [email protected] (TNS V1-V3)
    
    /u01/app/oracle/diag/rdbms/DEMO/DEMO/trace/DEMO_ora_26000.trc
                                                               1286124       2699092
             1048576     4616664
    
    1 row selected.
    
    -- "Jump to OS"
    
    SQL> host ps -ef|grep 26000
    
    oracle   26000 14346  0 01:09 ?        00:00:01 oracleDEMO (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
    oracle   27040 14346  0 01:16 pts/1    00:00:00 /bin/bash -c  ps -ef|grep 26000
    oracle   27042 27040  0 01:16 pts/1    00:00:00 grep 26000
    
    -- Connect via listener to the database
    
    -- content off tnsnames.ora
    
    [oracle@srv01-18-102 trace]$ cat $ORACLE_HOME/network/admin/tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/ 11.1.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    
    DEMO =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = srv01-18-102.amis.local)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = DEMO)
        )
      )
    
    [oracle@srv01-18-102 ~]$ sqlplus otn/otn@DEMO
    
    SQL*Plus: Release 11.1.0.7.0   on Tue Jun 9 01:28:52 2009
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    
    SQL> set head off feed on
    
    SQL> desc v$process
    
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ADDR                                               RAW(4)
     PID                                                NUMBER
     SPID                                               VARCHAR2(24)   <---
     USERNAME                                           VARCHAR2(15)
     SERIAL#                                            NUMBER
     TERMINAL                                           VARCHAR2(30)
     PROGRAM                                            VARCHAR2(48)
     TRACEID                                            VARCHAR2(255)
     TRACEFILE                                          VARCHAR2(513)
     BACKGROUND                                         VARCHAR2(1)
     LATCHWAIT                                          VARCHAR2(8)
     LATCHSPIN                                          VARCHAR2(8)
     PGA_USED_MEM                                       NUMBER
     PGA_ALLOC_MEM                                      NUMBER
     PGA_FREEABLE_MEM                                   NUMBER
     PGA_MAX_MEM                                        NUMBER
    
    SQL> select * from v$process where spid in (27372);
    
    52ACC7FC         19 27372                    oracle                   4
    UNKNOWN                        [email protected]
    
    /u01/app/oracle/diag/rdbms/DEMO/DEMO/trace/DEMO_ora_27372.trc
                                                                705064        938372
                   0      938372
    
    -- Use info off v$process to join with v$session
    
    SQL> select * from v$session where paddr = '52ACC7FC';
    
    52112690        170          9     107441 52ACC7FC         93
    OTN                                     3 2147483644
                             ACTIVE   DEDICATED         93
    OTN                            oracle
    27370
    srv01-18-102.amis.local
    pts/1                          [email protected] (TNS V1-V3)
    USER       4C83D838     1817844678 4qpuh5jq5n6y6                0
    09-JUN-09             16777216 4C83443C      1421292656 b1vt3u9abfd3h
                    0 09-JUN-09              16777216
    
    SQL*Plus                                          3669949024
                                               0
    
                    8244            -1              0               0             0
    09-JUN-09                     0 NO  NONE          NONE       NO
    OTHER_GROUPS                     DISABLED ENABLED  ENABLED
                         0
                                                                     NOT IN WAIT
                                               41        322
    SQL*Net message to client
    driver id                                                        1413697536
    0000000054435000
    #bytes                                                                    1
    0000000000000001
                                                                              0
    
    00                  2000153315           7
    Network                                                                  -1
                  0 WAITED SHORT TIME                14
                          3730
    DEMO                                                            DISABLED FALSE
    FALSE FIRST EXEC                100 52ACC7FC               4
    
    -- Use info off V$process to look pid on OS
    
    SQL> host ps -ef | grep 27372
    
    oracle   27372     1  0 01:30 ?        00:00:00 oracleDEMO (LOCAL=NO)
    oracle   27413 27380  0 01:30 pts/1    00:00:00 /bin/bash -c  ps -ef|grep 27372
    oracle   27415 27413  0 01:30 pts/1    00:00:00 grep 27372
    
  • LabVIEW Basic Questions

    Hello

    I have 2 Questions:

    I want to draw a few plots like this: http://elektroniktutor.de/bauteilkunde/bt_pict/trkennl.gif

    now all my parcels have the X in the right position. Can I turn to the left?

    If I cancel the side looks ok but the legend of the X X won't (because its negative results).

    I have haave seen OR often in the programs that they have a stop and run button.

    How can I implement this?

    the program runs all the time... with start I start the task and with stop I complete the task (but the program will still work)

    I have only yfound the Funcction 'Stop' but it cancel the entire session.

    Hey crossrulz beat me to it.

    Back to posters questions.  Yes, do not what you code does.  Try what I've attached.  It is your program with some improvements.  I think that the feature must be the same.  Just click Run once.  Then, when you want to run, click on the Start button.  To stop click the stop key once again, or if the condition is met that normally would stop the VI arrives, it stops on its own.  Also, to stop the application click on the close button (the X red) as a normal program.  Of course if a test runs that the judgment will be ignored until the test ends.  You can add your own test button to give up if you wish.

    Any other general comments.  Do not use the dynamic data types, do not use screw express and DAQ Assistant.  Do not make the block diagram have to scroll in more than one direction.  Do not run continuously.  Do not use the button of toolbar to Abort VI or primitive.

  • A few questions about LabView and (fairly complicated) thermocouples

    Hello, I intend to read [this is only 16] 20 thermocouples (type K - in data acquisition, assistant it is J but it will change soon). I use two devices, usb-6008 and usb 6251. I had a BT program (see table below) and I have some questions/statements that need to be confirmed:

    1. I plugged my devices, put DAQ Assistant on the Panel, the temperature chose->-> K thermocouples and I scored channels by dragging a slider 'clicked' on all channels. So now I'm able to read all channels, right?

    2. I have added a few thermometers and digital indicators with them to have an accurate reading of thermometers in digital data.

    3. I've read a few articles on tracing multi channels on a single diagram of wave and I want to apply to my program. Basically, I don't know how to run, I need to make a table and plug it on the graph of the wave. The thing is, I don't know how to do it.

    4. I would get 1 sample per second 1, I added the delay time = 1000ms. Unfortunately, DAQ Assistant says it works like 1 k samples by 1 Hz.

    I am quite fresh in LabView and currently I view tutorials and other things. I would be grateful for advice.

    BTW, I can't test if it works with thermocouples connected because I don't have at the moment and the place where I would be able to test the program has very limited access


  • File reading in Matlab, LabVIEW 2012

    Hello

    I am very new to LabVIEW and this could be a very simple question.

    I'm reading a simple labview .vi file in Matlab. I use the version of LabVIEW 2012 32 bit. I saved a file .vi and tried to load it into Matlab as mentioned inof LabVIEW in the MATLAB® environmentsection of http://digital.ni.com/public.nsf/websearch/2f8ed0f588e06be1862565a90066e9ba?Open Document. But I can't load the data. Maybe I am doing it the wrong way.

    In  Section Of LabVIEW in the MATLAB® environment , I do not understand what is meant by ""write into the file of worksheet VI on the programming "' e/s filespalette. '"

    Can someone explain to me how to do this? I'm just trying to read any exmple saved in LabVIEW in Matlab. If anyone can give another example, which would also help a lot.

    Thanking you.

    INDI

    INDI,

    I think that your problem may be to understand the terminology.  .Vi files are LabVIEW programs, not data. Those who cannot be "read" by MATLAB.

    Writing in the worksheet File.vi is a VI that comes with LV on the palette file. It can be used in your program to write data to a file text delimited by tabs. These files can be read by MATLAB.

    What it the way which operate you: generate the data you want to save in your LabVIEW VI in the form of a table of numbers. Wire of this array of numbers to Scripture in the File.vi worksheet at the time where you want to save the data. If you do not connect a path at the entrance to the path of the file, a dialog box appears asking where to save the data.

    Lynn

  • USB-6501 - impossible to find a basic example of Labview

    Hello

    I recently bought a USB-6501 card and I used it in my own succesfully end and C++ programs using the DAQmx drivers.

    Then I tried to move to Labview 2009 (I never used Labview) so I looked for a simple example.

    I tried to boot from the example 'interactive Control Panel' (http://digital.ni.com/public.nsf/allkb/AF0F31EE5D2AD23F862573140009D7C2?OpenDocument).

    I had to install the 'DAQmx Base' for him to start, as described in the previous link. now it begins (before Labview attempted to get a few missing .vi) but I get a message "error 200220 occurred at an unidentified locatio.

    Then I realized this example is 'old' (as explained here: http://forums.ni.com/ni/board/message?board.id=170&thread.id=209247), and it is suggested to look for a new one in example Finder ' entry-level equipment / output-> DAQmx-> Digital measurement (or generation)-> read Dig Port.VI.

    I tried, but along the way ' entry-level equipment / output-> DAQmx-> "only a folder named"Analog Measurement\Voltage"exists.

    Also in the search for 'Reading dig Port.VI' does not work.

    I've already spent many hours in this research and tent and the fact that I am not able to find not even a basic example, it is quite frustrating and it is making me give up the idea of using Labview.

    Please can anyone give me any suggestions where find/download an example simple and minimum to use my USB6501 in Labview 2009?

    Thank you

    Scipione.

    First, install DAQmx Base was a mistake. Uninstall it and then install the Driver-OR-DAQmx. The driver must be installed after the installation of LabVIEW. After installation, make sure that the device is listed in MAX under "DAQmx devices. If it is not, your installation is still not correct.

    To search for example LabVIEW, see help > find examples. Under Input and Output hardware > DAQmx, you will find the digital generation and numerical measures. You have to look at the simple, timed software examples such as read write dig Chan, writing Port to dig, dig chan, reading Dig Port. You also have the option to use the DAQ Assistant.

  • Some basic questions on TestStand

    Hello

    I'm new on the test stand and I just finished my first sequence. I have some questions on how to do better.

    My sequence steps about 100 it is running. One of the steps that happen quite frequently is a break so that the previous output VI can take effect. Right now I use a VI with one that takes an integer as an input and makes a break during this time. Is there a more elegant way to do it?

    VI another I use saves some data and runs all the 6 step or so. The only difference between each execution is a setting of path for the filling of journal to be issued. I wish that the sequence to be as clean and well placed as possible. Is there a clever way to short-circuit the number of steps down?

    Basically, it seems that you have basically 3 things that could potentially happen: travel, Journal, break sensor.

    So why not create a data type for every thing.  For example, your MoveSensor data type would be a container that looks like this:

    MoveSensor

    Boolean SensorFlag

    Digital NewPosition

    Digital CurrentPosition

    etc...

    Your Log data type would look like this:

    Boolean LogFlag

    String FilePath

    Digital time

    etc...

    Your break would be just a number (PauseTime)

    Then, you bring a container with each type of data into it.  And then do a table of these containers.

    Now by using the ForEach flow control step type, you can iterate through the table.  The pseudo code would look like this:

    ForEach item in my table

    If CurrentElement.MoveSensor.SensorFlag is true

    MoveSensor to CurrentElement.MoveSensor.NewPosition

    CurrentElement.MoveSensor.CurrentPosition is equal to the new position

    If LogFlag is true

    Log LogPath (maybe the loop on that for a certain period of time)

    Wait (CurrentElement.PauseTime) set to 0 if you do not need to take a break

    End ForEach

    This way you would add just the elements in the table.  You can also write the array a property object (read about those in the help) file and the test, just read in a different property object file that would fill your table with different values in function.

    Hope this helps some,

Maybe you are looking for