08-25-2014 12:50 PM
I have a vi which writes Analog input into tdms file. I also want to write Analog output signals, which are 2d array inputs into the same tdms file with extra columns representing Analog Output Signals. How can I achieve this functionality?
Solved! Go to Solution.
08-25-2014 01:41 PM
@Ashaironix wrote:
I have a vi which writes Analog input into tdms file. I also want to write Analog output signals, which are 2d array inputs into the same tdms file with extra columns representing Analog Output Signals. How can I achieve this functionality?
What have you attempted so far? Post your VI.
08-25-2014 01:47 PM
Hi nyc,
Here is the VI. In the VI I am taking in Logging configuration which has file path and tdms reference file stored in it. I am also taking in Data which consists of Analog Input Data from dqmx read vi. Then I have AO data which represents the Analog data consists of 2D array elements within it. I only write into first row to give AOs. What I am trying to do is take the AO data in , merge into the present AI data and write into tdms file.
08-25-2014 02:03 PM
Not PNG file. Post a VI.
08-25-2014 02:09 PM
I would recommend writing your AO in a different group than your AI. That is two writes to the TDMS file, but it will make a lot more sense when looking at the file.
08-25-2014 03:30 PM
Hey Crossrulz,
So you are saying that write two tdms files with inouts as AI and AO and this will write everything into a single tdms file with both AOs and Ais?
08-25-2014 03:54 PM
@Ashaironix wrote:
Hey Crossrulz,
So you are saying that write two tdms files with inouts as AI and AO and this will write everything into a single tdms file with both AOs and Ais?
No. You write to the same file, just different GROUPS. TDMS is a hierarchial data format. You have File, Group, Channel. The waveform data actually goes into the channel data. But you can have metadata on any level. So I would make an AI group and an AO group.
08-27-2014 12:47 PM
Hey Crossrulz,
I did what you said, and now anbalog output is in a different group (Extra excel sheet) but in the Analog ouputs group it is plottin everything under one tab, there is no way for it to get channel information. I tried manually creeating constants for channel names to tdms write file even then it just reads channel 1 and writes all the channels into one column, How can I obtain channels information and write them into different columns in tdms file?
08-27-2014 12:55 PM
Where are your waveforms coming from? It is typical that the waveforms coming from DAQmx will include data in its attributes that tells the TDMS file the channel names and settings that go into the channel metadata.
08-27-2014 12:58 PM
Hey crossrulz,
My Inputs for the Analog Output Daqmx is a 2D array, I am converting that 2d array to a waveform and writing that waveform into tdms write file. The waveform does not include channels in its attributes. This is the only way I found to read Analog ooutput channels (Directly from 2d array control) . Is there any other wway where I can also get channel attributes?