Find resources and resource name

I'm using LV6i and I'm a little bit unhappy with that new data type VISA
resource name which is input to the VISAOpen VI.
If I use the FindResource VI, it returns a list with all the found
resources. How can I select out of this list and wire the result to VISA
resource name input. Is there a function to convert string into
VISAResourceName? I found only VISAResource controls and constants, aren't
there any conversion functions? If not, FindResources is useless, cause you
can't use that information for further processing.
Second question: Is the VISA Resource control a hidden FindResource because
it offers me some resources in my system, but not all of them (in fact, it
offers me COM1 and LPT1 but not GPIB).
Last but not least a question
of a more programming philosophy nature: If I
execute a VISAOpen to a instrument on the GPIB bus, it changes into remote
operation. But why does the VISAClose not the exact reverse the VISAOpen,
e.g sends a GoToLocal to the device, so that the instrument returns into
initial condition ? I find it more consistent to leave a VISA execution
chain with device on local. If I want to set a device into local I have to
use the Misc VI with loc xx input. And this VI doesn't use the VISA resource
name but a string. That's rather inconsistent.
Any opinions?
Oliver Friedrich

Okay, first, I put strings into VISA resources all the time. A VISA resource name is a special type of string. Create a VISA Resource Name control and then create a local variable from it. Wire your string to the local variable. When the program is run the string will be transferred in to the VISA Resource Name control. Be sure to enable the Allow Undefined Names in the VISA Resource.
A VISA resource control only lists VISA resources that have been defined in NI VISA. If you have another type of VISA loaded on the system, or have not defined aliases in MAX, then they will not show up in the VISA Resource Control. Yes, this is annoying.
I personally would not like VISA close to send a device back to local mode. I do not like languages (or word processors - hear
this Microshaft?), that assume they know what I want to do. There is much more flexibility in letting the user decide when to go to local mode. If you want a close VI that also goes to local, then write your own library routine that does this.
Rob

Similar Messages

  • Query to Find Table and Column Name by using a value

    Dear Legends,
    I hope and surfed in our forums and google to find the Table Name and Column Name by having a value(Number/String). And my where clauses are
    where owner NOT IN ('SYS','SYSTEM') and
          data_type IN ('CHAR','VARCHAR2','NUMBER')
    May I have your help for building the query. and my query as follows
    select a.owner, c.column_name, c.data_type, c.owner, c.table_name
    from dba_objects a, all_tab_cols c
    where a.owner NOT IN ('SYS','SYSTEM') and
    where c.owner NOT IN ('SYS','SYSTEM') and
    where c.data_type IN ('CHAR','VARCHAR2')
    order by a.owner
    Thanks,
    Karthik

    You can use
    select * from user_tab_columns a, user_tables b
    where a.table_name = b.table_name
    and  a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR');
    Or if you want to user DBA_* tables, you can use.
    select * from dba_tab_columns a, dba_tables b
    where a.table_name = b.table_name
    and a.owner = b.owner
    and  a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
    and b.owner not in ('SYS', 'SYSTEM');
    And now when I look a bit more closely, you don't need DBA_TABLES there. dba_tab_columns alone is sufficient. And requirement is still not clear yet. Why you need a group by there? If I get it right, you can use this.
    select * from dba_tab_columns a
    where a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
    and a.owner not in ('SYS', 'SYSTEM');
    Whether you use group by or not, the query will give you the same output.
    Ishan

  • How to find username and tablespace name indatapump import

    I have a datapump export without the logfile .I would like to import it into a db.Before starting import I would like to know the schema and tablespace which it is exported so that I can remap the schema and tablespace to some other.Is there anyway I can do this

    You can run your import command but add this:
    include=tablespace,user sqlfile=look.sql
    The file look.sql will have the create tablespace commands and the create user commands.
    Edit look.sql to see what the tablespace and user names are.
    Dean

  • Finding column and table name

    Hi,
    I need to find out that '101c_0000000018' value is which column and table of database.
    Is there a way to find it? I am looking for table and column which is storing this data.
    Thanks
    Sandy

    It's possible but performance is going to be horrible.
    Assuming the data is stored in a CHAR or VARCHAR2 column, something like
    DECLARE
      l_value VARCHAR2(100) := '101c_0000000018' ;
      l_cnt   PLS_INTEGER;
      l_sql    VARCHAR2(1000);
    BEGIN
      FOR x IN (
          SELECT table_name, column_name
            FROM dba_tab_cols
           WHERE owner = <<name of schema>>
             AND data_type IN ('CHAR', 'VARCHAR2' )
      LOOP
        l_sql := 'SELECT COUNT(*) FROM ' || x.owner || '.' || x.table_name || ' WHERE ' || x.column_name || ' = :1';
        EXECUTE IMMEDIATE l_sql
          INTO l_cnt
         USING l_value;
        IF( l_cnt > 0 )
        THEN
          dbms_output.put_line( 'Found the value ' || l_value || ' in owner = ' || x.owner || ' table name = ' || x.table_name || ' column name = ' || x.column_name );
        END IF;
      END LOOP;
    END;Justin
    Edited by: Justin Cave on Dec 8, 2011 12:20 PM

  • Finding users and departments name

    I am using the following query to find all users there department and there responsibilities
    SELECT distinct employee_number, full_name,u.user_name, d.name ORGANIZATION_NAME, fr.responsibility_name,
    u.START_date, u.end_date FROM apps.per_people_f a, apps.per_assignments_f c, apps.hr_all_organization_units d,
    apps.fnd_user u, apps.fnd_user_resp_groups_direct frg,apps.fnd_responsibility_vl fr
    WHERE a.person_id = c.person_id AND a.person_id = u.employee_id (+)
    AND u.user_id = frg.user_id (+) AND frg.responsibility_id = fr.responsibility_id (+)
    AND c.organization_id = d.organization_id
    AND SYSDATE BETWEEN a.effective_start_date AND a.effective_end_date
    AND SYSDATE BETWEEN c.effective_start_date AND c.effective_end_date
    order by d.name
    But this query is not fectching all users_id from fnd_user,i need all users list in fnd_user.....can any body help

    The query looks fine, just make sure you have a person (From HR) attached to a user and it should work properly then.

  • Find transaction and exit name from the name of include program

    hai
    i want to know the transaction that is executing
    the exit which includes the include name
    as "LVKMPFZ2"
    can anyone tell me the procedure (dont forget steps )
    to know the transaction
    (but this program is include SAP automatic credit control configuration)

    Hi
    Try TSP01-Suffix2
    Regards
    Raj

  • VISA Find function to VISA Resource Name

    Hi,
    Can anyone help me with this VISA question. I'm kind of new to
    instrument control, but have been using LV for quite a long time. I'm
    using version 6.02. I discovered the VISA Find Resource function, and
    thought it would be really neat to find the instruments that are sitting
    on my GPIB bus, and then make sure they are the ones I need for my
    testing. The Find resource works great, and returns an array of strings
    that are the resource names of the instruments. i.e. GPIB0::5::INSTR.
    However, the VISA Open (and all the other VISA functions) require a VISA
    resource name control (One of those pruple doohickies with I/O in it).
    I haven't been able to figure out how to get that string from the find
    function into the VISA resou
    rce name control (It looks like a pulldown
    on the front panel) so that I can do a *IDN? query to find out what
    instrument is actually at this address. I've tried property nodes, even
    looked at the invoke node, but to no avail. By the way, the property
    node DID have the VISA resource name, but it was read only.
    Thanks in advance for any help you folks might be able to provide.
    David Dupont
    Airvana Inc. http://www.airvananet.com

    Hello, David!
    I'll do my best to answer your question.
    In LabVIEW 6, you have to assign VISA aliases in Measurement and Automation Explorer. You can assign meaningful VISA Aliases to your instruments that you control using VISA in the Devices and Interfaces section in Measurement & Automation Explorer. The aliases can be used in your LabVIEW application development to refer to your instrument.
    Once you have assigned aliases in MAX, you simply place a VISA Resource Name Constant in your block diagram. Type the alias name into the resource name constant and wire the name constant to the VISA Resuorce Name input of the VISA Write and VISA Read functions to control your instrument.
    I hope this helps.
    Mark Ridgley

  • Visa resource name can't find

    I'm running a example, visa resource name list couldn't find the port, only com port list, added USB cable (FTDI TTL-232R-3V3-WE) into visa, change visa class I/O session to USB raw, then can see it, but in configure serial port vi, I got this pic. Did I do something wrong or any suggestion? 
    thank you
    Attachments:
    2.PNG ‏32 KB

    Do NOT change the I/O class to USB RAW if you want to use the device as an RS-232 port. If the device does not show up in MAX as an additional com port, first verify that you installed the correct driver that came with the device. Then, see if it appears as a com port in windows device manager. Post back If it shows up in device manager and in Hyperterminal as a com port but MAX still does not list it.

  • Can't find VISA resource name

    I am trying to run an example code, provided by the manufacturer with a Keithley 2420 3A SourceMeter.  It is powered on, and set up for 488.1 GPIB Protocol.  It is hooked up to my computer using a KUSB-488A GPIB cable.  On the front panel of the example program, there is a drop-down menu labeled "VISA resource name."  The two options available to me are LPT1 and COM1, but I don't think either of these are the right resource name.  Does anybody know what VISA resource name I should be using with the Keithley, or how I can find this out? If it helps, I provided the example program I am using. Thanks in advance!
    Solved!
    Go to Solution.
    Attachments:
    Keithley 24XX Read Single.vi ‏41 KB

    If you read the intructions that come with the Keithley USB-GPIB converter they enclude installation instructions to install the National Instruments compatable version of their driver.
    Yup, just read and follow the set-up instructions.
    Jeff

  • Old visa open, error code 1073807343, using VISA with a GPIB device, and VISA resource names

    Hi everyone,
    I'm trying to get a SRS model SR720 LCR meter (manual on this page) working with LabView, connecting it to my PC with an Agilent 82357A GPIB/USB interface (manual on this page). I'm running MAX version 14.0, and NI-VISA version 14.0. I'm running LabView version 13.0f2, 32 bit.
    I followed the directions on this page, and I'm pretty confident I can communicate with my LCR meter, because I can go to NI MAX->GPIB0::17::INSTR under "devices and interfaces", then go to the VISA test panel, go to the I/O tab, and I can enter a few commands from the SR720 manual, like changing the frequency, and I see the light on the LCR meter change to what I just told it to do. Here is a picture, just to illustrate it:
    Also, if I do the *IDN? command, it returns "
    9: Write Operation (*IDN?)
    Return Count: 5 bytes
    10: Read Operation
    Return Count: 41 bytes
    StanfordResearchSystems,SR720,08087,1.03\n
     So, that's good too. I also made the alias of this device "MyLCRmeter", but that shouldn't matter for now.
    Now I'm trying to get it to work in a more usable way. The SR7xx drivers that LabView found for me came with a couple sample programs, one called "Getting Started.vi". I tried to just simply see if it worked, changing the "instrument descriptor" field to "GPIB0::17::INSTR", since that's the one that seemed to be the right device in MAX. Here is a picture of the front panel of "Getting Started.vi":
    Trying to run it like this gave me this error (code -1073807343):
    Old VISA Open in SR715/720 Initialize.vi->SR715/720 Getting Started.vi
    Doing a bit of searching on these forums, I found these few threads (1 2 3), which seem to tell me that, since this program was written, the way you open VISA has changed. In the 2nd of those links, one guy said:
    You just have to replace the Old VISA Open function with the VISA Open that is on the Instrument I/O>VISA>VISA Advanced palette. When you do that, the wire to the string that was used for the resource name will be broken. Delete the string and make the actual VISA Resource Name visible on the front panel. Wire the VISA Resource Name control to the connector pane where the string control was (upper left connection).
    So, I went into the sub-VI Initialize.vi, and did that. Here is a picture of what the front panel and block diagram of the sub-VI Initialize2.vi (I changed the name in case I screwed things up, but I'm pretty sure the new one is the one being called by Getting Started.vi) looked like before I changed anything (you can see the Old VISA Open):
    and here it is after replacing that with the regular VISA Open, deleting the instrument descriptor string and replacing it with a VISA resource, and connecting that to the VISA Open:
    However, as you can see in the image above, and it seems like someone else had this problem in the 2nd thread linked above, I don't see my device listed in the drop-down menu (even if I refresh), only "LPT1" (I don't even know what that is):
    No, I wasnt able to select the visa resource from the pull down menu. somehow it seems disabled or something.
     If I just enter the VISA resource name from MAX manually, GPIB0::17::INSTR, and save and try running that, I get the error(code -1073807346):
    VISA Open in SR715/720 Initialize2.vi->SR715/720 Getting Started.vi
    So I'm not sure where to go from there, or why it's not in the drop down menu to begin with. I'm sorry if I've missed something but I've searched about as far as I can go. If I had to guess, maybe one thing could be that in MAX, under Tools->NI-VISA->VISA Options->My System->Conflict manager, I have both Agilent VISA and NI VISA enabled; I know sometimes problems arise from conflicts between different software fighting over the same hardware. Is this okay, or do I need to change it?
    Thank you and please let me know if there is any other code/screenshots I could provide that could help!

    Hi, I did indeed enable NiVisaTulip.dll under MAX->Tools->NI-VISA->VISA Options->My system->Passports->List of passports. Sorry, I should have mentioned that explicitly.
    By install as primary, do you just mean as it is here, where it is selected as the "Preferred VISA"?
    Or somewhere else? I installed NI-VISA first I believe, and then the Agilent one, and during the installation of the Agilent one, I'm pretty sure I made it not the primary. Here's what I have in the Agilent (it's called Keysight now) Connection Expert software:
    I also have this under the "Keysight 488 options" tab:
    Should that be checked? I don't actually know the role of VISA vs 488 here...
    What could I try?
    Thank you!

  • How I can saving visa resource name in windows registery and load it again?

    I use visa functions in my program for serial communication , I want to save selected resource name in windows registery and next time that i run my program, i want to read it from registery and assign it to my visa resource name control.
    example:         My visa resource name control value = COM2
                            I close my program with this value (how i can easily save COM2 to windows registry key ?)
                            I open my program again (how i can load COM2 in my resource name control from registry Key?)
                            How i can access to visa resource name list? example: COM1     COM2      LPT1     COM56     COM255
    Thanks.
    Solved!
    Go to Solution.

    I guess I don't understand your problem. All you have to do is ready the key containing the desired resource name and wire the resulting value to the appropriate terminal on the open VI. That's as hard as it gets...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • SQL Query to get Project Plan Name and Resource Name from Reporting database of Project Server 2007

    Can you please help me to write an SQL Query to get Project Plan Name and Resource Name from Reporting database of Project Server 2007. Thanks!!

    Refer
    http://gallery.technet.microsoft.com/projectserver/Server-20072010-SQL-Get-a99d4bc6
    SELECT
    dbo.MSP_EpmAssignment_UserView.ProjectUID,
    dbo.MSP_EpmAssignment_UserView.TaskUID,
    dbo.MSP_EpmProject_UserView.ProjectName,
    dbo.MSP_EpmTask_UserView.TaskName,
    dbo.MSP_EpmAssignment_UserView.ResourceUID,
    dbo.MSP_EpmResource_UserView.ResourceName,
    dbo.MSP_EpmResource_UserView.ResourceInitials
    INTO #TempTable
    FROM dbo.MSP_EpmAssignment_UserView INNER JOIN
    dbo.MSP_EpmProject_UserView ON dbo.MSP_EpmAssignment_UserView.ProjectUID = dbo.MSP_EpmProject_UserView.ProjectUID INNER JOIN
    dbo.MSP_EpmTask_UserView ON dbo.MSP_EpmAssignment_UserView.TaskUID = dbo.MSP_EpmTask_UserView.TaskUID INNER JOIN
    dbo.MSP_EpmResource_UserView ON dbo.MSP_EpmAssignment_UserView.ResourceUID = dbo.MSP_EpmResource_UserView.ResourceUID
    SELECT
    ProjectUID,
    TaskUID,
    ProjectName,
    TaskName,
    STUFF((
    SELECT ', ' + ResourceInitials
    FROM #TempTable
    WHERE (TaskUID = Results.TaskUID)
    FOR XML PATH (''))
    ,1,2,'') AS ResourceInitialsCombined,
    STUFF((
    SELECT ', ' + ResourceName
    FROM #TempTable
    WHERE (TaskUID = Results.TaskUID)
    FOR XML PATH (''))
    ,1,2,'') AS ResourceNameCombined
    FROM #TempTable Results
    GROUP BY TaskUID,ProjectUID,ProjectName,TaskName
    DROP TABLE #TempTable
    -Prashanth

  • Querying users and their resource names from SSO tables

    Hi,
    Any ideas how to query the SSO tables so that i can extract all users and which "Resource Access Information" (for Forms based applications) is assigned to each user.?
    A bit like the solution on the link below but also with a join to resource names (for Forms) that each user has.
    Querying user enabled status from SSO tables
    Thanks

    Thank you for that! I have extended this query to contain the ods.ct_uid table as follows as some users were being omitted. Also I have included a decode statement that changes the 'enabled' or 'disabled' to a 0 or 1.
    SELECT
    UPPER(cus.attrvalue) username,
    DECODE(NVL(ena.attrvalue, 'enabled'), 'enabled', 1, 'disabled', 0) enabled
    FROM
    ods.ct_orclisenabled ena,
    ods.ct_uid cus,
    ods.ct_cn ctu
    WHERE cus.entryid = ctu.entryid
    AND ena.entryid (+) = ctu.entryid

  • Lacie finder.dat and resource.frk files

    Sorry if this is not the place to post.
    Recently I used my new lacie firewire drive to transfer files from my G4 to a PC laptop. Now the files on the Lacie (when I work on the G4) are missing their icons and their tag .ai, .m4a etc. and I can't open many of them. Some files will open via right click and choose the program.
    In every folder there is now a finder.dat file and resource.frk
    I read in a recent post about the finder.dat. And now understand the relationship to the PC. Although, this has never happened on my older Lacie drive.
    Can I fix what I've done to my files? What is the Graphics Converter?
    I do have all recent updates for the Lacie applied.

    FINDER.DAT and RESOURCE.FRK would be the product of AppleDouble Format in other words files transfered from the HFS filesystem to a foreign filesystem. FINDER.DAT can be translated as finderinfo which can contain creator codes and file types. Most OS X application can do fine without this info. RESOURCE.FRK is the resource fork. Both the finderinfo and resource fork have been split from the data fork- I see no use for this info since I can't think of a way to rejoin this info with the data fork. Wait and see if someone has another opinion before removing the files.

  • Functional difference between VISA resource name ASRL1::INSTR and COM1

    Config: LabVIEW 6.02, VISA 2.6.0
    I have used a text constant for "VISA Configure Serial Port.vi" for years, and just now I have run into problems.
    With my application, a text constant of ASRL2::INSTR would properly open the port, but it would not send any data, but using COM2 worked.
    What is the difference?

    MAX sets up serial port aliases automatically when possible. Let me try to explain.
    If the alias "COMx" was not previously configured in NI-VISA, and you have a serial port really named "COMx", and that VISA resource string does not have any other user-configured alias, then MAX will bind that alias to that port, regardless of what the full VISA resource string is. That part actually makes sense and shouldn't confuse anyone. If the alias "COMx" is taken, or the user has manually configured a different alias for the serial port (such as "MyDMM", for example), then MAX does not auto-assign the alias for that port. So far so good.
    The confusing part in many cases is how NI-VISA itself assigns the VISA resource string. For COM3, normall
    y NI-VISA would assign ASRL3::INSTR, and so on. There is 1 conflict that usually screws everything up. Since NI-VISA on Win32 allows you to open the parallel port by default as ASRL10::INSTR (for extremely historical reasons), the conflict occurs when you really have a COM10. It's not a terrible conflict, but it is confusing. NI-VISA will match every other port that it possibly can, and then just assign a unique resource name (ASRLx::INSTR) for COM10.
    I am not sure why in your case NI-VISA didn't match COM3 to ASRL3::INSTR. If you want to do some experimenting, try this. Go into MAX, delete all your VISA aliases, delete LPT1 from the tree, exit MAX, restart MAX, and refresh. See if that cleared it up.
    Dan Mondrik
    Senior Software Engineer, NI-VISA
    National Instruments

Maybe you are looking for

  • I can not open iPhoto.  I have many photos and have used the program many times. What is happening?

    iphoto installed, up to date and has been in use with no problems.  Now the icon still appears on the dock but I am unable to open the program. Nothing happens when I click the icon.  Help! 

  • File generated in AL11 directory

    Hi Experts, I have created a logical file path and assigned it to physical path in FILE transaction. I have also created logical file name and mapped it to Physical File name. The physical file name is "stock<YYYY><MM><DD>.csv" . But when I execute A

  • Mozilla, Firefox claims Factory is already defined

    I'm working on a client server Java applet that uses SSL over RMI. In IE there aren't any problems, however when I try to load the same applet in Mozilla/Firefox, I get an error message saying "Factory already defined". The problem seems to occur whe

  • Programatically set runtime menu to default

    I am trying to set the Runtime menu from a custom menu back to the default menu.  I write a string using the RunTimeMenuPath property node when the VI is idle.  All the basic combinations failed: empty string, "default", "default.rm".  When I open th

  • Movie Trailers - 2 Problems

    I think it's really cool that you can watch Movie Trailers on the Apple TV, but I have 2 issues with it. Maybe some of you are having these problems as well: - The trailers are sorted in Alphabetical order, which makes it impossible to know which tra