Use creation to read alternating channels and data

I have a csv file that I am trying to create a use. The help file says that if I specify a line in the form of data, then all subsequent lines must also be given.

The first line of my file is a header parameter names of test. I would like these are the names of channel for the actual data (parameter values) that follow on the next line.

Then I have a blank line, then a line with my main data channel names. The following lines are then the main actual data.

I'm sure I need a VBScript to do this, but am a little to get something that works based on examples that I found on the shelf.

I want to bring in the header data in the data portal so that I can put some of them together with graphs in my reports.

I have attached a sample data file. Also, I would generally ignore some of the columns of data (in this case, columns 3 to 10)

Thanks for your suggestions!

Hi Greg_Gran-

I have attached a personalized use which will be structured according to your posted example files and will ignore the third to the tenth data channels.

To use the use, simply unzip the cover record attached to your hard drive.  Double-click the *.uri file that is included to register for use with your computer.  Once you get the registration successful dialog box, you will be able to load your data files.  Because CSV is a format of generic file with many variations, you may need to push the priority of this particular use for the *. "" "Extension CSV through DIAdem NAVIGATOR" settings "My DataFinder ' configure ' menu File Extensions so that this use is always used instead of the other *. DataPlugins CSV.

I didn't know if you wanted to ignore the third to the tenth of all columns of data or from time to time, so I built a small hook in the use that will allow you to adjust the 'package' of ignored channels (e.g.: 3-10, 1-5, 21-30).  To change the range of the use know when loading:

    1. Select the NAVIGATOR tiara.

    2. "" "Select Settings ' Options ' Extensions ' DataPlugins.

    3. Right-click the use of Greg_Gran_CSV, and then select Edit the Script.

    4. In line 5 of the use, the variable "Ignore" is defined as a one-dimensional two values (3 and 10) table.  These are the upper and lower values defining the range of the data channels to ignore.  To load all the data, change the value (or both) - 1.

    5. Save the use.

As I had only a single file to test with, I can't guarantee that there will be problems with your other files - let me know if you encounter any problems or if you have any other questions.

Tags: NI Software

Similar Questions

  • Is it possible to use the Apple Watch with bluetooth and data celular (for example in a remote area withouth wifi)?

    Apple Watch with bluetooth

    Hello

    Apple Watch can still be used in conjunction with the matched iPhone (which is based on cellular services) in places where there is no Wi - Fi network.

    The availability of some built-in and third-party applications can vary, depending on your cellular data settings and a network of cellular data speeds.

    If your question relates also to longer term, it is not currently possible to update the software on Apple Watch unless the paired iPhone is connected to a Wi - Fi network.

    Some built-in functions of Apple Watch can still be used even when the pair iPhone is not available via Bluetooth or Wi - Fi.

    More information:

    Bluetooth and Wi - Fi on Apple Watch

    Use Apple Watch without her sister iPhone - Apple Support

  • Use: How to read a single line of names of channel or units?

    Most of the examples of programming to use use channel names in separate lines, as in the following example:

    Channel
    Name: time
    Type: time

    Channel
    Name: XShift
    Type: R64

    Channel
    Name: YShift
    Type: R64

    Most of my data sets have channel names and / or units in one line separated by tabs as

    "Dehnung" "Standardkraft" "Sensor" "Zyklusnummer" "PWM".

    « mm » "N" "V" « » « % »

    Is there a more effective way to add channels appointed and equipped with units along these lines to bike through some index variable? Like my channel number, etc. naming vary frequently, I would be looking for a more flexible solution, avoiding fixed table or names hardcoded sizes.

    I guess

    aMyChannelNames = split (File.GetNextStringValue (eString), vbTab)

    aMyChannelUnits = split (File.GetNextStringValue (eString), vbTab)

    for i = 0 to UBound (aMyChannelNames)

    Adjust the strings = Block.Channels.Add (aMyChannelNames (i), eString)

    Channel.Porperties ("Unit") = aMyChannelUnits (i)

    next

    could do the job - but it's the most effective way?

    Thank you for helping.

    Michael

    Hello Michael,

    I don't see the real problem.

    You read the header and split it into an array. This is information you have how many channels. Table size ubound depends on the line you have red and is not fix. Everything should be good now.

    You read the information and would divide the tables. Then, you use a loop to generate channels and set the properties. I don't think that there is a better way to do it.

    Kind regards

    Philipp K.

    AE | OR Germany

  • The use of pins of status (4 outputs) and data (8 entries) of the parallel port pins at the same time.

    Hi all

    I'm a newbee in labview. As part of my project work, I need to get 8 digital inputs and send 4 digital outputs.so I think to use the Parallel Port on the pc.i can make use of 8 datalines for entries. I found the site NOR is it possible to use status for output pins. But is it possible to use status for output pins pins and data for entries to the time.please help even me also mention of the measures to take, or keep in mind while implementing.also include any example vi that could be useful.

    Thanks in advance

    I would recommed you to NOT use the parallel port. Now a day you have hardly a PC with parallel port. also if you have some old PC then most likely last version of LabVIEW (e.g. 2010) will need a lot more memory RAM and processor.

    If you want a solution very very low cost then I would recommend using an arduino to that effect. You can then download LabVIEW Interface for Arduino and start working.

    If you continue to use the parallel port, then you could try (I haven't worked with parallel port and have not tested the following solutions)

    Download VIPM and then install the enclosed package. It will add the port e/s palette in your labview. and you can use it.

  • Find channels and cDAQ modules

    I have looked around the previous messages, but can't seem to find what I'm looking for.

    In most of my experience, I've implemented some DAQ and once the modules and channels are all in place, which is where they stay forever.

    Since I know things will not move, I create tasks in DAQmx.

    I'm working currently on a new installation program, but the problem is that in things cDAQ will not be in the same place every time.

    The application must read a number of strain gauges, which will be connected to the NI 9235 modules.

    It will take place anywhere from 1 to 3 modules attached, and they can be in one of the 8 available cDAQ chassis slots 9172.

    In addition, within a given module, anywhere from 1 to 8 channels will be connected.

    So basically, I guess my questions are running:

    (1) how many modules are connected and where?

    (2) in each module, the number of channels is turned on and how much is empty.

    From there on, I use DAQmx palette to take care of things.

    Thank you!

    So with every new start of the program, you will have a known device (your strain gauge device), but unknown channels. Here's how I attacked only a few years ago...

    • DAQmx create a task to create a job.

    • Make a constant table of all known possible channels. Say that it is 8 cells and compare that to an array of channels USED, making false tracks off the chains 'Unused' and the names of real channel out of used ones. Under certain conditions to check which ones which is used to remove the appropriate channel and add the DAQmx virtual channels properly. The VI snapshot below goes into the details. I brought not only the channels, channels, such as min/max properties and bridge information. My VI also made bridge removal, under certain conditions, depending on sensor that the user wanted to null (that part is not shown.)

    This code isn't super sleek, but I hope this gives you the ideas come from.

  • DAQmx newspaper read and data at different speeds

    Hey guys!

    I use DAQmx to make playback of analog input.  I would like the data be datalogged by TDMS at 1000 Hz.  However, I want to only read data at 10 Hz.  Is there a preferred method to do?  The photo below shows what I have so far.  (Note that this image is a simplification of the routine I use DAQmx)

    As you can see, I put the sample clock at 1000 Hz.  This forces TDMS datalogging at 1000 Hz.  Then I have a while loop that runs at 10 Hz with a read operation inside DAQmx.  For the moment, I have to read all THE data buffer at each iteration of the loop.  However, I am only interested in reading 1 sample of each channel for each iteration of the loop.  (I finally take this sample 1/channel at 10 Hz and push it into a plot for the Viewer)

    Is there a way to read only the latest data for each channel and then to clear the buffer, such that I don't get a buffer overrun error when DAQmx see that I have not read all the data?  It seems inefficient to me and read all the data indexing, then only on the first column.  Am I missing something, or is this method very well?

    Thanks for the thoughts!

    I would probably just go out of the wait function, read 100 samples per loop explicitly and index on the last sample for display on your screen (or 100 samples on average).

    Alternatively, setting the following read properties before starting the task should work for most devices (if not, please let us know you are using):

    Best regards

  • PXI-5122 and PXI-6259 read 2 channels simultaneously

    There is a single PXI-5122 digitizer card and a PXI-6259 DAQ card in our PXI system, we use Labview and TestStand (model Batch) to test the multiplication Board simultaneously, sometimes up to 8 boards are tested. We have some problems, such as the results of the tests is not reliable and sometimes blocking of Labview. Everything works fine when test single board. Thus, we feel that multiply causing this problem of acquisition of string data. It's great, if someone has the same problem and we can share the knowledge. My question is as follows:

    1. If two channels have been configured, read the two channel simultaneous cause blocking of the system or data damaged?

    "lu niScope WDT.vi" is reentrant, we can use two Subvi to call the "niScope Read WDT.vi' access the two channels simultaneously.

    2. If we set up a channel in another channel is reading the data, this situation will cause the search system or corrupt data.

    Concerning

    Samuel

    Hi Samuel,.

    You shouldn't have any difficulty to read several channels on your 5122 or between your 5122 and your 6259. You receive an error message when your test is blocked? What happens when your test is not reliable? Are you incorrect data and if so what is the data vs expected data acquired? You should be able to set both your channels in a single task, which would be using a read niScope WDT.vi to be used by the device. You are working from example or have you developed your own code? What version of the driver NOR Scope and NI-DAQmx driver do you use? You can find the driver version number in the measurement and Automation Explorer under the software section.

    What kind of test are you running? Your PXI chassis is controlled by a computer or by an on-board controller? Evolution of the rate of acquisition has an effect on your program?

  • measure the angular speed, angle and trigger using a gyroscopic sensor breakout board and LabView data acquisition

    How to measure the angular velocity, the angle and trigger using a gyroscopic sensor breakout board and LabView data acquisition?

    There is a single channel data acquisition code which measures the angular velocity, angle and flexibility using a gyroscopic sensor breakout board and acquisition of LabView data attached to this, I need a help to creat two-channel data acquisition code?

    Hello

    Attached is a vi that you can use in order to read the measured angular position of an encoder.

    If you need more examples on the tasks that you can develop with NOR-DAQmx and LabVIEW, you just need to open LabVIEW and click Help > find examples > Input and Output material > DAQmx > entry counter.

    Kind regards

  • sample per channel and read sample

    Hello everyone

    I'm new in LABVIEW and I have some difficulties with something.

    I put t know exactly what is the difference between the sample by channel and the sample to read. According to me, knowing that the sample by channel is the size of the buffer that is larger than the sampling frequency, but I put t know what is the sample to read.

    I ve tested with different sample per channel and read. Sometimes I get an error and sometimes know and I would like to know why. If you have examples because I understand better, it will be great.

    I really need to understand this part of my project

    Thanks for your help

    Tony GIBERT

    Hi Roro,

    As you mentioned, when the size of the buffer absorbing continuous samples, you can specify the sample by placing a value to the entry "samples per channel" on schedule vi. The entry of 'number of samples per channel' on reading vi which automatically names a control / constant with 'samples to read' specifies the number of samples you want to remove from the buffer in an appointment during playback of several samples (N). This link may provide a little more detail. I am also attaching a good example of the finder OR example that you may find useful to explore. I assume you are using the DAQmx driver put then please let me know if this isn't the case, but the same principles should apply in any event.

    This means accordingly for sampling at a given rate, you must make sure you're pulling data in large enough 'chunks' so that the buffer overflows (which may well be the cause of error that you see). On the other hand if your sampling rate is slow and your reading vi is having to wait the number of samples to read you have specified to be available, he can lift a time-out error. You can avoid this by increase your sampling rate, reduce your samples to play or increase the time-out specified read vi entry (-1 means it will wait indefinitely).

    Let me know if this helps and how you will.

    All the best.

  • Satellite M30X: reader will not read the DVD-R data but plays movies in DVD-R and CD

    I have a Toshiba M30X with combi DVD/CDRW drive.
    I have accumulated 12 GB of digital photo I wanted to erase but do not want the number of CDs that can be the so I bought an external DVD LITEON EZ - DUB and made 3 DVD - R burner of plenty of JPEG.
    However, when I put the DVD in the drive of Toshiba combi, it clicks for a moment or two, but when I click on the combi drive in my computer, the folder is empty and it is said there are 0 bytes.
    CD of still works, audio and data, DVD movies fine, reading DVD-R on my Pioneer DVD recorder (for TV - looks like a video/nothing to do with PC) plays very well, but he won't recognise DVD - r with data (JPEG or MP3) on them.

    It makes no difference what software was used (Nero 6.6) and LITEON EZDUB and it's okay if the discs are completed, a single session, multi session or what - it will not play any of them.
    However, these discs work perfectly in my old office to 7 years with a Sony DVD/CDRW combination of 4 years.
    I'm puzzled.
    I don't particularly want to reinstall windows, in the case where it does not recognize the recovery DVDs and I remember Microsoft a Note having activated by phone with a code that is different every time you ask him to generate a.
    It's a bit of pain that I wanted to make my pictures with me in my laptop bag.
    I won't be carting around an external DVD burner just to read the DVD.
    I've updated the firmware for SD - R 2512.
    He had no other effect freeze on a black screen on restart - I had to hold down the switch 15 minutes in this State.
    The laptop is 1 year and 26 days if that counts for anything.

    Anyone have any ideas? Or can I just put up with him.

    Hello

    Well, I can only make suggestions.
    You are able to place files many MP3 and Jpeg on DVD.
    This is perhaps a reason why Explorer cannot handle the DVD.

    Try to burn the DVD with photo JEPG, but do not have the full DVD with these files.
    You must leave a free space on the media. Maybe it helps.

    But it's very strange for me and it's just a suggestion. I've never tired it and don't know if it helps.
    I had a similar problem on my laptop but I solved using compatible media. Some readers prefer different media for different types of files.

  • I can read two-channel USB-6008 using THE Signal Express?

    Hello world!!

    Is possible to read the two analog inputs at the same time?

    Example: Using Signal Express, I need to read the (channel 0) analog input and analog input (channel 1) at the same time.

    I try this but, the signal on purpose gives me an error message saying that I can't read several channels at the same time using the USB-6008.

    Is this true?

    Thank you

    Ivo João

    André,

    Grato definition of pela.

    SUA ajuda muito util faith.

    SDS,

    Ivo João

  • Use the listbox control to select several channels and display on the chart

    Hello everyone!

    I have a problem using the ListBox selection mode 1 or mode items. I have 6 channels of data, and I have a 2D chart. I am able to reterieve the signal names in the list box, but I want to be able to choose one or more signals to display on the chart. I used the table to index my 2D data are connected and then the output of the index table is connected to the graph. I had to use the listbox control as an index for the table to index and display the data in the index selected for display on the chart. I used lisbox as the value property nodes, the line active and all but not able to display signals on the graph. I have attached a code example to show you what exactly I'm looking.

    Any suggestions will help a lot.


  • How to read a combination of strings and data data file

    Hello

    I'm having the combination of strings and datas to read a data file. I'm reading the file name, the time constants and comments in four indicators separate string (lines for comments varies for different files). And read the data in a 2D array. How can I do this? Y at - it a function that can serch of special characters in the spreadsheet file, so I can locate exactly where I should start reading the specific data. Here's how the data file is displayed. Thank you very much.

    Best,

    Richard

    filename.dat
    14:59 12/31/2009
    --------------------------------------------------
    Sample = 2451
    Frequency = 300, time of waiting = 2500
    Temperature = 20
    --------------------------------------------------
    a few comments
    a few comments
    a few comments
    a few comments
    a few comments
    --------------------------------------------------

    7.0000E + 2 1.5810E - 5
    7.0050E + 2 1.5400E - 5
    7.0100E + 2 1.5500E - 5
    7.0150E + 2 1.5180E - 5

    ....

    Here's a (big) hint.

    I would like to give you an excerpt, but I've not updated this machine yet.  It's a pretty boring delimiter, if you know what's good for you, you start to use commas, tabs or simple spaces (my order of preference).  It is far too easy start add or remove spaces and then you need to use more complex methods to obtain data from worksheet.

  • In an attempt to sign and date a w-9, I get the following message.  "This form is editable in Adobe Acrobat DC.  Please use Adobe life cycle Designer. "How can I get this document dated and signed without having to buy the life cycle Designer?

    Please provide ideas to the next question. In an attempt to sign and date a w-9, I get the following message.  "This form is editable in Adobe Acrobat DC.  Please use Adobe life cycle Designer. "How can I get this document dated and signed without having to buy the life cycle Designer?

    Thank you

    Rick

    Assuming that you are dealing with a PDF file provided by the IRS, you will not be able to e-sign. but you can fill the fields using Adobe Reader or Acrobat. The version of form W-9 that I have does not include a date field, but you can use the feedback tool add text to add a date. You can also digitally sign or use the annotation of pencil tool to draw a signature.

  • I want to get Acrobat for home use, but I have 2 desktops and 2 laptops.  Y at - it an alternative to stand-alone purchase of 4 copies of the software?

    I want to get Acrobat for home use, but I have 2 desktops and 2 laptops.  Y at - it an alternative to stand-alone purchase of 4 copies of the software?

    Hi JStavolaND78,

    I would like to inform you that there is only a single license for subscription an acrobat.

    If you need a single license for several systems, you can opt for the volume license.

    You can read this article for more information on volume licenses: find information about Adobe Volume licensing plans

    Let us know if you need additional assistance.

    Concerning
    Sarojini

Maybe you are looking for

  • Moziila stop working

    My mozilla crashes when I open a video file or music on gmail or youtube. I've recently updated everything and always do this. All stop working and I have to close my mozilla with operator.

  • How to copy the folder/directory structure without copying the content?

    I need to copy a LOT of files, but I want all the files come with them, just the names and structure of records.  I'm not the most technologically savvy so I don't even know where to start, or what program to use, so what codes use after that. Any he

  • disable tabs while some elements are running

    Hello In the following VI, I try to get the "CAM" is disabled and grayed out tab while the Boolean value of 'Start in CQI' is set to True, and then become enabled again once the Boolean of 'Start in CQI' value becomes false.  I also like the "ACQ" ta

  • Product name: HP Pavilion 17 N: HP Support Assistant > HP updates > update BIOS (AMD processors) - clear update reminder?

    Hello I got a recommended set the HP Support Assistant program to update update for HP Notebook System BIOS (AMD processors).  I installed the update to the BIOS but the HP Support Assistant still says I need to run the BIOS update.  So I ended that

  • Lost on my vista desktop taskbar

    I was using my media player in looking at my pictures and l accidentally clicking the windows button at the top left of the screen instead of the arrow and when l got back to my office in my taskbar has disappeared... Please can you help