Adding a date and time to create a channel in a data plugin

I would like to preface this question with the fact that I am new to VBS programming.  What I want to do is to create a plugin. Most of it is done, but I'm having a problem with the addition of two times to a.  I have a text file that stores the date and time separated by a tab character.  This file format was designed to excel.  When I bring him both the date and time are in different channels and I can not figure out a way to add both and either replace them or even place it in a separate variable.  Here is an example.

Chan (1) contains the date, Chan (2) contains both.  This statement, which places the data in the string is:

The StandChannels value (0). Values (k) = Chan (1). Values (i)

I tried:

The StandChannels value (0). Values (k) = Chan (1). Values (i) + Chan (2). Values (i)

error: object doesn't support this property or method

or

Chan (1). Values (i) = Chan (1). Values (i) + Chan (2). Values (i)

error: object doesn't support this property or method

I tried several other iterations and have had no success.  This seems to be an easy task, Miss me probably something simple.

Hi Eric,.

The first problem is that your datetime format string was wrong, you need to use:

File.Formatter.TimeFormat = "MM/DD/YY SS.fff.

Or maybe if your year is first of all it must be:

File.Formatter.TimeFormat = "YY/MM/DD SS.fff.

The second question was slippery.  The newsgroups (0) you throw combines the ProcessedChannel values correctly, but you were not successfully picking off those that you wanted to leave Chan (0).  I don't really know why the method you were using did not work, but I found a similar one that does.  Note that I've only changes part SUB New_File (file, ChanNames) of the code, not the SUB Previous_File (file, ChanNames) part of the code (got tired of typing).

Brad Turpin

Tiara Product Support Engineer

National Instruments

Tags: NI Software

Similar Questions

  • I am creating a stamp of Certification of drawing dynamic shop with fields of text 'Name' and 'Date '. I tried different ways within Javascript, but I can't seem to make it work. The Date and time remains static on the stamp when it is inserted and

    I am creating a stamp of Certification of drawing dynamic shop with fields of text 'Name' and 'Date '. I tried different ways within Javascript, but I can't seem to make it work. The Date and time remains static on the stamp when inserted and always reflect when the stamp was created and the name is always my name. I try to have the user name or the username inserted so that he who is the insertion of the postmark of the stamp automatically inserts their name and what day and time the stap is inserted. I can't get this dynamic stamp works like the default Adobe Acrobat Dynamic stamps. Can anyone help with this one. Thank you

    Have you created a page template for your stamp? Did name the template of the page correctly? It's the right format:

    #InternalStampName = display name of stamp

  • I want to create a Web site where people can choose a date and time and click on search, and it will find the photo of my HARD drive and show them on the page, is that poosible? If so could somone tell me how I will pay?

    I want to create a Web site where people can choose a date and time and click on search, and it will find the photo of my HARD drive and show them on the page, is that poosible? If so could somone tell me how I will pay?

    On your local HARD drive? N ° on your web server? Course

    How do you know php? There are exif function that can read EXIF headers on your images. You can use it in conjunction with the functions of file system scanning of the images on your web server. If you have thousands of images, you want to index the results in a database rather than search the real-time file system.

  • Adding a 'today' date and time string

    Is it possible to insert a 'live' date/time string and have it appear on several pages.  Have tried to do this without success, I am confident, that it must be possible.

    Hope that I live long enough to really get my mind around all benefits of Dove.

    Thank you

    Grandpa70

    Hello

    You use CP4? Then, it's really simple:

    • Insert a text caption
    • Add to this the caption text system variables

      $$cpInfoCurrentDateString$ $ and

      $$cpInfoCurrentTime$ $

    • in the properties of the text caption, Options, choose "display for the rest of the project.

    The date and time added will be those of the system on the PC (so they must be good values

    Lilybiri

  • Rename the files in a directory by adding the date and time

    Hello

    I am looking for a way to rename all the files that are in a directory with an add-on at the end with the date and time.

    for example:

    File1-> file1ddmmyyhhmi

    File2-> file1ddmmyyhhmi

    for example:

    $A = get-date-Format "yyyymmddhhmm.

    foreach-object - process ...

    Thank you.

    You can try something like this

    $A=get-date -Format "yyyymmddhhmm"
    Get-ChildItem "C:\folder" | %{
         Rename-Item -NewName ($_.Basename + $A + $_.extension) -Path $_.FullName
    }
    

    This assumes that the files are stored in C:\folder

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Photos do not sort by time when the Date and time are adjusted

    I'm the combination of images of my friends with those friends, using Mac Photo of OS X V10.11.4. Because the dates of our cameras vary, I used "Image, set Date and time" to change the dates of the imported pictures. When the dates and times are adjusted, the photos are sorted by date no time. Added photos changed the given date are sorted at the end, regardless of time stamp. The sort options in the pictures leave much to be desired.

    Where are you seeing this? All the photos are sorted by date/time, the photo has been added to the library - Photos (years/collections/moments) are sorted by date/time pictures

    You can select the photos of interest and create your own album of them and then sort but title ascending or descending or by date

    LN

  • How to rename a file flat concatenation date and time, file name?

    I created a package where I run a first interface that uses a flat file to a server and load into a table of Teradata.

    After using the OdiFtpPut API, I used a FTP file and send to an outfit.

    Given that this procedure works every day, I need when FTP get concatenation destination file name, the date and time of execution.

    What is the best practice for this?

    using the odi APIs, you can get the date and time

    <%=odiRef.getSysDate("dd_MM_yyyy_hh_mm_ss")%>
    

    To rename, you can use the operating system command or using the command/UNIX windows and rename the file by adding the getsystdate API.

    Hope this fixes your condition

  • Date and time of change of batch

    Mac running El Capitan with the latest version of Photo

    When I try to batch change date and time on some old 50 photos that have been digitized on days different and downloaded in the library of my pictures the results aren't good. The days and hours can vary a lot.

    When I checked and changed a lot of photos that have been taken or analyzed the day everything seems to work fine. Why? Is there a simple work around?

    If you do not change the dates butare, added dates for digital photographs (Digital Photos do not have EXIF/IPTC data then do not use the control change time data - using the user script Script: batch change Date and time on a fixed Date )

    LN

  • Do the photo album, date and time taken?

    Just downloaded all my iPhotos to Photos from the old to the new iMac. All the old photos transferred with the intact title (date and time). How to activate this in Photos? Added some new pictures for the first time to Photos and may not know how to make the title the date and time the photo was taken (without manually typing in the date and time).

    That s not a feature of Photos

    Users contributed scripts to perform these tasks - Script: batch changing the title to the Date of Capture -or http://www.oldtoadstutorials.net/No.P01.html

    LN

  • is it possible to display the Date and time in the address bar or a clock window constantly

    I need to take screenshots with date stamps and time using the script of iMacros. Everything by taking screenshots iMacro don't add taskbar windows for the date and time. It takes screenshots of browser. Is it possible to display the Date and time in the address bar or a clock within the tab browser constantly to capture the screenshot with time stamp through iMacros
    I added the big clock background Add-ons, but it is visible to new tabs.

    Badly looking for help and it will be really appreciated...

    Try this extension:

  • I want to change the file name format "save under" so the date and time are first.

    When I select a few emails and then select "Save as" to keep a copy on my computer, the name of the file that is created has the date and time at the end of the file name of the email.
    Sample "save under" file name: "Habitat Follow Up - Bryan ([email protected]) - 2011-11-15 0744.eml.
    Is it possible to change the structure or format of the file name if the date and time of the email are initially the file name?

    Try ImportExportTools and customize the format of the file name in the options.

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

  • Script Automator for the DATE and TIME stamped record

    Hi all

    I'm not a scripter, but are in need of a DATE and time-STAMPED folder (or file) I would like to put on my desktop and have updated automatically so that I can use this tool to quickly see if a backup external (or internal) is current. probably I could also use it to quickly find out how /old/ a backup is.

    for now, I do this manually if I want to quickly verify that a backup works by creating a "date named folder" on the desktop - such as '-2016 03 26 "."» so I can quickly see if a backup I just ran ran.

    I have a lot of backups (internal, external, off site, etc.) and it would be super useful for me to have.

    I consider the name of the folder to be customizable (potentially) in case I need to change it, but a good default would be "-YEAR MONTH DAY" so that I could see easily when this backup has been but also I name my files in this way so they can appear in chronological order "."

    is anyone able to help me with something like that or suggest another forum for cross-post this?

    Thank you

    Jon

    Hello

    Create the the ""new folder " action, like this:"

    ---------------

    Drag and drop the 'Shell Script' variable in the "name:" field.

    --------------

    Double click on the variable in the "name:" field:

    Copy and paste this text in the field 'Script ':

    date "+%Y %m %d"
    
  • Need to sort the photos by date and time taken

    It is ridiculous that there is no possibility to sort the photos in an album by the date and time taken.  I imported the photos of several cards, two cameras take pictures at the same time, there is no way to sort photos, so the photos appear in true chronological order.  This should be added to the Photos, I think it's available in iPhoto.

    On Photos for Mac you can sort photos by date and time.  This was introduced with the update to El Capitan.  What version of Photos are you running?

    If you select one of your albums and ctrl-click, you can sort it by the titles, oldest first or newest first.

    Or is the problem that the sort order is incorrect?

    Then, you may need to adjust the date and time for pictures from camera cards different.  If you imported the photos while you were in different time zones, photo interpreter differently dates.  It will use the time zone of time current system at the time the photos are imported to interpret dates on cards.

  • 'RT Set date and time' does not define the UTC seconds

    Hallo,

    I tried to set the time on my cRio 9012 with the function settimeUTC which is used by the vi "the Date and time value. But the second I get home are ADDED to the current time and not defined as the new value.

    Even the vi illustrates this behavior: I've set up a vi time where in a loop (100ms delay) and reread. When I put in local time stop the clock (as expected), but when I put the UTC time the Dungeon seconds on the run...

    Can someone help me with this problem?

    Thank you

    Florian

    Hi Florian.

    After posting your version of LabVIEW, I found an answer to your question:

    The behavior you're seeing is a known bug that has been fixed in LabVIEW 8.5.1. Workaround is to use set local time instead.

    Let me know if you have any other questions.

  • Date and time display on the workspace

    Is it possible to display the date and time on the workspace window?

    An example of a control that you can add to the workspace to display the date and time on your host PC is attached. I created it by following the instructions on this page. If you want to make any changes or customize it more, this document can help you get started. I based off of decoration - free label template, so that I could completely customize the behavior of the control.

    To use this control, simply copy \National Instruments\NI VeriStand models 2011\Display to .

Maybe you are looking for