Analyze the VISA reference name

I have a multi channel test setup that uses a serial port for each channel. So, I named the VISA aliases for channels 1 - DUT DUT-8. I have a coaxial switch that routes a signal from the current to a freq counter INSTRUMENT so that I can measure the frequency. The switch has eight positions who use an enum POS0, POS1... POS8. I need to translate the serial port selected to the correct pole on the switch so I made the attached VI. The problem is that it works very well when its open but is not when it is closed. What can I do possible box this function with a closed vi?

Try using 'Cast from Type' to convert the VISA refnum into a string, rather than the Text.Text property.

Tags: NI Software

Similar Questions

  • Impossible to analyze the first user name of variable LMS

    Hi all

    I'm looking to use the LMS username as a variable in my class.

    I used the following link to get the value of the variable: display name of your LMS using Adobe Captivate to the 6.x - CaptivateDev.com student

    I pasted the following in my action SlideEnter javascript code...

    The PROBLEM is it shows Lastname Lastname.

    I want just the name of the user.

    Thoughts?

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

    /* Calling a self-invoked function to not pollute the global scope and immediately destroy the scope chain */

    (function(){

        /* Initialize JS Variable to hold the student name */

        varsName='';

        /* Obtain the student name from the LMS and put it into a JavaScript variable called sName */

        if(typeofwindow.GetStudentName==='undefined'){

            sName='Name Not Found';

        } else{

            sName=GetStudentName();

            if(sName==''){

                sName='Name Not Found';

            } else{

                /* Uncomment the below line to show the name in 'First Last' format */

                sName=sName.split(', ')[1] + ' ' + sName.split(', ')[0];

            }

        }

        /* Check for HTML5 vs. SWF output */

        if(typeofwindow.cp==='undefined') {

            /* We have SWF output, so Get the Captivate Object */

            varobjCp=document.getElementById('Captivate');

            /* Set the studentName Captivate User variable with the JavaScript variabe, sName */

            if(objCp && objCp.cpEISetValue){

                objCp.cpEISetValue('m_VarHandle.studentName', sName);

            }

        } else{

            /* We have HTML5 output */

            if(cp.vm && cp.vm.setVariableValue){

                cp.vm.setVariableValue('studentName', sName);

            }

        }

    })();

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

    Details: Captivate 8

    LMS appears under the name form, first of all.

    Figured out how to change the line of javascript in question.

    Normally the StudentName is listed as: name, first name

    To JUST display the first name use this-->sName=sName.split(', ')[1]

  • How to pass the Visa Resource Name parameter to labview dll in labwindows/cvi

    Hello world

    I build a dll of labview, the prototype is: double getchannelpower (double f, uintptr_t * VISAResourceName);

    I don't know how to go from VISAResourceName to this function.

    Is it related to the ViPSession paremeter in function viOpen(REES ViSession, rn ViRsrc, ViAccessMode am, ViUInt32 ti,ViPSession vi)?

    BRs,

    lotusky

    Hey, guys:

    I figured out how to pass the parameter.

    In labview, you must replace the control of visa with string control. In this way, the generated dll function at the entrance of the string type.

    I hope this will help others!

    lotusky

  • Control of VISA resource name: to refresh the list of COM ports programmatically

    When the application runs, and you first click this control, it takes 2 to 5 seconds to respond and complete the list for the first time.

    I would like to auto fill in the first time that the application is busy. Can I do this?

    Before allowing the user to click & Select resource VISA name, first use the 'VISA find resource' in your program to do the same thing & then allow or prompt the user to select resources.

    Given that loading EXE, it will execute the FIND VI-first & Labview will inform the resources available.

  • What defines the reference name in a type library

    I've created a DLL in CVI 9.1 for use with VB6.  I used a function (.fp) workgroup file to define the functions exported from the DLL.

    We add the DLL as a reference to the VB6 project, which allows functions defined in the .fp to be used directly from VB6 without using info prototype of any kind.

    One problem with this regime removes a reference from Visual Basic 6 development environment - there is no obvious way to do it - there is no possibility to "remove the reference.  We invariably liquidation brute force tearing all this reference to the DLL in the registry and remove the DLL itself the facility so that VB6 keep find it and insisting on using it.

    One aspect is the name of the reference.  What estblishes the name of the reference to the VB6 development environment?  What is the name of the DLL?  It is the name of the .fp file?

    I could run an experience I guess, but maybe someone knows and can tell me.

    Thank you.

    Menchar

    Menchar-

    It turns out that the name of the file function group (.fp) establishes the name of the reference when the DLL is added to the Visual Basic 6 development environment.

    The developer can see the associated DLL name, but the reference itself is the name of the group file function that may or may not be the same name as the DLL, the project, space to work or anything else.

    Thanks for the help, Menchar, you're always on the ball.

    Menchar

  • How cut the length of the string IE channel name here, if it exceeds 20 characters or letters. The channel name is dynamically analyzed the spreadsheet/xml file.

    How cut the length of the string IE channel name here, if it exceeds 20 characters or letters. The channel name is dynamically analyzed the spreadsheet/xml file.

    My Council of Europe in the .js file is

    function generateHTMLMarkup (i, channel) {}
    Alert ("this is lang" + str);
    var str ="";
    "Str += '.

    ";
    "Str += '.
    "+ ""+""+"
    ";
    Alert ("this is lang" + str);
    return str;

    }

    nerateHTMLMarkup: function (i, channel) {}
    Alert ("this is lang" + str);
    var str ="";
    "Str += '.

    ";
    str += "" +
    "" +
    "" + channel ['name'] + "" +.
    "" + "
    ";
    "Str += '.
    "+ "" + "
    ";
    Alert ("this is lang" + str);
    return str;

    etc.

    Give mthe rhythm and the exact code where Ihave tio get implemented.

    in the code, replace change

    channelName var = channel ['name'];

    TO

    channelName var = channel ['name'];

  • The file reference does not call. upload()

    OK it's going to take a little bit to explain but stick with me:

    I have two layers in the timeline, with no keyframes (coucheUn) and the other with a picture any key for every frame in the layer (layerB).
    In coucheUn, I have the script action to declare a variable of FileReference and I also declare and attach a listener object to the file reference.
    The listener object detects the event .onSelect to the FileRefernce (this event is generated when the service. the FileReference class's browse() is called - which opens a file browser and allows you to select a file). When called onSelect listener object executes the function. upload() FileReference which analyzes the file selected to a php script that downloads the file on my server.
    Function. for the FileReference browse() is called from an image in layerB. This is where the weird stuff that happens.
    When I test the movie the first time I enter the keyframe that calls the function. browse() all download routine work and the file is downloaded successfully. If I continue to the next keyframe (using navigation controls) and then navigate back and try to repeat the download process, then the file browser opens successfully, I select the file and then nothing happens. I have problems to identify the problem, for as far as I see it is as if it does never emit the onSelect event once the file is selected, which shouldn't be the case that the function .Browse works and a file is selected successfully. This would imply the php script does not work which is just ridiculous because it is a very simple script and it works the first time.
    Everyone has ideas, if you need more just information!


    UPDATE:

    Just did some tests and I'm completely confused, it's something the onSelect event. For some reason, it is not called / is not detected by the listener object. It's just weird because he calls good the first time you enter the frame, but if you navigate back, it is not detected. I checked the listener object was still in the scope of this framework and it seems to be, so I'm completely confused. The listener object is there and listening, the event that generated the onSelect event is executed but then never detected.

    Wooops, corrected just, said an another FileReference var on the following image with the same name, changed the name and works very well. Really really stupid of me.

  • during the construction file name collision

    LabVIEW 2011.

    I have a build specification where I copy a file in the target directory.  The name of the folder is "always included."

    The folder contains the subfolders and the subfolders of the data files.  The data files in subfolders all carry the same name, if for example we

    High back (always included)

    Subfolders one, two, three

    and in each subfolder, we have a data file named Data

    When I build I get the following message: "Labview has prevented a file name collision during the build. Names of duplicate files can be copied to the same destination... "and it references the three data files named Data.

    Well, that's all just crazy.  They are NOT copied to the same destination.  Generation does not understand a simple tree structure?

    David

    Thank you very much.  I was able to copy the whole hierarchical file structure by defining source file settings and destinations.

    You also wrote: "If you plan build a Setup program, why are you trying to do this in the EXE version?

    I didn't realize that this can be specified during the construction of the installer.

    Thank you.

  • No screws listed for option VI in 'configure the FPGA reference open '.

    I have a cRIO and I used the function reference FPGA opened to load a bitfile by specifying the name of VI.  It worked very well.

    I've been compiling all day, and I just deleted a control and then changed to a DMA FIFO data type.  When charge and ran the FIFO calls returned an error.  So I tried refreshing the specification of VI, but now when the dialog box is displayed, there is no listed screws.

    No idea what's not here.

    (1) I put comment the FIFO when I compiled (forgot to turn it back on to the it); This is why the error occurred.  Oops.

    (2) I still don't know why I could not navigate to the VI, but I was able to drag and drop.

  • How to access the property of ListBox inside the Cluster element names?

    In LabVIEW 2010, I have a group of controls on the front panel. In this group, I have a ListBox. How can I access the Item property for the ListBox object names in my block diagram.

    Of the bunch, I can get control ListBox, but which returns a value of I32, probably the index of the selected item.

    In the block diagram, how can I get the name property of the item in the ListBox control since a reference to the Cluster?

    Thank you.

    using the table 'orders' in your cluster, you can access each item. Next, you will need to convert the reference to a 'class more specific' with a reference to an arbitrary list box (or a constant reference of the required type), then you can access all the properties of your listbox.

  • Break down and an object of a list/table of the index reference

    TestStand using I'm trying to figure out how to break down and an object reference to a table/list of the index. My sequence is attached. I received a few tips of the 3rd developer with VB code, what should be done. I'm having a problem translating in TestStand. VB code follows the description.

    I use .NET to run a 3rd party software using a sequence of imagery system and run 3rd party software tests. In TestStand, my "GetCurrentTests" approach, when an object for a specific sequence reference, returns a reference of type object ' object reference(system.collections.generic.list'1[Radiant.Imaging.TSEngine.ICommand]); expected return a list of tests in the sequence of part 3.

    Next steps "GetCurrentPattern" needs to index through this list in order to get and then define and display the display model of the specific test to start the specific test. This next step class is RadiantImaging.TSEngine.ICommand (interface) and returns an object reference (radiantImaging.PatternGenerator.Patterns.Patternbase): a reference to the model.

    What I'm confused about is decaying of the 'object reference(system.collections.generic.list'1[Radiant.Imaging.TSEngine.ICommand])' return value in order to provide the? indexed reference object for "Model of GetCurrent" step.

    VB code is provided below for me that shows how it can be done in VB. I'm not familiar enough with TestStand, .NET and VB to break down this >

    Any suggestions or advice is greatly appreciated.

    VB code:

    Public Class Form1

    Private PatternGenerator.IPatternGenerator MPG

    Private WithEvents mTestSequence as TSEngine.TestSequence Private Sub InitializeButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InitializeButton.Click

    TSEngine.Settings.MeasurementSource = TSEngine.MeasurementSources.Camera

    TSEngine.Settings.SaveMeasurementsToDatabase = False

    TSEngine.Settings.SaveResultsToDatabase = True

    TSEngine.Settings.SerialNumberAllowDuplicates = True

    mPG = TSEngine.CurrentPatternGenerator

    TSEngine.Initialize ("C:\PM 4616197.rdb Calibration")

    TSEngine.Databasename = "C:\default Alpha_PEK_Date.pts".

    TSEngine.InitializeCamera)

    End Sub

    Private Sub RunButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RunButton.Click

    mTestSequence = New TSEngine.TestSequence (1)

    Dim result as TSEngine.Tests.ResultEnum

    For i As Integer = 0 To mTestSequence.NumberTests

    Dim p As PatternGenerator.Patterns.PatternBase

    p = mTestSequence.CommandList (i). Model

    p.PatternGenerator = mi/gal

    mPG.MonitorType = PatternGenerator.Monitor.PrimaryPartial

    ' p.PatternGenerator.MonitorType = PatternGenerator.Monitor.PrimaryPartial

    p.PatternGenerator = mi/gal

    p.Show)

    result = mTestSequence.RunSingleTest (i)

    Dim results As List (Of TSEngine.IResult) = mTestSequence.CommandList (i). Result

    Results (i). Name

    mTestSequence.CommandList (i). ResultMeasurement.

    Next

    End Sub

    Technical support solution: "I spoke with R & D and they informed me that the type of data in question is a generic class that is not supported with the .NET adapter. You can change the data type of a code module to another using a data type of object reference, but you can not manipulate the generic classes within TestStand.

    "" "" You can find this information in aid of TestStand under NI TestStand environment reference help"TestStand adapters" adapters for .NET ' adapter .NET '.NET called settings ' settings not supported. Here, the solution would be to ask a code module that performs this task for you. »

    Change the settings for call .NET

    Parameters not supported

    The TestStand .NET adapter cannot call methods and properties that have arrays as parameters in staircase or return types and does not support structures that have shredded the members of the group.

    In addition, the .NET adapter does not support creating or call methods on generic classes.

    My solution was to implement the foregoing in VB.NET from TestStand .NET adapter does not support .NET generic data types.

  • 1073807346 error occurred at the VISA write to rsspecan_core_write.vi

    Possible reasons:

    VISA: (Hex 0xBFFF000E) the given reference of session or the object is not valid.

    I use a USB port for connection of GPIB to a Rohde Schwarz FSV30 of Windows 7 spectrum Analizer.

    My program works 100% in LabView, but the problem comes when I compiled the program into an executable.

    I have already installed runtime NI VISA 5.0.1 and it still does not work.

    I also installed the drivers of 2.73 OR-488. 2 for the GPIB unit.

    Any ideas?

    I thought about what it (finally), it works now!

    After adding the screws needed for the project you should also go to the executable properties-> Source files and then select all the files to be "Always included" on the right side.

    Thanks for you help Jürgen

  • Instruments GPIB remote access through the GPIBConf device names

    Hello

    I am trying to run the Labwindows 2009 SP1 code on a PC based office while trying to exploit the GPIB instruments

    on another part of the network.

    Normally, this isn't problem with VISA server on the target computer and the use of names of Alias VISA within the

    Office PC code.

    But this code was inherited and uses a different method which has been the best over time.

    The code uses device name strings that have been defined using the GPIB utility: GpibConfig.exe,.

    on the target computer. So when a device is first initialized, the name defined in the GPIB utility is used

    by the code and the associate instrument access are reached. It works fine when the code and

    the instruments are located on the same PC.

    My question: is there some way I can use VISA access server remote GPIB instruments help

    defined names on the computer target with the GpibConfig.exe utility?

    Thank you

    Gary.

    The low-level GPIB functions have no knowledge functions VISA or aliases. This must be a very old application since the VISA has been around for 10 years. Have you always the source code so you can change your GPIB for VISA?

  • VISA resource name strings

    Hello

    I have a control "VISA Resource Name" on my front, according to the guidelines of the attached screenshot, which should automatically fill with the names of all the VISA resources that the PC can see.

    Is it possible to get a picture of these names as strings (via a property node, or other) programmatically?

    Thank you very much

    Dan

    In the schema click Instrument of e/s > VISA > VISA advanced > VISA find resources. This VI returns an array of strings. You can type cast the string in a resource VISA type.

  • visa resource name function

    Hi good day to everyone!

    I am a beginner to LabVIEW, and currently I'm testing on a single project.

    Store device data in Server series of STS (which has 16 com ports).

    But I need to use 7 series STS server com ports. I need to read that data 7 com ports and save in a file.

    Each com port has a different function (for example the reading of data or display).

    My question is,

    (1) VISA resource name operation function for 7 com ports at the same time to a VI?

    (2) how can I choose different com ports to different functions?

    Kind regards

    Control of resources of e/s of VISA will show you all the com ports you have on your computer.

    So you just need to make 7 copies of that control and the value of each of them to another com port and use for each VISA entry and read the series of functions that you do.  (Have you looked in the example Finder to get examples of serial port?)

Maybe you are looking for

  • Only download music right

    So I try to download a CD on iTunes. But tracks won't download to the right. The songs which are usually 4 or 5 long minutes are uploaded in like 30 seconds, not even full songs. And some of the songs that completely download have clicks and pops. I

  • How to grab the scroll bar in the mail?  It flashes by too quickly?

    In mail, there is a scroll bar that appears briefly on the right and left side of my Inbox.  I want to be able to grab the scroll bar to scroll through my mail; However, the scroll bar appears only briefly and not continuously - then, I can't seem to

  • Why Toshiba laptops are not supplied with the common Vista installation CD

    Our House now has two laptops from Toshiba x, which were provided with MS Vista Home Premium pre-installed. The nature of the medium of recovery provided with these machines is such that (a), we do not have enough flexibility to the volume/partition

  • Satellite A300-1HV: light button does not work

    Hi guys,. I recently bought a Satellite A300-1HV, and while that in the store, the salesman showed me it was possible to turn off the light behind the function/media at the top of the keyboard buttons. It seems to do by simply pressing the first butt

  • Re: Satellite M100: BSOD at each start of the first up - but ok after that

    I have a weird problem. Recently, I bought a laptop series M100 in Thailand - he has worked there. Brought to the United Kingdom and since then now on a startup cold upward, I get a blue screen every time, and after that one or 2 other blue screens -