Generation of weather in TDMS for measures of multi channels channel

Hello world

I have to write an application with five measures will at the same time... then it must be saved in TDMS each channel being its own channel of time just after she... IE sequence of the canal as below

Channel group

Measurement1

(EDT) 1

GCA2

TIME2

Measurement3

Time3

Measurement4

Years.4

Approvisionnement5

Neuve5

Each time channel should have "dt" for its number of measure...

So far, I m succesfull in the measuring channel recording only all the... But I have no idea how design for each measurement time line...

I tried to get the time I receive the data using functions as below

GetSystemDate (month & day, &year);)
GetSystemTime (& hours, minutes & seconds);
sprintf (timeStr, ' %d/%d/%d % 02d: % 02d: % 02d ", day, month, year)
hours, minutes, seconds);

This will generate the channels of chain of time... but my requirement is of data type ' Date/Time' used on larger scale of the axis in tiara...

Any help

Thank you

HS

HS,

There are two ways to store calendar for a channel information in a PDM file.

You can only use the first method if timing information is regular (spaced), which means that it can be described with the only values t0 and dt.  This method translates a single channel in tiara which contains data values and stores the calendar as properties on the channel information.  Note that in this case DIAdem will treat time as relative values with no basis of absolute time values. The properties you must set on the channel are:

(1) wf_start_offset (mandatory), the type is TDMS_Double, contains the time value t0 of the first data point of some units that you use and can just be 0 if your t0 value has no meaning other than as a reference for all other values of time in this channel point

(2) wf_increment (required), type is TDMS_Double, contains the dt in whatever units you use

(3) wf_samples (mandatory), the type is TDMS_Int32, contains the number of samples in the waveform

(4) wf_xname (Optional), type is TDMS_String, contains the name associated with the x-axis of time and will be used by the tiara to label the x-axis in tracing this waveform

(5) wf_xunit_string (optional), type is TDMS_String, contains a string that describes the x-axis of time units and will be used by the tiara to label the x-axis when tracing of this waveform

You can set the properties above using the TDMS_SetChannelProperty function.

You can use the second method for regular or irregular (not also spaced) timing information.  This method translates a channel with your data values and a separate second channel which contains the absolute timestamp values. From your original post, more like what you want.  In addition to your data channel, you must create a channel of timestamp.  Call TDMS_AddChannel with a data type of TDMS_Timestamp to create your channel of timestamp.  Call TDMS_AppendDataValues with the values of type CVIAbsoluteTime to write the Timestamp values in this channel.  You can create individual type timestamp values CVIAbsoluteTime by calling the functions of absolute time in the ICB Utility Library, such as GetCurrentCVIAbsoluteTime and CVIAbsoluteTimeFromLocalCalendar.

I hope this helps.

-Jeff

NEITHER

Tags: NI Software

Similar Questions

  • TDMS read fails on the channels of different lengths

    Experts in LV...

    It seems that there is an error in the PDM to read functions.   I have a TDMS file generated by a built executable, this file has a group of 9 channels.  Channel 5 is data taken at a higher rate (IE 20 MHz) compared to the date in the other 8 channes (1 Mhz).  1 Mhz channels have 110 000 points, of course, the 20 Mhz channel has 2 200 000 points.

    If I read this by using the playback feature TDMS passing an array of the names of Channel 9.  It runs and returns a table of 9 waveforms with Y0 dt values correct and the correct.  However Channel 4 (the 5th string, that long) a garbage in the data for all points since the stop the 110 000 in other channels.  This trash is as numbers-10 ^ 304 and zero.  The first 110 000 points are correct.

    The file itself is not damaged.  If I read the file in a loop 1 channel at the time, and to build the table of waveforms I get all 9 waveforms and the correct data of variable length.  A trivial example to read the actual data file is attached with the data file (I hope that boards that leave be attached).  Intrigue albums has corrupted data to read it all-in-one and the bottom has the accurate version of loop data.  The waveforms of tables on the left show that corruption occurs precisely at the location 110 000 table where the other tables

    Yes, the data file is too long for the forums.  You can get the program file and the simple example data

    TDMS error.zip

    No Council or if it is a real mistake.  I don't see anything in the documentation that I'm doing something wrong.  The fact that it returns a length of valid array and no error code is leads me to believe it's a bug of LV.

    Hi sth.

    Thank you for your results. The issue you reported is for playback of several channels of scaling in staircase once. (PDM read on several channels in staircase of unscaling works very well). The .tdms file, you provided, including the scaling of the data.

    I can give you two workaround solutions. The first is what you mentioned, read each channel of scale inside a loop. The second is that always read all channels once, but rank all length strings in descending order. (The first is the channel with a maximum length; the last is the channel of a minimum length).

    Kind regards

    Jie

    OR R & D

  • AI trigger and measure multi channels

    Hi all

    I have a simple problem (using USB-6259).

    can repeat the measurement trigger of AI and measure multi channels, but not both at the same time.

    -DAQmxCreateAIVoltageChan(hd, "DEV1/ai0",...)                    define the ai0 as the trigger channel

    -DAQmxCfgSampClkTiming

    -DAQmxCfgAnlgEdgeRefTrig

    -DAQmxStartTask

    -DAQmxReadAnalogF64 (hd, "DEV / ai0:3 ', / / I want to measure more channels"ai0:3"not just"ai0")

    Thank you

    Hassan

    Hi Hassan,.

    If you use an analog trigger with several analog channels, you will need to use the APFI0 input as source of relaxation. See this KB: Why do I get error-200264 when running analog reference trigger? All you need to do is to connect your analog signal online 0 to APFI0 (Paperback 20 in your case) and set the source of relaxation at APFI0.

    The reason is that you don't have that an NOC on Board (series E or M) and she's going to have to switch between the different lines (see this KB: modes of sampling). This parameter collides with the idea of a trigger analog reference on a specific line (constant sampling of data in a ring buffer up to what a condition is met). The APFI0 line, however, has its own CDA. Therefore, it can run simultaneously.

    However, please note that the ADC is fast but has lower resolution to HAVE it sampling ADC. See these KBs: series E and M series Analog Input Trigger resolution, be aware of a possible error between the analog trigger threshold and the value of the first sample

    Hope this clarified the issue.

    Best regards

    Peter

  • How can I autoindex looping for to create several channels daqmx

    I'm trying to autoindex create a loop FOR containing the DAQmx vi to create AI multi-channel voltage with identical settings, except that I need to apply specific channel names using a constant and specific physical channels using a constant of channel. Wiring of a constant DAQmx of physical channel does not work because the data type is incorrect. Similarly, I don't understand how to use a string constant to autoindex through the channel names is or how to configure the constant string (s) to assign names. Also, when I try to make one of these, I get a tunnel to exit the DAQmx autoindex create channel, rather than a task out. I can achieve my goal using several explicit DAQmx create calls to channel, but for high channel count, it is very time consuming.

    I use LV 8.5.

    I'm hoping to find the code showing how to perform the conversion type, flattening, or what to do.

    Diane has.

    I have an array of clusters.  Each element of this array is a cluster.  The cluster consists of a (scalar) string and input/output (also scalar).

    In addition, my TI attachment extracted.  I think that your file has been LV2009.  If so, you can drag the image from the browser and drop it onto a diagram.

  • How can I update driver for microsoft standard dual channel pci ide controller

    current driver is version 5.1.2600

    I run Win XP Pro SP3 (32 bit)

    http://www.Google.com/search?q=upgrade+driver+for+Microsoft+standard+dual+channel+PCI+IDE+controller&ie=UTF-8

  • Resolution of ideal icon for the device multi app

    Hi people,

    I created an icon of size 64 x 64 for my device multi BB application. It looks good on my "BOLD" but is def degraded in the Curve 9300-> look very rounded corners flat and pixelated.

    I spent in 32 x 32 on "BOLD", but it looks bad - what is the ideal resolution for the multi device icon and there at - it tricks I can use.

    Anyone who deals with this issue before?

    Great guys, really good answers, take it this advance.

    I have a target audience with all devices possible (up to 4 years), but because I had no icons with graphics prodtruding the bottom of the general icon that I decided, as generally pointed to above, simply create "1 size fits all".

    68 x 68 transparent background with 55 x 55 icon and 6pxl of the corners rounded.

    My client was disappointed but understood - ideally they wanted fancy and slick "thread structure" style of part 1 antice App icons... do not do!

    thx again!

  • Currency conversion with the demand for money no-multi

    Hi all
    I created the demand for money Non-multi, I created the currency dimension as custom.
    then I created members for Yen, Euro, Inr, and my motto is USD.

    so... How can I undergo the exchange rate for this?
    Please help me in this...

    Hello

    I don't think you can associate multiple currencies with a member of the entity.

    Thank you
    Sourabh

  • I won a mini iPad 4 generation how to get applecare for my iPad

    Hi I have a question I win an iPad mini 4 generation is possible to get Applecare for my mini iPad 4 given that I have not received.

    Thank you for your support

    Rolly

    Hello, Rolly!

    No, unfortunately, you will need to have bought the iPad in the last 60 days to add AppleCare, and I do not win it counts as purchase.

    Here's more information.

    http://www.Apple.com/support/products/iPad.html

  • How to open a file with an error .tdms when measuring?

    Hello

    I work with LabVIEW and tiara. In the LabVIEW, I write all my measurements in a file .tdms on the internal network. If I stop as the close .tdms file and I can open in DIAdem and calculate everything what I need with my script. Last week I did a long time measurement and the intern network was defective. So the LabVIEW didn't close the .tdms as usual file. There are 3 files on the network:

    . TDMS. TDMS.log / .tdms_index

    If I try to open the .tdms file there is a mistake. But I don't see that there is some data in the file (the file size). And if the .tdms LabVIEW close it correctly there is none. TDMS.log file. The question is, can I open my data in DIAdem, and how can I do?

    Thank you

    Hello

    You can zip and attach your file tdms here. I'll try to get it back.

    Thank you

    zaizhou.Ma

  • Can I use a NOR-9244 for measuring single-phase AC 2-wire 480V?

    As the 9244 module is rated for a maximum of 400 v L - N and L - L 800V, to measure 480V, I would need to connect to AI0 AI1 and let the neutral entry floating. Manual outlines all single phase measures referred to the input neutral and has some instructions on the conversion of L - N L - L measures, but it is expressed not bad so I don't know if it tells me that I can directly measure the voltage through AI0 AI1, or not.

    Can anyone confirm that I can make measurements with 9244 cable in this configuration, until I drop the $$$ to buy it?

    Hello MStewart,

    A distinction must be made between Vpk and Vrms.

    @GerdW is correct that the input device is ~ 1000Vpk (997.5Vpk). However, this translates into ~352.6 Vrms

    The side of 800 Vrms for line (L - L) measures is for multiphase applications.

    As you take a single-phase measure, you would use an AIx-neutral (L - N) connection.

    The diagram for this is detailed in figure 12 on page 25 of the Manual:

    <>http://www.NI.com/PDF/manuals/376131b.PDF >

    So to measure above 400Vrms on this unit, you will need to use a power supply external to resign from the tension, as mentioned in the white paper in (specifically the section of voltage):

    <>http://www.NI.com/white-paper/8198/en/ >

    In summary the 9244 cannot directly measure 480Vrms.  You can set before the signal to less than or equal to 400Vrms

    I hope this helps to clarify your question!

    See you soon,.

    -ChristophersonJ

  • 6225 DAQmx names for measurements of the differential pair

    All,

    I came across this post trying to find out if there was documentation to show who's analog inputs are coupled together and what name DAQmx controls call these pairs.

    http://forums.NI.com/T5/Multifunction-DAQ/device-pinout-for-the-PCI-6225-in-differential-AI-mode/m-p...

    Messages from the author a drawing which I think is correct, but it is not an official document of OR.  I'm looking for documents that says exactly what the name is for each pair during their use in a command DAQmx.  I know literature 6225 AI0 and AI8 form a pair, and AI1 and AI9 are a pair, etc. etc.   What I was trying to find, is documentation that shows that the name of each of these pairs, what I should do in the DAQmx calls during a differential measure.  Currently, I am assuming that the AI0/AI8 pair is referred to as AI0 when the measure differential.  I have just followed the list of pairs in the manual of the user from left to right and from top to bottom and naming of AI0 to AI39.  I really was hoping that there was an official document that says what were the names of each differential pair.

    Can you point me to the appropriate document or tell me that it is not an and that my assumptions are correct?

    Thank you!

    Doug

    Doug,

    There is not an official document similar to the one in the related post that shows the AI0 + and AI0-. The differential channel will always be referred to by the positive terminal. It doesn't matter what differential channel number it is. For example, the Channel 9 differential uses AI16 as the positive terminal. All configurations in DAQmx must be configured using AI16 in differential mode. The drawing was published is not official, but it is correct.

    Kind regards

    Danny F

  • How to use an internal counter of the cDAQ-9172 for measure PWM and generate the frequency?

    Hello

    Requirement of my project is to measure 6-channel PWM and generate 5 frequency channels.

    Suggestion of engineer OR bought cDAQ-9172 chassis and NI 9423 (8 DI correlated) and NI 9474 (8 correlated DO) for this requirement. I have a few questions

    Article:

    1 > what should I know to customize my CompactDaq 9172 chassis

    http://zone.NI.com/DevZone/CDA/tut/p/ID/9367

    I know that this way to synchronize the physical support 32 correlation system pin o for housing 1-4.

    => I'm not really sure how to use these channels synchronization support.

    2 > using internal counters on one NOR cDAQ-9172 as a sample for other tasks clock

    http://digital.NI.com/public.nsf/allkb/ADFC4DD8C9690232862575B70079FBD4

    I know that I can change the ownership of the physical channel so I can get 2 meter outside the frame 6 and 7.

    => I do not think that this solution will be me because I can use only 2 counters with this method.

    Could someone tell me please how to fix my project requirement? How to choose the setting for DAQmx screws?

    I have experience with measure the PWM and generate the frequency, but with separated against only.

    Best regards

    Thang Nguyen

    Hey Thang.

    AHA... for this, you can use the channel property node.

    See you soon

    Lab

  • Straing gauges - calibration for measurements

    Hello

    At first, I'm sorry for my English, I'm Polish and I do what I can

    I t prepare strain measure simple application on cylindrical tube. Has created this task to MAX and now I have a problem during calibration. Performed shunt calibration.

    The main idea of my program:

    After clicking on "run" arrow in the upper-left, I will send to the tab named "calibration"(default tab) (it can also be cluster tab instead, is not serious). "." Then I load sample tested with, for ex. 1000N and the program of calculate the coefficient between the force (1000N) and the real value of NOR-9237 (configured as analog input - bridge to the MAX). Then I move to the next tab, described as '' measure '' when I perform a simple measurement with strain vs.time graph.

    I have established that the dependence is linear, so I have to use y = ax + b formula. Assuming that 'b' 0, I have to find 'a' - how can I calculate and how can I keep it for use in the next tab, 'measure '? I have no idea...

    I attach no examples of my program, because there is nothing difficult yet - DAQ Assistant and graphic waveform...

    DAQmx provides a way to create "Ladders", but also "Tasks" a linear scale is easy to assign to a channel in a task.

    I'm in the middle of an upgrade from LabVIEW today so, Kudos to anyone who publishes the screenshots I can't get right now.

  • Configuration NI9219 for measurement of deformation

    Hello!

    I am putting in place a strain measurement VI using Labview. I use the NI 9219 module on the chassis NOR cDAQ 9172.  My extensometer is configured in a quarter-bridge arrangement and I did strain gage connection accordingly (to the terminals 3 & 5 in NI 9219). However, I do not understand what are the terminals of TEDS and what to connect to these terminals. Can I use virtual TEDS for this? I couldn't find a virtual TEDS for NI 9219. Any information to resolve this issue would be much appreciated.

    Best,

    Nyquist99

    Hi, the terminals of TEDS are only for transducers, as a strain gauge, that support the TEDS (Transducer Electronic Data Sheet).  The standard of TEDS is just the ability to a transducer to record information about itself in the internal memory.  This information includes things like dates and calibration constants, one of the factors, electrical characteristics, etc.  It is stored in a standard model which can be read by computers and the DAQ cards via these lines TEDS.  For your application, you must just let unwired and to the top of your strain of installation normally gauge.

  • Must install Labview App on cFP2200 with feature plug &amp; play for measurement modules

    Hello

    I am trying to install a monitoring software on cFP2200 devices. This software uses anywhere from 1 to 8 modules of I-102. I want to be able to deploy my build to the fieldpoint without having to know in advance how many modules will be there.

    My plan to achieve this was to design my application to assume that all modules HAVE 102 were available to read to go, throw an error that I catch and delete if they weren't. It works perfectly in tests of interpreted code. I managed to disconnect the field point, 102 HAVE devices to different locations than before, and my software could find them and ignore the slots where were connected HAVE 102 s.

    A question is asked now when I try to deploy a compiled version of this app on the fieldpoint. When I do that, I get a "conflict resolution" popup that lists all of the I-102 s who are not connected at deployment time. I have to choose 'cancel the deployment' or 'Skip deployment' in these cases. So I am unable to find I-102 modules if I move them to one location other than when they were connected to install or put new ones in.

    We will put these modules at customer sites and we want the ability to develop so that it contains some 102 HAVE more or less as the customer systems expand and contract. Under the current situation, I have to re - install the software manually whenever they move a module that is not really an acceptable long term solution.

    Are there ideas about how to address the issue?

    Thank you

    Kelsey Golden

    I just realized that the "conflict resolution" window really means nothing. As long as I select 'Skip', I can always move the modules or new install! It makes me wonder what the conflict resolution is intended in the first place if he is not actually stop me using the modules later.

    For all those who want plug-and-play in the future, my solution essentially try to read all possible addresses and ignore those throwing errors basically seems to be the way to do this. Just ignore the stupid conflict resolution window. I of course hope that the fact that I can still install modules in locations where conflicts implicitly he wasn't their installation is not a defect that NEITHER patch later outside.

Maybe you are looking for

  • -L50 A Windows 10 Nvidia GT740M satellite

    I am trying to solve a problem on my Toshiba laptop. It is related to the installation of smart dual gfx. I have an error Code 12 (not enough resources), or else an error Code 43 (windows stopped the device because it has detected problems). I consta

  • Power problem - computer from HP Pavilion 23-h055la all-in-one desktop touch

    I bought bought not from HP but private, a Ref model above. I'm not quite certain re model since there is no labels. However there was no power adapter so I tried with no HP 19, 5v adapter 7, 7 bis and 150 w. The small lamp above the power socket was

  • Why my attachments function does not work in Windows Live Hotmail?

    Original title: why my attachments do not work? I have problems with getting documents to include as an attachment.  Never had this problem with hotmail before.   What I am doing wrong?  How can I find someone to HELP me?

  • Copy of slow files under Windows 7 ultimate 64 bit

    System is very slow when the copy of the files. The dialog box "Donostiarra" is for a very long time. Everytime I open a folder there is a green bar which crosses the address as it is scanning, that takes a lot of time as well. Looks like that has ha

  • Not to receive certain emails!

    Hello. I noticed that when I shop online, email for my details of billing and shipping and others, is no longer get sent to me. At first, I thought it was the fault of websites, but then I ordered from another site (amazon) and even they don't send a