name of the resource programmatically

I'm trying to get the name of the resource 'PXI1Slot2' PXI programmatically.

How to get the handle whch viGetAttribute() object requires?

viOpenDefaultRM (& rsrcHandle); Returns ViSession.

Is there an attribute to get the number of accommodation?

int CVICALLBACK FindResources (int, int int event, control panel,
void * callbackData, int eventData1, int eventData2)
{
ViSession rsrcHandle;
%%NumFound%% ViUInt32 shops.
char InstrDescriptor [256];
ViFindList MyFindList;
int i;
int chassis;

switch (event)
{
case EVENT_COMMIT:

First of all, log VISA.
viOpenDefaultRM (& rsrcHandle);

Now, to do an initial search. viFindRsrc returns the descriptor of instrument
the first found instrument and the number of total resources found.
viFindRsrc (rsrcHandle, "?") * PXI? * INSTR", & MyFindList, & %%numFound%% shops, InstrDescriptor);
viGetAttribute (rsrcHandle, VI_ATTR_PXI_CHASSIS, frame);

When you are finished, close the VISA session.
viClose (rsrcHandle);

break;
}
return 0;
}

According to the function panel, the object handle is a unique logical identifier for a session, list to find or event. So ViSession should be OK. But it seems that rsrcHandle is a session to the resource manager. You will need to use ViOpen to establish a connection with your device.

Tags: NI Software

Similar Questions

  • Name of the resource does not COM port number

    Hello

    When I connect computer Board, I use

    ResourceManager.GetLocalManager (). FindResources("?*")

    to get resource name ("ASRL11::INSTR") and use that name that I invoke

    A session = ResourceManager.GetLocalManager (). Open (Name);

    to get the session and get the value of the property HardwareInterfaceName of the session.

    The problem is that the COM port number in the property ("Com10") of HardwareInterfaceName does not match name the resource. The COM port number is correct, that it is the same, as noted in the Windows Device Manager. But why the name of the resource 'ASRL11::INSTR', it should be "ASRL10::INSTR".

    Does anyone have an idea?

    Thank you

    Eva

    Hello

    Port 10 is reserved for the parallel port

    Curt

  • Error-1074118631 after driver update "the name of the resource is not attributed...". "PXI-6562

    I just updated my version 1.5.3 to 1.7.4 niHSDIO driver and now the device, a PXI-6562 is won't boot. I get the following error. The VI is suspended for 30 ~ 60 s attempt to initialize before the error occurs.

    Code: - 1074118631

    Message: niHSDIO Init generation Session.vithe name of the resource is not assigned to an instrument supported by NOR-HSDIO.

    The device worked fine with the old driver.

    Windows Device Manager indicates that everything is installed and working.

    I tried to write a simple VI by using new versions of the screw HSDIO and recreating the I/O resource menu drop-down.

    The resources dropdown lists the name as "PXI1Slot2".

    I can see the device in MAX thanks its location listed as "chassis: 1; Slot: 2 "

    The PXI-6562 has 2 LEDs on the front panel for 'access', 'active'. No lights during an attempt to initialize.

    I tried uninstalling the driver in Windows, reinstalling and restarting: same problem.

    I tried to use the device in Signal Express, and it produces the same error.

    I use LabVIEW version 8.5 and Signal Express 2.5.

    Does anyone know how to fix this?

    Thank you

    Arthur

    Hey Arthur,.

    You should also do a repair on the NOR-DAQmx driver for example, after you have repaired HSDIO. Let us know how it goes. Thank you.

    Kind regards

    DJ L.

  • Deployment of ADFLibrary: provide a unique name for the resources in this project

    JDeveloper 12 c.

    I'm deploying an application as a library ADF - it will be used my multiple applications.  So it's a bit generic. Sometimes it is OK and other times it gets stuck... See the ChangeLog

    What do mean exactly by ' resourceprovide a unique name of the indicated "? 

    What should I name the files?  xyz_abc_appNotices.jsff or the directory structure has to change?

    Thank you!

    Stuart

    [16: 38:44]-deployment began.  ----

    [16: 38:44] the target platform is Java EE Standard.

    [16: 38:44] analysis of the dependence running...

    [16: 38:44] building...

    [16: 38:48] deployment of profile...

    [16: 38:49] WARNING: the commonly named resources below could cause errors of reusability to your consumers.

    Provide a unique name for the resources in this project, or start with a different project.

    appNotices.jsff

    appNoticesMain.jsf

    [16: 38:49] Mobile WEB-INF/adfc - config.xml for META-INF/adfc-config. XML

    Well, Yes, it would do. The warning say you that your library resources should use unique names, that I hope are not used by other libraries. From the resources app Strip is common chance is that it will be a duplicate.

    Timo

  • Oracle/binding_permission_authorization_policy name of the resource

    Hello

    I was setting this policy and everything works fine if I specify


    Permission class: oracle.wsm.security.WSFunctionPermission
    The resource name:
    Action of permission: *.

    It is configured in the application with the application role related policies. Only users in the role are permitted to access the resource. I would like to link it to a specific resource now.


    I tried to change

    Resource name of: < < space of names > > / < < ServiceName > > # < < operation > >
    Action of permission: *.

    And

    The resource name for: *.
    Action of permission: call

    And

    Resource name of: < < space of names > > / < < ServiceName > > # < < operation > >
    Action of permission: call

    None of which work. I know that I have the correct namespace for the WSDL file and the name of the composite service and operation. They all give me permission errors. Any ideas?

    OK, an update, got the job by having the

    Name of the resource as > />

    Action as >

  • Find the name of the resource of the SMU-4143 NI

    Hello world

    Is there a way to find the resource name assigned by MAX using LabVIEW? I need to use niDCpower initialize wite channels VI to initialize a session with SMU-4143. This VI asks the name of resource assigned by measurement & Automation Explorer (MAX) of the 'PXI1Slot3' form as input. I'm not sure whether we can use VISA find resources to detect the PXI instrument. If so, the resource to find string exit VISA is a different format. How can I get the name of resource affected by MAX of this? Any ideas?

    You can use a constant DAQmx device name or a control.

    Or you can do deactivation:

  • VI Initialize with OptionsString missing the resource name field when creating the IVI Driver Generator LabView 8.6

    Hello world

    We have just uploaded the latest LabView version 8.6 and there is a nice tool called generator of LabView LabWindows CVI Instruments drivers. Our driver of the instrument is an IVI driver that has a LabWindows CVI interface that uses the generation of LabView tool to create all the VI that could be used to talk to the underlying driver IVI hollow discovery of .fp, .sub and .h files. No mistake and screws more than 30 are generated automatically.

    There is an inconsistency in the Initialize function IVI driver. There is a VI Initialize driver without an input of OptionString parameter and there is a second VI with the OptionString parameter.

    Two of these screws should have a required entry field that is the ResourceName of the instrument, but this field is visible in the initialization of VI that has no OptionString input parameter and is not at all visible in other VI initialize that has an OptionString input parameter

    No idea why the second version of Initialize does not display the ResourceName parameter?

    Thank you

    Sorin

    Hey Sorin and Heather,

    I've just built your IVI driver and can see the question you come through.  What version of LabVIEW and the tool are you using?  I am looking into this further for trying to dig your problem a little more.   If you add the connector to the connector pane, the created VI meets the needs that the name of the resource exists, it's just not in the connector pane.  This can do a right-click on the icon in the upper right of the front panel and selecting display connector.  Select where on the VI wish you add the connector, and then select the name of the resource.

  • [Build ripple failed] The resource name is not valid

    Hello guys,.

    I have problems with my application using ripple of packaging. It continues to produce [Oh Snap! [Build request failed with the message: invalid application [ERROR] (Archives) - name of the resource are not valid (img/[email protected])] error.

    I'm guessing a reoccurrence of an old bug as tneil well said in this post , so I used the latest version of the SDK (BlackBerry WebWorks SDK 2.2.0.15), but the error persists.

    Please note that I used Ripple many times before with the "-" on the names of file deleted on my mind, which is probably the reason why I've not encountered this earlier but it's just that I'm importing pre-made images with strict naming conventions (with a "-") so I can't go and rename them.

    Here is a screenshot of ripple.

    Any help would be appreciated.

    There are special characters that are not supported in the names of embedded resources for an application running on the BlackBerry Smartphone platform.

    I think that is one of these characters not supported

  • Type of resource the resource COMPUTER name COMPUTER

    Hi all

    Is there an API for resource Type by passing the name of the resource as a parameter?




    Thank you.

    Try using this code:

    public String getITResourceType (String itResInstanceName) {}
    tcResultSet itResInsParams = null;

    HashMap map = new HashMap();
    String itResType = "";
    try {}
    Map.put ("TI Resource.Name", itResInstanceName);
    itResInsParams = moITResInstanceUtility.findITResourceInstances (map);
    itResInsParams.goToRow (0);
    itResType = itResInsParams.getStringValue ("IT Resource Type Definition.Server Type");
    } catch (tcAPIException e) {}
    System.out.println (e.getMessage ());
    } catch (tcColumnNotFoundException e) {}
    System.out.println (e.getMessage ());
    }

    Return itResType;
    }

    Note: moITResInstanceUtility should have been declared and instantiated in the following way:

    Local execution--> moITResInstanceUtility = (tcITResourceInstanceOperationsIntf) ioUtilityFactory.getUtility ("Thor.API.Operations.tcITResourceInstanceOperationsIntf");
    Execution of the IOM--> tcp tcDataProvider = null;
    this.moITResInstanceUtility = (Thor.API.Operations.tcITResourceInstanceOperationsIntf) APITaskLocal.getUtilityOperations (tcp, "Thor.API.Operations.tcITResourceInstanceOperationsIntf");

    Concerning

  • Show the name of the group in the query when you delete the resource

    I IOM installation so that users and their managers can ask for ad groups and only managers can revoke this resource.
    But when I remove only to see the instance instead of the group key real name because of that it is difficult to determine what resource to revoke
    I see only the name of the resource (which is the same for all) and key

    How can I view group instead of the key name.

    Please tell me how, I need it urgent
    Thanks in advance

    Published by: user11758334 on August 3, 2009 14:48

    Try changing tjspRequestShowResolutionTiles.jsp

    You can follow these steps to achieve
    1. get the resource instance (it is available on the jsp page, check the page to see how it is used)
    2 get the shape of process data using the method of tcFormInstanceOperationsIntf getProcessFormData (id from step 1)
    3. get name the tcResultSet returned in step 2 by using method getStringValue ("UD_NAME") where UD_NAME is the name in the form
    4. on the page, find where targetResourceInstanceKey is printed and replace with the value found in step 3

    Let me know if it works
    Sam

  • How to detect the resource (find) information?

    Hi all

    I'm trying to detect programmatically information resource name for devices HSDIO PXI and PXI-4130.   How can I do?    System DAQmx property does not include these devices, and I can't find a way to convert a resource VISA name in name of resource HSDIO or NI DC PS formats.  I enclose a code snippet that detects resource VISA for a device 6552 name, but I can't seem to figure out how to get the name of MAX the device resource.   Both the niHsdio and the properties of 'name of the resource' OR DcPS requires that you spend a session valid in them need valid resource name andI to make...

    And no, asking the operator to launch of MAX and find the name of the resource is not an option

    Thank you

    Hello

    Modular instruments and devices devices use their own set of screws to find devices in the system. The lybrary called NOR-ModInst and i's includedin the palette of the utility with the MID drivers.

    Here is a small example that demonstrates the use of their base.

    Let me know there are questions of the amy

    Kind regards

    JC

  • VISA: Is denied access to the resource or to the remote machine.

    Hello.

    I use a cRIO-9076 to communicate with a Keithley 2400 via port RS-232 on the cRIO. I have a vi test which is built using the Keithley 2400 drivers and it works perfectly fine with the vi is located under 'My Computer' in my project. If I'm moving that vi on the potion of distance OR cRIO9076 of the project and try to run the vi I get a

    VISA: (Hex 0xBFFF00A8 to the resource or the remote machine access is denied...

    I realized I need to add something to the list of remote access on the cRIO that I find a little confusing. I want to use the serial port on the cRIO by VISA to communicate to the Keithley, so I need to give permission to cRIO on the cRIO? I'm obviously confused.

    I tried to add a simple * (wildcard) to the list of access as a temporary solution but I still get the same error.

    I would like some advice.

    Thank you

    Roth

    cRIO 9076

    Lab View 2013

    Keithley 2400

    NI-VISA 5.4.0

    If you want to move the vi to the CRIO, you can change the name of the resource.

    my example is based on the cRIO-9068. When running at MAX on my local host, it can show as below.

    The resource for the cRIO-9068 should like 'ASRLx:INSTR '.

    Good luck!

  • Instrument not listed is not in the resource of VISA

    I have a GPIB resource.  He appears in MAX, but not on behalf of the constant resource.  I checked I/O filtering and updated the name of the resource, but the problem persists.  What is going on?  See attached picture.

    I tried some of these approaches, but they are not what I'm looking for.  It seems that even if the resource does not appear on labview, and I'm still able to talk to her if I manually enter the name of the resource.  The GPIB-USB instruments are those that gave me problems, because I would like to know the address specify the instruments but not their interface IDS. They use different controllers.

    I've written a vi this loop by interface 0-4 with a primary issue specified address id the * IDN? command and check the answer.  With this method, I am able to find the address of the GPIB string and speaks with the same visa instruments does not have this resource.

    I hope that this method will be held up through time.

  • name of the dot net class with variant

    Hello, I'm having a problem with .NET and Labview and I am sure that you will be able to help me.

    I have several dll in dotNET with their class name and I need to get the name of the class programmatically. All references of dotNET go inside a variant and I can see in the name of her variant of the name of the class, so I would read the name of variant and then through a case structure make a Variant to the data programmatically. I can't find a way to get the variant name, but I don't know there is a way to get it. I'll post some screenshots which may better explain my goal (sorry but I'm still not a Labview expert + dotNET). A class is called SHF 615 A, one is named SHF 614 A

    Thanks in advance for the help!


  • Name of dynamic resource for Excel/csv files

    Hi all

    Playback of a source (as well as csv) excel file, I tried passing the name of the resource via a variable that is defined to contain the name of the file (update). However, the performance, the file name with a character '-' extra without be specified in the interface variable text to deal with the load step.

    The error that says:

    ODI-1227: SrcSet0 (load) task fails on the source of the FILE connection < ConnNameHere >.

    Caused by: java.sql.SQLException: ODI-40438: file not found: C:\DirectoryNameHere\ /OTD.

    This is expected behavior where one needs to escape special characters?

    I checked that the extra / is not present in the value of the variable or the directory for the physical schema.

    TIA.

    Hello

    In my view, ODI generates the character ' / ' by default and I don't think we have any special treatment to escape this character.

    Based on the error message, it looks like you gave "C:\DirectoryNameHere\" in the directory in the physical schema. Lets say "SourceFiles" is your name of directory where all you produce will land and you want ODI to choose that path there, then directory will be "C:\DirectoryNameHere".  When you run the task, ODI generates path like this: "C:\DirectoryNameHere/OTD.csv."

    Kind regards

    KK

Maybe you are looking for

  • Portege 4000: After HARD drive replacing WinXP installation stopped

    Drive HARD original of my old laptop Portege 4000 just crashed. I went to the local computer store and bought a new Samsung 40 GB HDD (no part no MP0402H) what they recommended. First of all, I have problem to him have partitioned and formatted when

  • Tecra M10 P8600 - same for the Tecra M10 P8700 image?

    I'm about to buy another laptop for work and there is as always a few M10 is available to suppliers.My question is an image we have for the M10, but for a machine with P8600 work in a more recent machine with a chip P8700? See you soon

  • Coating came off, watching the retina

    Hello, I have a mid 2014 15' Macbook of the retina and the monitor has a bis place. I understand that it is the coating detach and that there was a lot of problems with that. As I'm no longer in warranty and I don't have Apple care, I do not understa

  • Webcam on the Qosmio F50-126 error

    Hey... I'll try to keep this as short as possible: I used to use my webcam on the Qosmio F50-126 regularly. Until a few days ago the media key won t open camera assistant software Toshiba.Weird - I decided to go in the program file and open it from t

  • Satellite L - CD/DVD player will not recognize a blank BD disc

    My CARPET * A BD - CMB UJ141EL won't regonise a blank bd disk?