analyze global chains

I have the cDAQ 9172. Users will enter global channels and I want to analyze digital channels and have them in a separate table. The other channels should be in the same order that the user selects. I read in the global channels that will always be in the same format, but never in the same order. Example: 9401-DI-1:2... and 9205-VI-1:3 and 2:9237-PI-1 would end in two tasks. Analog in the tasks will be 9205-VI-1:3, PI-9237-1:2 and I would then have another task for the digital input 9401-DI-1:2. The user must be able to enter tasks in the order any.

Well, I solved it with myself. Do not see the regular Expression function. Which allows the use of the works and makes things much earier.

Tags: NI Software

Similar Questions

  • How to put a text from the user in the global chain

    I use the odbc interface to record the measurement result in an excel sheet.

    Now I need the ability to enter text in a separate column.

    This text is a free user input string.

    But I have not found a way to transfer a string from the input message to a global string module.

    Is there a way to do this?

    Concerning

    Andreas

    This is the solution.

    Thank you very much.

    (An example says more than thousand words)

    Concerning

    Andreas

  • maximum number of entries in "characteristics of writing."

    What is the maximum number of channels in the "write data"? It seems that it is only 16 entries. I have more than 16 parameters in my application. What do you suggest me? I would like to have all of the data collected in a single file.

    The Multiplex module allows to combine several strings into one. In general, use the parameter "by block. The output will be a single thread with all multiplex channels in the block. You can have a maximum of 16:1 multiplexed. Use several Multiplex modules. They do not have to be symmetrical, but do not keep track of how many channels is multiplexed on a single thread.

    In the writing module, click the box to the format Options file (ASCII or DASYLab) - at the bottom of the dialog box, you configure so that it matches how you multiplexes - by block or by value (for example). And then, on the right, set the number of channels is multiplexed in each of the input channels.

    Do this way said DASYLab disabling multiplex the data in the file. You will lose the channel names. You can configure the names of channel for multiplexed channels using the chains. At the bottom of the dialog box, you can assign a global chain for each channel. Tedious, but it can be done.

  • How to get the active directory and environment variables

    Hello

    1 - is there a global variable to get the real (project, where is ORD and DSQ files) directory?

    2.-y there a way to get the directory of the user as the reading of the operating system environment variables?

    Thanks in advance.

    PD: I use Dasylab12

    Yes, use ropes of system

    For example, ${DATA_FOLDER}.

    For a list, the simplest method is to right click and select global chains. The lower half of the dialog box lists the system strings, including the date, time, name of the worksheet, with or without a path, the DEFAULT folders for the spreadsheet, data, other, black box, etc.

  • DASYLab control via RS232

    Hello!

    I use dasylab to a small control. I would like to controll 3 adjustable transformers. The pc with the NI USB-6210 is near the transformer. Via RS232 I want to controll the processors of the control room. I have connected the two stand-alone (one near the processor) and the other in the control room with a cable RS232. Is it possible to use input RS232 dasylab for this effect? I'm just at the beginning of this project, and I appreciate all the information and advice you can give.

    Thank you very much and have a nice day

    Hilby

    For the RS232 string... we expect that the string must be delimited - for example, it ends with a. When you use the notation

    $1

    DASYLab will begin at the current location and put all the characters in the global chain number 1 (${STR_1} in other modules) until the \r (thecharacter). It does not put the delimited in the global chain.

    If you use the store in the chain, then catch it all on the line. If you need to anchor it better, use the string in quotes to search for a unique header before the $1

    "Single text" $1

    will interpret this line

    Single text can be stored in the global chain

    and store 'can be stored in the global chain' in the global chain 1. She anchors on the 'Unique' text and ends at the.

    For relaxation... use the pre/Post trigger... it's more reliable and outputs 0 or 5.

  • DASYlab crashing with the beginning of the worksheet after change of RS - 232

    After a change in my RS-232 output of the modules to the correct COM port (I use two) dasylab crashes instantly. I use a serial port to control a stepper motor and the other to interrogate a dynamometer. I can not for life, to understand why its plant, or that there is no reason for it crashing. I use the ttl generators to trigger actions who then spend my terminal commands (stored in global chains) series of my series devices. My ttl generators are runner reasonable enough cycles, so I don't think it's a memory dump. Help!

    Thank you. -Kyle

    Please call Measurement Computing at 508-946-5100, x 2 and to seek assistance.

    Be prepared with your serial number, version, information about your computer and your spreadsheet.

    If you want to try the service pack first, DASYLab please download from ftp.mccdaq.com/downloads/DASYLab/DASYLab_10.0_Service_Pack_2. It is not a full installer, but a zip file with the replacement files. Information on the resolved issues are listed in the Readme file in the folder, but even if your problem is not listed, it is interesting to try it.

  • Cannot add new channel - tiara mΘmoire

    Hello

    I loaded a chunk of data to my tiara. I've got 92 groups with approximately 740 channels each and a Channellength with about 1000.

    Now I can't do anything in tiara

    When I try to calculate a channelaverage betwenn two channels, I get the message "Die gewunschte Kanalmenge nicht but werden konnte. I can't yet do ChnLinGenImp.

    Is there a way to increase the memory allocated to the tiara with a parameter? Or is it just too much data to all the...

    Here is my systeminfos:

    Tiara 12.0.1 SP1b

    1.410.700K RAM usage

    Operating system: Win7 Enterprise SP1 64-bit

    CPU: i5 M520 @ 2.40 GHz

    RAM: 4 GB

    Kind regards

    Martin Kozlowski

    Hi Martin,

    TIARA has a maximum global chain of 65335 counter (2 ^ 16).  Based on figures you provided, it looks like you're bumping into this hard limit.  Would it not possible to load the part of all of the data in the data portal and do your calculations in steps?

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • If test item in the array to set the digital limit

    I would like to test if a global chain of the station is a member of an array of resort chains. If this is the case, I would use a special digital limit and so do not use the normal limit.

    Is there a better way to do it? Thank you.

    StephenB

    Well, I learned about conditional statements today. (Great explanation here.) I can put this expression in the high and low limits.

    (Contains (StationGlobals.MyStringArray, searchstring, False))? LimitTrue: LimitFalse

    StephenB

  • string buffer

    There is probably a very simple answer to it; just not enough simple for me to understand.  I'm under LV 2012.  Enclosed dump shows vi used to program a part, a production tester.  This Tester will be treated all the days of hundreds of tips, and I have no apparent problem with this particular vi.

    The "Segger read buffer" is an indicator of global chain.  My question is on this buffer.

    If it's C code, I would reset the pointer to this buffer every time this vi is executed.  Because I don't have a way to do it, I can only assume that, as I continue to run this vi, each answer of the Segger programmer is added at the end of the previous answer.  This means that the buffer continues to increase in size.  So, that is what is happening?  I don't get the fatal errors, so I "assume" nothing bad.  If I look at the overall indicator for this stamp, I don't see it updated with new posts, such as the trial continues.  This confirms my belief that the messages are added.

    If these pads are working as I applied, there must be a limit to their size; Maybe he will try to use all the available RAM?

    Is there a way to 'reset the pointer', so that I have replace the pad whenever I use it?

    The global variable must be replaced whenever you do a reading.  Are you sure that you get different messages?

  • How to copy the piece of string to an enum in the part of string in a cluster?

    I want to do all of an array of clusters.  I am using a loop for.  Can not find a way to analyze in chain of the enum in the part of the chain of the cluster.

    Otherwise, I'd be happy if I could find some way to bind the enum in the table of clusters, but I think that becomes problematic.

    DH

    Dark Hollow says:

    OK, let's say that the enumerated type has N elements.  I want to initialize an array of N elements of strings.  How refers to each string in the enumerated type for each channel?

    An easy way to do this is to use GetNumericInfo.vi, part of the library of variant, found in vi.lib\utility\VariantDataType\GetNumericInfo.vi.  Wire your enumeration to the variant of entry; one of the outputs is an array of strings in the enumerated type.

    The most complicated way is a loop for, in which you convert the Terminal value of the iterator to the enumerated type, then use the value of Format.  You can get the maximum value from the enumeration by casting for the enumerated type 0, and then decrement. Add-on to get the right value to wire the terminal n and climb back to a digital.

    EDIT: just thought I would add, since the response of the RavensFan popped up while I was writing me - I don't like the approach of [] channels because it does not work on the objectives of the RT, and I lost a lot of time once because of this, trying to figure out why my code wouldn't run correctly on a system RT but worked fine on my development computer.

  • Cannot read the digital channels as physical on USB 6008

    Hello world

    Sorry for maybe a stupid question, but I'm stuck and can not find the solution.

    I can't read my outputs digital my USB-6008 as physical channels but only as global chains. Is this normal? What can I do to work around this problem?

    Thank you, any help is very appreciated.

  • LabVIEW 8.6.1 crashes

    Hello all,.

    I have an application where I get intermittent crashes, sometimes in edit mode, sometimes when my program actually works. I got some "MemoryManager.cpp line 437" crashes, but more often, but still intermittently, I just get the window that says that something happened to LabVIEW and must be completed. When you click the link more information, it pops up a window that says:

    "AppName:labview.exe AppVer: 8.6.0.4001 ModName: unknown.

    ModVer. ": 0.0.0.0 offset 6f636974.

    This occurs when you run the application, or when editing. It can happen twice in one hour, or after several hours of racing. I watched the use of memory and threads in "Task Manager" and they appear to be stable.

    The program has two main parts, a user interface that, at the beginning of the series of tests uses a call from .NET to read back data on the network of the unit under Test, analyze the chain returned XML (using string functions, no "parsing XML" function of LabVIEW or Windows) and a user interface to start the program. The user interface sends a message on a queue for the 'Test Engine', then, according to "recipe", installs and launches the appropriate using a "Node reference call" test program The test program takes measurements of the UUT and saves the results to an Excel using the NI Report Generation Toolkit OR report vi. The measures are calls from visa to instruments standard of "rack and stack" as spectrum analyzers and generators of signals.

    I did a moderately deep search on the site, OR have not found something that looks like the question, need ideas how to trap this beast and eliminate it.

    I hope that a lot of great players in the NIWeek affect response time. It seems that the years I couldn't attend are those where I met an obstacle like this. I guess the moral is that I should always attend

    Thanks in advance,

    Putnam


  • The easiest way to add several single-task in a new task of multiple channels

    Hi all users of LV!

    I've created several single tasks in MAX. To simplify things, we will assume that they are all of the same type (analog current - voltage). In addition, each task is characterized by specific properties such as the custom scale, the final value of configuration, max, and min, etc..

    I ask you to show me (if it exists) a simple way to add programmatically (merge) all of these channels in a multichannel new task, now clearly all the specific properties that I mentioned earlier. For 'simple', I mean fast, which is not need too much coding and reduce as much as possible the use of knots of property for these specific properties (see photo).

    Thank you in advance!

    Marco

    aRCo wrote:

    Infact, in this case, my colleague tasks needs to make acquisitions directly in MAX in order to validate the hardware and with virtual tracks overall is not possible, see that a global virtual channel does not have the ability to set the frequency of acquisition and other functions. Furthermore, I can't change all of a sudden the situation and the way that someone else works.

    Then he makes a task using the global chain.  Then you can reuse the channels!

    But it could work for you by creating global channels that you currently have.

  • SMU 6341 and SCB-68: problem with several entries... * URGENT *.

    Hello

    I have an urgent problem, I would really appreciate help with.

    I have a terminal block (SCB-68) connected to a multifunction data acquisition (6341). There are 4 entries in the Terminal:

    1 sensor laser displacement, coming from a controller as a signal of analog voltage output ("1V" and "0V" on the controller). Connected to AI 0 and GND.

    2. The accelerometer (PKI, coming from a then the voltage signal conditioner) connected to GND AI and AI 10.

    3 load cells (PKI, coming from a then the voltage signal conditioner) connected to AI 11, 12, 13 and 14, each connected to the GND PIN is close.

    Problem:

    By MAX, if I read in 6 channels above my data acquisition (6341), my displacement sensor (#1) and the accelerometer (#2) behave very well. However, among the channels (AI 11 and AI 12) load cell switch in tension, as if they follow the movement sensor voltage (#1). For example, there is usually a mV - 800 in AI 11 voltage change.

    This problem disappears when I'm not reading travel (HAVE 0, #1) laser. that is as soon as I remove this channel of my task, the readings of cell and accelerometer support back to normal (base voltage ~ 0V). Yet once if I ask again the laser channel, I see a vertical movement in the readings of load cell 2 (displacement varies with the current tension HAVE 0).

    Attempts of fixation:

    -tried to change the differential using AI laser sensor 0 and AI 9

    -tried to delete the field of laser 120V Power

    Any ideas at all would be greatly appreciated!

    SCB-68:

    http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/1180

    SMU-6341:

    http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/207415

    This is the general idea.  If you must use high impedance sources and that you have enough channels available, placing a channel of the grounding of entry between each other usually helps.  You must analyze these chains grounded.  Just grounded isn't them enough.

    Example: Sensor has = AI0, ground = AI1, sensor B = AI2, ground = AI3, sensor C = AI4, AI5 = ground.  Read AI0:5.

    Lynn

  • Selection of a subset of channels to read with DAQmx

    Hello

    I use a 32 channel NI9205 analog input module, connected with the chassis OR cDAQ-9174 and LABVIEW 2011.

    I created a task in the measurement and Automation Explorer who has 16 analog input of virtual channels (each of them with her has an entry configuration, scale, calibration, etc...). Inside LABVIEW, I opened this task to acquire some data, but I just want to read some of the 16 channels (defined by the user), not all, so before the "time DAQmx", I put a 'DAQmx reading node' and I put the ChannelsToRead with the names of the channels that I want to read. It seems to work, but when I put the acquisition rate it's error.

    The acquire module supports a rate of 250 kHz (divided by each channel). So if I put 5 channels to read, for example, it should work with a rate of up to 50 kHz. But whenever I try to use an acquisition rate higher than 15 625 kHz (which is 250 kHz/16) I get an error that says that the maximum rate is 15, 625kHz. As if I was using 16 channels of the task, but I'm not...

    Here the screenshot of channels read and sync configuration.

    Thank you
    Alexander

    Hello Alexander, and welcome to the forums,

    As odessy27 says that you do not reach the correct sample rate because the task is to be set up to read 16 channels; in spite of you more later by specifying which channels are to read.

    To preserve the configuration settings of your created able task and Automation Explorer (MAX), I recommend creating global chains of these. A Global channel will store your configuration for each physical channel and can be accessed from multiple tasks

    Creating a Global channel by the physical channels in your task of MAX right-clicking and then selecting create Global Channel. .

    You can drag these through to your block diagram and wire in the task/channels in the terminal of a function of mx-acquisition of data, as shown in the image below.

    If you change to a control by right clicking > change control channels can be set by the user and the maximum purchase price will go as planned.

    Concerning

    Jamie

Maybe you are looking for

  • How iMovie organizing imported video clips

    I just imported quite a few video clips (c. 400) to a folder in my office in iMovie.  Most of the clips are pretty short - maybe less than a minute. I went in the screen of media project and began to watch the clips.  I noticed that it doesn't seem t

  • Want to 700-410 W/Beats Audio: HP Envy 700-410 i5 W/Beats Audio, need drivers for Win 7 NO HP SUPPORT

    So just a week after the arrival of my new desktop PC (earlier this year), I had a massive failure of hardrive. I have access in a similar to several corporations hardware industry and had several including a beautiful 248 G SSD kingston hardrives on

  • Access to the Safe Mode on Windows 8

    Hello I understand sometimes through troubleshooting or for other reasons, there is a need to access safe mode when using windows 8. What many people do not know is Windows 8 does not use F8 at startup to access the secure mode. It needs to be done i

  • Player D U full

    I had my U400 for about a week and drive D is full and my computer freezes sometimes and I think that's the problem. I know almost nothing about the inner workings of computers and I don't have any idea on how to solve this problem. Drive D is the sm

  • Google ping goes from 25ms to 900ms shortly after the reset and stays there

    Hey everybody, My internet is REALLY slow for a few weeks.  I've isolated the problem to my LinkSys E3000.  My bandwidth is fine, but response times are unhappy. When I reset and ping Google, I'll take 20-30ms for maybe 30-60 seconds and then he leap