How can I determine the device number from the task ID

I'm using 'Port Config' to initialize my DIO port for a NI-DAQ 6052E. Port Config returns a task id and it would be very useful if I could determine what device number I have based on the task id.

Hello,
Thank you for contacting National Instruments.
It is not possible to determine the device number programmatically from the task id. This would be slightly redundant since you must supply a device number when you Port Config executes. You could simply create a local variable of the Device Number control that is connected to the Port Config.vi if you need to use the device number elsewhere in your VI. Simply right-click on the Device number control and select Create >> Local Variable. Then right click on the local variable and select change to read. This will allow you to read the value of the device number you provided anywhere in your VI.
If you would rather determine the actual device that is being used rather than the device number, yo
u can use the Get DAQ Device Info.vi. I have attached a simple example program that demonstrates how to use the VI.
Regards,
Bill B
Applications Engineer
National Instruments
Attachments:
Write_to_1_Dig_Port_(E).vi ‏58 KB

Similar Messages

  • How can I determine the number and sizes of redologs?

    Dear all,
    How can I determine the number and sizes of redologs are sufficient to allow redo log switching while hot backup is in progress?
    Please advice,
    Amy

    Two questions here - what the OP put as the subject title and what was asked in the thread, which are different questions.
    I would interpret the question in the thread to mean "how to avoid hanging due to archiving waiting for a redo log group to become available." Alert log, wait events, and user complaints would be the source of information here.

  • How Can I Determine the Size of the 'My Documents' Folder for every user on a local machine using VBScript?

    Hello,
    I am at my wits end into this. Either I am doing it the wrong way or it is not possible.
    Let me explain. I need a vb script for the following scenario:
    1. The script is to run on multiple Windows 7 machines (32-Bit & 64-Bit alike).
    2. These are shared workstation i.e. different users login to these machines from time to time.
    3. The objective of this script is to traverse through each User Profile folder and get the size of the 'My Documents' folder within each User Profile folder. This information is to be written to a
    .CSV file located at C:\Temp directory on the machine.
    4. This script would be pushed to all workstations from SCCM. It would be configured to execute with
    System Rights
    I tried the script detailed at:
    http://blogs.technet.com/b/heyscriptingguy/archive/2005/03/31/how-can-i-determine-the-size-of-the-my-documents-folder.aspx 
    Const MY_DOCUMENTS = &H5&
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("Shell.Application")
    Set objFolder = objShell.Namespace(MY_DOCUMENTS)
    Set objFolderItem = objFolder.Self
    strPath = objFolderItem.Path
    Set objFolder = objFSO.GetFolder(strPath)
    Wscript.Echo objFolder.Size
    The Wscript.Echo objFolder.Size command in the script at the above mentioned link returned the value as
    '0' (zero) for the current logged on user. Although the actual size was like 30 MB or so.
    I then tried the script at:
    http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_27869829.html
    This script returns the correct value but only for the current logged-on user.
    Const blnShowErrors = False
    ' Set up filesystem object for usage
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("WScript.Shell")
    ' Display desired folder sizes
    Wscript.Echo "MyDocuments : " & FormatSize(FindFiles(objFSO.GetFolder(objShell.SpecialFolders("MyDocuments"))))
    ' Recursively tally the size of all files under a folder
    ' Protect against folders or files that are not accessible
    Function FindFiles(objFolder)
    On Error Resume Next
    ' List files
    For Each objFile In objFolder.Files
    On Error Resume Next
    If Err.Number <> 0 Then ShowError "FindFiles:01", objFolder.Path
    On Error Resume Next
    FindFiles = FindFiles + objFile.Size
    If Err.Number <> 0 Then ShowError "FindFiles:02", objFile.Path
    Next
    If Err.Number = 0 Then
    ' Recursively drill down into subfolder
    For Each objSubFolder In objFolder.SubFolders
    On Error Resume Next
    If Err.Number <> 0 Then ShowError "FindFiles:04", objFolder.Path
    FindFiles = FindFiles + FindFiles(objSubFolder)
    If Err.Number <> 0 Then ShowError "FindFiles:05", objSubFolder.Path
    Next
    Else
    ShowError "FindFiles:03", objFolder.Path
    End If
    End Function
    ' Function to format a number into typical size scales
    Function FormatSize(iSize)
    aLabel = Array("bytes", "KB", "MB", "GB", "TB")
    For i = 0 to 4
    If iSize > 1024 Then iSize = iSize / 1024 Else Exit For End If
    Next
    FormatSize = Round(iSize, 2) & " " & aLabel(i)
    End Function
    Sub ShowError(strLocation, strMessage)
    If blnShowErrors Then
    WScript.StdErr.WriteLine "==> ERROR at [" & strLocation & "]"
    WScript.StdErr.WriteLine " Number:[" & Err.Number & "], Source:[" & Err.Source & "], Desc:[" & Err.Description & "]"
    WScript.StdErr.WriteLine " " & strMessage
    Err.Clear
    End If
    End Sub
    The only part pending, is to achieve this for the 'My Documents' folder within each User Profile folder.
    Is this possible?
    Please help.

    Here are a bunch of scripts to get folder size under all circumstances.  Take your pick.
    https://gallery.technet.microsoft.com/scriptcenter/site/search?query=get%20folder%20size&f%5B0%5D.Value=get%20folder%20size&f%5B0%5D.Type=SearchText&ac=2
    ¯\_(ツ)_/¯

  • Stolen ipad 4. How can i get my serial number from Apple?HELP!!

    My Apple iPad 4 was stolen i do not have the box anymore because when i bought it i was living as an aupair in the USA so on my return after that about 2 months ago my iPad got stolen i never wrote the serial number down did email it to my father though but he lost that email. PLEASE HELP! how can i find my serial number from Apple, they surely should have my serail number on my apple ID???

    It seems it was never registered to your Apple ID.
    Do you have an iTunes backup of the iPad?
    Open iTunes.
    Open Preferences. (In Mac OS X, choose iTunes > Preferences. In Windows, choose Edit > Preferences.)
    Click the Devices tab.
    Position the mouse over a backup to display the serial number of the backed-up device. iPhone and cellular iPad models also display the IMEI/MEID and Cellular Data Number:
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • How can I determine the type of video out connector I need?

    Howdy,
    I have a white macbook purchased Jun/2008. I want to connect to a TV but don't know what adapter I need. How can I determine the type of video out jack my macbook has?
    System Profiler says the model identifier is "MacBook 4,1". Under Graphics/Displays the only thing it says about the "Display Connector" is that no display is connected. Too bad it doesn't tell me what type of connector it is. If I knew the name of the connector I'd probably be home free. But it seems like every macbook model has a different video connector (since the state of the art has advanced over the years) and I haven't been able to keep up with the names.
    Now, I have a 6" long adapter that will convert this connector to VGA. And searching the Apple store for VGA adapters, the existence of mine says my connector is might be one of "Mini DisplayPort", "Apple Mini DVI", "Apple DVI", or "Apple Micro-DVI". But then there is also the connector at
    http://store.apple.com/us/product/M8639G/A?mco=MTY3ODQ5OTY
    and that looks like the one I have. But unlike the other adapters, this one is just called a "VGA Display Adapter". Does the connector have a name? How can I find adapters that have that same connector?
    I know I could use the adapter I have, plus a VGA to VGA cable, to hook up to a TV. But the quality of the VGA signal is poor in the digital world. My goal is to hook up to the TV via HDMI. Is this even possible? By which I mean, will my macbook generate the signals necessary to be able to be converted to HDMI?
    Thanks for any help,
    Zebulon T

    Thanks, Ded,
    You're right, the cable that I have won't work. I't from my previous, 2004 iBook. This is pretty embarrassing... I looked at the cable but didn't bother to try plugging it in.
    Looking at the close-up picture of the Mini-DVI to VGA adapter, that does look like the right connector. So I have Mini-DVI, and the other apter you pointed to can convert this to DVI. I'll take a look to see what makes the most sense, connector wise, downstream from that.
    Thanks very much.
    Zeb T

  • How can I dial a phone number from an email message directly

    How can I dial a phone number from an email message directly,
    But even before the selection i will change or correct the number?
    If I copy the number in the notebook, all spaces are filled with % signs.
    When I dictate SIRI the number I get the answer: I do not know the number
    If I copy the number in the phone selection (above) the number can not be edited afterwards.

    You can dial a number appearing in an email by tapping on it.
    But if you need to correct the number first you cannot edit a received email.
    To edit the number tap on the forward symbol and when the draft comes up you should be able to correct the phone number, copy it and paste into your Phone App. Then delete the forward email without sending it.

  • How can I determine the liquid level in a bottle (LabView Vision)?

    How can I determine the liquid level in a bottle (LabView Vision)? Does anybody have an example code? The task is, that if liqid level is between two predetermined level, the program writes, that it is correct else it writes incorrect. Thank you.

    here is a little play with your bad picture:
    used only the small field of interest (here a guess) ,
    used only the red channel ( takes out most of the light reflection)
    grey scale, 3x(blurr, median filter) , played with  contrast -gamma - saturation
    now you need to add the edge detection and some sort of scale.
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • How can I determine the time zone the computer it set to?

    How can I determine the time zone the computer it set to?
    I am using Lab View 5.1.1

    Hi,
    in the G-tools (http://www.geocities.com/gzou999/index.html ) you find two
    time functions, "Get local time" and "get sys time". The difference between
    them is the time zone.
    Niko

  • How can I determine the cipher bit strength used by MY os X?

    How can I determine the cipher bit strength used by MY OS X?  Using Lion now?

    CT:
    Not Filvault, but the regular cryptographic use as built into OS X.  For example 1Password uses the algorithm in the OS X's Linux.  How many bits (i.e. 50, 128, 256...) does it use and what algorithm (DES, AES...)
    Linc
    As per reply to CT?
    Like so:
    http://osxdaily.com/2012/01/30/encrypt-and-decrypt-files-with-openssl/
    What is the strength used?

  • How can I delete the task bar in iOS7

    How can I delete the task bar in iOS7

    Stop Task Bar (Control Center) from popping up?
    Settings>Control Center>Access Within Apps

  • How can we modify the Task Priority in BPM workspace???

    How can we modify the Task Priority in BPM workspace??? Is it possible?? If so what is the best and easy way to implement this??

    Hi Chandra,
    First please find the job name in SM37 for FIGL and check the job status to be in "released" status. Select that job and go to job menu and click on change. then it will take you to the job screen where you have "job class". Here you can change the job class to "A" to get to high priority.
    If you are unable to edit the job then create a new job with the same variants by clicking STEP button in the Job screen.
    Try these steps, let me know if are able to do so.
    Regards,
    Ravi Kanth

  • How can you determine the absolute path to a dynamically created NetStream object?

    We are trying to implement video captioning with a freeware component, ccforflash. This requires us to provide an absolute or relative path  to our NetStream object. How can we determine this path in Flash CS5 AS3?
    From the CCforFlashCS5 documentation:
    "2. Object name and path
    Type the name and path.  This is the instance name of the object with which CCforFlashAS3 will synchronize. It must be spelled correctly, since CCforFlashAS3 will query the object with this name for timing information in order to synchronize the captions. The path must also be included; either relative to the CCforFlashAS3 component (i.e. this.parent) or the absolute path from the main level of the movie (root)."

    It would be easier if the NetStream object was created on an easily identifiable place on the timeline. This player has an MVC architecture. The NetStream object is created in a subclass to Model class, which is itself a subclass of the EventDispatcher object. The View class access it via an interface.
    As you can guess, it's not that straightforward to determine where the NetStream object is located on the timeline. This is compounded by the fact that the NetStream object does not have a name property.
    I've tried methods like these, but they only work for the DisplayObject class:
    public static function displayObjectPath( avDisplayObject : DisplayObject ) :String
    var lvPath:String = "";
    do
    if( avDisplayObject.name ) {
    // var obj_name:String = (avDisplayObject.name == 'root1') ? 'root' : avDisplayObject.name;
    if (avDisplayObject.name != 'root1') {
    lvPath = avDisplayObject.name
       + ( lvPath == "" ? "" : "." + lvPath );
    } else {
    trace("displayObjectPath() NO NAME avDisplayObject="+avDisplayObject);
    } while( avDisplayObject = avDisplayObject.parent );
    return lvPath;
    } // displayObjectPath
    private  function showChildren(d:DisplayObjectContainer):void {
    trace("showChildren()");
    if (d.numChildren>0) {
    for (var c:Number = 0; c < d.numChildren; c++) {
    trace("showChildren c=",c," name=",d.getChildAt(c).name);

  • How can I move my telephone number from one Iphone to another

    How can I move my telephone numbers from one IPhone to a new one?

    if you are talking about your contacts.  backup your old iphone then do a restore to the new phone and that will transfer your contacts your settings and pics and music. 
    if you are talking about chaning your phone number from an old phone ot a new one that has a different number.  you have to contact your phone carrier.

  • How can I remove a Device PIN from my account?

    I sold my Q10. The Buyer is in my contact list and his data is always integrating in my own contact data including the PIN.
    How can I unassign the BB PIN from my BBID Account?
    Thanks in advance.
    Solved!
    Go to Solution.

    There actually were several steps that should have been conducted before selling it...refer:
    Article ID: KB05099 Steps to take before selling or after buying a previously owned BlackBerry smartphone
    The on-device WIPE would have taken care of removing the association between that device and your BBID. Then you could simply use that same BBID on a different device, and that person would have no ability to use that same BBID since they would not know the password.
    It is possible (a feature!) to have more than one device on a single BBID, but the result is what you are experiencing. So, I believe the only remedy is that the new owner needs to WIPE that device and start over, leaving you with sole control over your BBID.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • VBS:How can i determine the last row of an excel-sheet

    I want to replace the chn-comments of an datafile. I pick up the chn-names and want to compare them with an excel-file and so get from the excel-file the right chn-comment and store int back in the datafile. my problem is how can i determine where the excelfile-row is on the end to load the loopounter with corr values.
    i know one solution via scan on ascii 13 and 9.but bether is to know immediately the length of the column.
    answers also in german possible.

    Peter,
    Are you using DIAdem's Excel Import Wizard? By "Excel file" do you mean a tab- or comma-delimited ASCII file that Excel can read in easily, or do you mean a file with the extension "*.xls"? You certainly could not search through an *.xls file to find CR/LF characters.
    If you use the ASCII or Excel Import Wizard to create an *.STP file for the "Excel" file in question, then after the *.STP file is loaded you have access to a whole range of variables, starting with Ascii... or Excel... which completely outline the structure of the ASCII or Excel file, including things like the row in which the channel comments are, etc.
    Why don't you send over your Excel file and I'll be able to help you a lot better.
    Regards,
    Brad Turpin
    NI

Maybe you are looking for

  • Text Hyperlink from PDF (converted Word doc) to specific Excel cell in same Portfolio

    Good Morning, I have created a Word document with an embedded Excel sheet (both Office 2007) and created a text hyperlink within the document that points to a specific cell on a specific tab. My company wants to send our document to a customer, but w

  • Error in installation  EHP5 for ERP 6.0

    Dear Friends During the installation EHP5 for ERP 6.0 in preprocessing step İ saw this error How can i solve this problem CURRENTPHASE MAIN_INIT/SHDINST_CHK1 ...started at 20110726222215 Using phase log file 'SHDINST_CHK1.LOG'. Error message set: 'Me

  • Loading third party plug-ins

    Hi, everybody, I just bought Logic Pro X and a third party software synth plug-in. I am a complete novice to both. I ran an installer for the synth plug-in. Now, I have no idea how to access that synth within LPX. I looked for some hint in the User G

  • Install Mac OS on MacBook but CD drive doesnt work

    I have a black 13 in. MacBook (Late 2007) running 10.5.8 and I would like to update to the latest version of Mac OS but the CD drive on it doesn't work (I accidently dropped my MacBook and now CDs wont go inside the drive) I also have an 27 in. iMac

  • SP Advice

    Guru,   A simple SP query which is giving a strange error. Please find them below: Query: --Incomplete Business Partner Entry IF @transaction_type IN ('A','U') AND @Object_type = '2' BEGIN IF EXISTS (SELECT * FROM OCRD T0 WHERE T0.VatIdUnCmp = 0 AND