Configure the cDAQ by programming with LabVIEW

I have a chassis cDAQ with two modules. I want to (for reasons peculiar, too complicated to enter in ) to be wheat to programmatically configure the MAX configuration for it. And I mean everything.

I need, in my LabVIEW application, to be able to tell MAX to wipe its current configuration, detect the chassis with the two modules, rename the chassis and two modules and create a lot of tasks.

I'm pretty sure I can create jobs by program, but I had little luck find info on reconfiguring hardware detected programmatically.

Can it be done?

Thoric,

The only way I know to rename the material without using MAX is to import a configuration file with new names for the same hardware.  One version of the configuration file is a. INI file which as you know is very easy to create/edit in LV MAX copy Configuration.vi can move the configuration file in both directions.  I've been playing with it using my cDAQ and it seems to work.

I could see getting started material and leave the OR to detect it.

Config for export. INI and change the names of items, etc.

Import configuration updated the Max and replace the existing configuration

Here's a quick example of how I did the export/import

Tags: NI Software

Similar Questions

  • Can someone give an example of how to configure the subnet mask associated with the network and host of an IP address part?

    Can someone give an example of how to configure the subnet mask associated with the network and host of an IP address part?

    Hi stuckfree,

    The question you posted would be more appropriate on the TechNet Forums. I would recommend posting your request here.

    http://social.technet.Microsoft.com/forums/en/itproxpsp/threads

  • cDAQ works correctly with Labview 2013?

    I have already upgraded to the LV805 for Labview 2013 in an existing system that has the cDaq-9172, NI9205, NI9263, and NI 9403.

    When executing NI MAX, it detects that cDAQ 9172 (chassis), but none of the cDAQ modules are detected.

    When I open my application, the paths of the cDAQ doesn't appear in entry options, so when it works, and the error message.

    I have SP1 2013 LV f2 and NEITHER-DAQmx 9.8

    This is a known issue, or I have a configuration problem?

    Help, please

    EDGAR_PLATRONICS wrote:

    Now, I have another problem.

    When I turn on my PC cDAQ does not start automatically.

    I have to go to services Windows and manually start OR Setup manager. Same startup is set to Automatic

    Once I run it, cDAQ works correctly.

    My company uses McAffe antivirus

    Concerning

    Edgar

    Mine also.  (McAffe)

    It turns out than if you change the startup type to "Automatic (delayed services start)" service OR McAffe plays more enjoyable.

  • How to configure the network home wiFi with dlink router

    I need to create a home network using the dlink WiFi router
    a computer with Vista and the second with XP
    can someone tell me what havo to do to configure the router etc etc o give me same informamation on where I can learn to do
    I want just the old pc with xp for the server and the vista one customer but more importantly I need the file on XP to migrate under vista.
    Thank you very muche for your end of the patient cooperation
    in return, I give free cooking classes
    see you soon

    I'm not sure if you are asking how to set up a secure wireless network, if you ask how to share files between your two computers (and there is no "customer" or "server" in a working group, in a field - which is not), or both.

    So I will give you information on doing both.

    Router - configure manually

    Setting up a router is simple enough. Normally, you run the CD that came with the router and follow the instructions. If you're running Vista, maybe the CD that came with the router does not work; I do not know this. But you can set up the router without the CD. Note that if you have Internet cable for the connection you have just set up the router to DHCP (or there may even be a choice of cable to choose). If you have DSL Internet, you select TRP usually and enter the username and password you selected when you initially set the DSL connection. So:

    1. turn off the power to your cable modem.
    2. attach a class (usually supplied with the router) ethernet cable cat5e port Internet/WAN from the router to the ethernet port on the cable modem.
    3. connect the ethernet cable cat5e from the network card in your computer to one of the ports on the router. If you do not have an ethernet cable (because you were using USB), you will need to go to the store and buy a.
    4. turn on the cable modem. After that all the lights are on, turn on the router.

    To configure the router:

    Have a computer connected to the router with an ethernet cable. Examples given are for a Linksys router. See the manual of your router or the router mftr's Web site. for the parameters by default if you don't have a Linksys. Open a browser such as Internet Explorer or Firefox and in the address bar type:

    http://192.168.1.1 [Enter] (it is default IP address of the router, which varies from router to router then check your manual)

    This will bring you to the login screen of the router. The default username is blank and the Linksys default password is "admin" without the quotes. Enter this information. You are now in the configuration of the router utility. Your configuration utility may be slightly different from mine. The first thing to do is to change the default password because * all * known default passwords for different routers.

    Click the Administration link at the top of the page. Enter your new password. MAKE A NOTE SOMEWHERE THAT YOU WILL NOT LOSE. Re-enter the password to confirm it, and then click Save settings at the bottom of the page. The router will reboot and show you the box of connection again. Do not fill in the user name and put it in your new password to enter the configuration utility.

    Now, click on the link wireless at the top of the page. Change the network name (SSID) wireless by default to something, you'll recognize. I suggest that my clients not use their surname as the SSID. For example, you might want to name your network wireless network "CastleAnthrax" or similar. ;-)

    Click on save settings and when you get the prompt that your changes were successful, click the wireless security link which is just beside the Basic Wireless Settings link (where you changed your SSID). Most computers purchased during the last 4 years have the wireless hardware that will support WPA2-Personal (also known as WPA2-PSK). This is the desired encryption level. If your wireless hardware is older, use WPA. Don't use WEP, because who is easily broken within minutes. So go ahead and set the Security Mode WPA2-Personal. Do this and enter a password. For example, you could use the password ' here be dragons, beware you scurvy dogs! The password is what you enter on all computers that are allowed to connect to the wireless network. MAKE A NOTE SOMEWHERE THAT YOU WILL NOT LOSE.

    At this point, your router is set up and if the computer that you use to configure the router will normally connect wireless, disconnect the ethernet cable and wireless of the computer should see your new network. Enter the password that you have created (exactly as you wrote it with all capital letters and punctuation) to join the network and start surfing.

    Networking

    Here are the steps of general network troubleshooting. Just cannot apply to your situation, so just take the bits that are. It may seem daunting, but if you follow the steps in the links and suggestions below calmly and consistently, you will have no difficulty to implement your sharing.

    Excellent, comprehensive, but easy to understand article on sharing files/printer under Vista. Contains information about sharing printers and files, and the folders:

    http://TechNet.Microsoft.com/en-us/library/bb727037.aspx

    For XP, start by running the Network Setup Wizard the on all machines (see warning in section A below).

    Problems sharing files between computers on a network are usually caused by 1) a misconfigured firewall or a firewall neglected (including a dynamic firewall in a virtual private network); or (2) inadvertently run two firewalls such as the firewall of Windows and a third-party firewall. and/or (3) do not have accounts to the same users and passwords on all computers in the workgroup. (4) tries to create actions where the operating system does not.

    A. configure the firewall on all machines to allow traffic to local area network (LAN) as being approved. With the Windows Firewall, it means which allows file sharing / print on the Exceptions tab normally run the XP Network Setup Wizard will take care of this for these machines. The only "witch hunt", it will turn on the XPSP2 Windows Firewall. If you are not running a third-party firewall or you have an antivirus/security with its own firewall component program, then you're fine.  With a third-party firewall, I usually set up the allocation of LAN with an IP address range. E.g. would be 192.168.1.0 - 192.168.1.254. Obviously you would substitute your correct subnet. Refer to the safety of any third party program or the user forums for how to correctly configure its firewall. Do not run more than one firewall. DON'T STOP FIREWALLS; CONFIGURE THEM CORRECTLY.

    (B) to facilitate the Organization, put all computers in the same workgroup. This is done from the System applet in Control Panel, the computer name tab.

    C. create the counterpart of the user accounts and passwords on all machines. You do not need to be logged into the same account on all machines and assigned to each user account passwords can be different; accounts/passwords just need to exist and to match on all machines. DO NOT NEGLECT TO CREATE PASSWORDS, EVEN IF ONLY OF SIMPLE. If you want a machine to boot directly to the desktop (a particular user account) for convenience, you can do this:

    XP - configure Windows to login automatically (MVP Ramesh) - http://windowsxp.mvps.org/Autologon.htm

    Vista - Start ORB > Search > type: netplwiz [Enter]
    Click continue (or provide an administrator password) when you are prompted by UAC

    Uncheck "users must enter a user name and password to use this computer". Select a user account to connect automatically by clicking on the account you want to highlight and press OK. Enter the password for this user account (when it exists) when you are prompted. Leave blank if there is no password (null).

    D. Si one or more of the computers is XP Pro or Media Center, turn off Simple file sharing (Folder Options > view tab).

    E. create share as you wish. XP Home does not share the users directory or the Program Files, but you can share folders inside those directories. A better choice is to simply use the Shared Documents folder. See the first link above for more information on Vista sharing.

    F. you have the job of file sharing (and tested by exchanging a file between machines), if you want to share a printer connected locally to one of your computers, share of this machine. Then go to the printer mftr Web site. and download the latest drivers for the correct system. Install them on the target machines. The printer must be collected during the installation procedure. If this isn't the case, install the drivers and then use the Add Printer Wizard. In some cases, printers must be installed as local printers, but it is outside this response.
    MS - MVP - Elephant Boy computers - don't panic!

  • A few days, I bought a mac mini which I transferred the data and programs with time machine: programs have been updated except for iMovie, and now it seems that I have to pay for the update: possible? What I am doing wrong?

    A few days ago, I bought a mac mini and I transferred all my data and programs with time machine: all programs have been updated but iMovie (7.1.4)... However, it seems that, to update to the latest version, I have to pay to download on Appstore: is it possible? what I am doing wrong?

    If it were a new mac mini, you need already installed 10.1 iMovie.  Otherwise, but you already have iMovie 9 registered version to your Apple ID, you can upgrade to version 10 for free, but if (as it appears) is an earlier version then you have to buy version 10.

    Geoff.

  • How to load the 4155B file, run it and record the results to Excel with Labview

    Hi, I need model command support, sending to 4155B using Labview.

    I would like to load the file from the disk on 4155B using Labview. First of all, I tried to write the command using MAX and found that the command that I write to 4155 B contains the error message. "I sent the two GT ' MYFILE P" and : MMEM:LOADTAT 0, filename orders every time to 4155 B, but failed. May I know what kind of command must send to the communication with the instrument?

    Besides, I need to run the content of the file, I should send it OUT @Hp4155; "' XE ' command?

    After running, I need save the result in excel file back.

    Grateful if someone can help. Thanks in advance for your help.

    Kind regards

    Yong

    SH_Yong wrote:

    Hi, I need model command support, sending to 4155B using Labview.

    I would like to load the file from the disk on 4155B using Labview. First of all, I tried to write the command using MAX and found that the command that I write to 4155 B contains the error message. "I sent the two GT ' MYFILE P" and : MMEM:LOADTAT 0, filename orders every time to 4155 B, but failed. May I know what kind of command must send to the communication with the instrument?

    Besides, I need to run the content of the file, I should send it OUT @Hp4155; "' XE ' command?

    After running, I need save the result in excel file back.

    Grateful if someone can help. Thanks in advance for your help.

    Kind regards

    Yong

    The SCPI commands are found in the manual of the instrument.

  • How to find the point of leakage with Labview?

    I use a myRIO to develop a system to help people imapaired in their navigation to visually. I already have the image processing of which is to be acquired by the device (edge detection and research of straight lines).

    How can I end the vanishing point of the two edges of a path to an image with LabVIEW? There is a special function that I can use?

    Thank you!

    The vanishing point is the intersection of two lines, no?

    https://www.Google.com/webhp?SourceID=chrome-instant&ion=1&ESPV=2&IE=UTF-8#q=intersect%20point%20Of%...

  • Cannot bind to the shared object created with LabVIEW 2009

    I have problems referring to a shared library built from a LabVIEW VI under RHEL 5 with LabVIEW 2009.

    To illustrate the problem, I created a VI with a digital input and output that corresponds to a certain number. Then, I created a draft specification of build to create a shared library with a feature that makes use of this VI square. The shared object is created successfully (square.so).

    When I try to compile a test application written in C, that connects to this library, I get errors in the following link:

    cc  -I/usr/local/natinst/nidaqmxbase/include -I/usr/local/natinst/LabVIEW-2009/cintools build/square.so  test.c   -o test/usr/local/lib/liblvrtdark.so.9.0: undefined reference to `std::basic_istream >& std::basic_istream >::_M_extract(float&)@GLIBCXX_3.4.9'/usr/local/lib/liblvrtdark.so.9.0: undefined reference to `std::basic_istream >& std::basic_istream >::_M_extract(double&)@GLIBCXX_3.4.9'/usr/local/lib/liblvrtdark.so.9.0: undefined reference to `std::basic_istream >& std::basic_istream >::_M_extract(double&)@GLIBCXX_3.4.9'/usr/local/lib/liblvrtdark.so.9.0: undefined reference to `std::basic_ostream >& std::basic_ostream >::_M_insert(double)@GLIBCXX_3.4.9'/usr/local/lib/liblvrtdark.so.9.0: undefined reference to `std::basic_istream >& std::basic_istream >::_M_extract(float&)@GLIBCXX_3.4.9'/usr/local/lib/liblvrtdark.so.9.0: undefined reference to `std::basic_ostream >& std::basic_ostream >::_M_insert(double)@GLIBCXX_3.4.9'collect2: ld returned 1 exit statusmake: *** [test] Error 1
    

    Running ldd reveals that liblvrtdark.so.9.0 is used for the execution of labview.

    In order to investigate on what could be the cause of the problem, I have compiled the nidaqmx basic examples, and I don't have an error. Current running ldd as reveals that he uses liblvrtdark.so.8.2 for the view of laboratory, time of execution.

    My suspicion is that some components of labview are being compiled with gcc 3.4 while others are being compiled with gcc 4.1 (which is the default compiler in RHEL 5).

    Any ideas how I could fix the build errors?

    Thanks in advance for your suggestions.

    PS.

    I enclose a tar file with the source files and here are the details of the ldd:

    ldd build/square.so         linux-gate.so.1 =>  (0x008de000)        liblvrtdark.so.9.0 => /usr/local/lib/liblvrtdark.so.9.0 (0x00b9c000)        libc.so.6 => /lib/libc.so.6 (0x00110000)        libstdc++.so.6 => /usr/local/lib/LabVIEW-2009/patchlib/libstdc++.so.6 (0x009a7000)        libm.so.6 => /lib/libm.so.6 (0x00756000)        libdl.so.2 => /lib/libdl.so.2 (0x00256000)        libpthread.so.0 => /lib/libpthread.so.0 (0x0025a000)        /lib/ld-linux.so.2 (0x00b80000)        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00272000)
    
    ldd /usr/local/natinst/nidaqmxbase/lib/libnidaqmxbase.so.3.3.0         linux-gate.so.1 =>  (0x00e50000)        libnidaqmxbaselv.so => /usr/local/lib/libnidaqmxbaselv.so (0x00248000)        libc.so.6 => /lib/libc.so.6 (0x00689000)        /lib/ld-linux.so.2 (0x00b80000)        liblvrtdark.so.8.2 => /usr/local/lib/liblvrtdark.so.8.2 (0x00e51000)        libdl.so.2 => /lib/libdl.so.2 (0x00813000)        libpthread.so.0 => /lib/libpthread.so.0 (0x001b0000)        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x009c7000)        libm.so.6 => /lib/libm.so.6 (0x00b0a000)        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0050c000)
    

    Hi mimi,

    I'm happy to report that I managed to get the code to work. I have included some of the steps I experienced the problem in case it might help improve the documentation or future generations.

    In response to your question about the "error 1" reported by do, it's just an indication that detected a compiler error (it probably resembles the return code of the compiler).

    The errors ' undefined reference... @GLIBCXX_3.4.9 "have been narrowed down. The generated labview shared library, the square.so, links to /usr/local/lib/LabVIEW-2009/patchlib/libstdc++.so.6 which is a symlink to usr/local/lib/LabVIEW-2009/patchlib/libstdc++.so.6.0.9. I decided to compare this version of libstdc ++ that included with RHEL:

    strings /usr/local/lib/LabVIEW-2009/patchlib/libstdc++.so.6 | grep GLIBCXXGLIBCXX_3.4GLIBCXX_3.4.1GLIBCXX_3.4.2GLIBCXX_3.4.3GLIBCXX_3.4.4GLIBCXX_3.4.5GLIBCXX_3.4.6GLIBCXX_3.4.7GLIBCXX_3.4.8GLIBCXX_3.4.9GLIBCXX_FORCE_NEW
    
    strings /usr/lib/libstdc++.so.6 | grep GLIBCXXGLIBCXX_3.4GLIBCXX_3.4.1GLIBCXX_3.4.2GLIBCXX_3.4.3GLIBCXX_3.4.4GLIBCXX_3.4.5GLIBCXX_3.4.6GLIBCXX_3.4.7GLIBCXX_3.4.8GLIBCXX_FORCE_NEW
    

    So libstdc ++ RedHat does not include a string for GLIBCXX_3.4.9.

    With this in mind, I was able to get my test application to compile using the version of LabVIEW libstdc ++ using the following makefile:

    .PHONY: all cleanCPPFLAGS=-I/usr/local/natinst/nidaqmxbase/include -I/usr/local/natinst/LabVIEW-2009/cintoolsLDFLAGS=build/square.so \        /usr/local/lib/LabVIEW-2009/patchlib/libstdc++.so.6 \        -Wl,--rpath -Wl,/usr/local/lib/LabVIEW-2009/patchlib/
    
    all: test
    
    clean:        rm -f test *.o
    

    When you try to run the application, I got the following error:

    ./test: error while loading shared libraries: /usr/local/lib/liblvrtdark.so.9.0: cannot restore segment prot after reloc: Permission denied
    

    But apparently, it's because of SELinux prohibiting the use of libraries shared with moving text.
    This can be disabled by running /usr/sbin/setenforce 0 as root.

    The test application now works!

    See you soon,.

    RW

  • simulate the track access control with labview

    Hello

    I want to simulate a track with labview access control.

    This is the procedure:

    vehicle is located in front of a door, antenna check access control, if that's ok the traffic light turns green and the gate of the student.

    I thank very you much for helping me.

    Hi hot wheels,.

    I think it will be useful for you

  • Configure the clients to stop with the host

    We use an IBM BladeCenter S chassis with 6 blades ESXi 4 servers in a cluster.  I would like to configure the cluster so that when stop us a host (blade), guests who are running on it will be quit first instead of going down hard.

    I think that this must be configured in Configuration > Virtual Machine Startup / Shutdown, but seem to be the settings I do on the Blade 2, for example a guest so that it starts automatically with the host country, do not apply if the guest is vmotioned to another Blade.

    Is there a way to do this?

    If the host is part of an HA cluster, power on/off options, though configurable, will not work.  However, if you disable HA and then configure the options of start/stop, the settings are configured by VM.  Which means they stick even if vMotioned.

  • Problem with the configuration to use Silver Style with labview 2011 (32-bit)

    Hi my friends.

    I installed labview 2011 32 bits. I select money style my default control style. but when I create the new VI, labview creates no controls in the silver model

    the controls are created in modern style.

    can someone help me solve this problem?

    with all my thanks: Saeid

    If you're down by controls via the palette, then it will drop any type palette you are in.  You are most likely in the range of modern control.  The setting that you are talking about is when you create a command or the indicator by right-clicking on a primitive terminal.

  • How to add information in the body/attachment email with labview

    Hi, I did a project on the development of a game for seniors. It's something the breaker of brick where the elderly can adjust the size of the ball & speed. The game worked perfectly.

    If it works that way, when I press the button 'Quit' in the game, he supposed to send an email to the caregiver to notify him that the elderly have played the game. And it works.

    But now I have to include more information in the email, for example how fast & the size of the ball, that the elderly were adjusted during the game. Can someone help me on how I should actually Merge the information 'speed & size' adjusted during the game in the email which is supposed to be sent to the caregiver.

    Thank you.

    It's strange. You have said that you are new to LabVIEW, but wrote this program that has structures of the event, parallel loops, queues, manipulation of the 3D image,... and you don't know how to pass the values of two controls a string in a Subvi?

    Size and speed are controlled by the two sliders on the front panel. When you leave, just read their values and forms a chain that you pass in the Subvi email as the body of the message. Your Subvi e-mail already has a mastery of the body on this subject, but it is not connected to a Terminal. You have just it has a default value.

  • With the help of myDAQ with LabVIEW 2012

    LabVIEW 2012 allows the myDAQ? When I run LabVIEW 2011 I can use the DAQ Assistant in LabVIEW and LabVIEW 2012, I do not see the DAQ Assistant Express VI. I've seen drivers does not support LabVIEW 2012 on the site, but I was wondering if anyone knew a way to use the myDAQ with the 2012 version. The myDAQ runs well on my version of 2011, but my students use the 2012 version and are struggling to make it work. I hope that they do not have to reinstall LabVIEW 2011.

    Thanks in advance

    LabVIEW 2012 support has been added with NI ELVISmx 4.4.  You can download and install the driver, which will install DAQmx 9.5.5 and ELVISmx 4.4 support for LabVIEW 2012, allowing you to use the DAQ Assistant and myDAQ in this version.

  • Order the CD or DVD with LabVIEW

    Hi all

    I am interested in the control of my CD/DVD internal PC using LabVIEW. I had a quick glance the forums and Web site of nor and it seems that external CD readers can be ordered using a PXI card and the SCSI interface.

    Research using LabVIEW, I couldn't find any reference to the SCSI but I guess the Protocol must be put up somewhere, as it can be used with PXI card I found referenced in my search.

    Initially, I just open and close the drive - if anyone can offer some advice in the right direction I would appreciate it.

    Also, if anyone is familiar with the level of access provided by SCSI maybe I could get some additional information. For example then it would be useful to be able to control that the speed of the motor of the CD player is regardless - this type of control exposed in SCSI?

    Thanks a lot for your help.

    David

    Open / close, here: https://decibel.ni.com/content/docs/DOC-19732

  • Cannot configure the pedal to work with Windows Media Player

    OT: WINDOWS MEDIA PLAYER/PEDALS - NEED TO TEST FOR A MEDICAL TRANSCRIPTION JOB URGENT - UNEMPLOYED TO RUN OUT OF MONEY!

    I need my pedal to work - something about Windows Media applications and find a .wma extension file, so I can test for medical transcription. Apparently, I'm supposed to have some sort of connector plug-and-play. What kind of pedal I have no idea. I have two and neither a no matter what brand name or marking, whether. I downloaded Express Scribe according to the instructions of the employer, but have no idea how to do to get things to work.

    Hello kbarr5050,

    1. your pedal has a USB connector to connect to the computer?

    2. what happens when you connect your pedal to the computer?

    Most of the pedal are Plug-and-play with a USB connection and should be detected when connect you to the computer. There are three controls which are usually Setup for rewind (right), play/pause (Center) and fast-forward (left), but you can configure them.

    a. If you have a CD you received with the pedal, follow the instructions in the wizard and install it.

    b. install Windows Media Player plugin pedal if the device does not announce a capacity inherent in the application. Download the Windows Media plug-in website of your foot pedal developer support as directed by the manual of the device or the help section (you need to contact the employer for information on this).

    c. open the pedal control application.

    d. Enter your key combinations you want in the corresponding fields in the pedal assignments tab.

    Thank you
    Irfan H, Engineer Support Microsoft Answers. Visit ourMicrosoft answers feedback Forum and let us know what you think.

Maybe you are looking for