Name of building resource?

Hey Gang,

It was a frustrating day.

I'm building an application driver for the PCI-6021 in native C++ code.  I use DAQmx driver inside.  It seems that the driver needs C (table of constant of type character) type strings for specifying "meter."

Everything works fine when I created it below and which pass to the function:

My meter [10] char = ' Dev1/ctr0. "

But, I have to build the array of characters in molding and inserting integer variables for numbers of device and the meter.

I can generate strings that have the right text in them, but I didn't understand how to cast that into a variable that will work with the command.

I know it's more a matter of C/C++, but I will really appreciate any help.

Thank you

Roger

Eureka!

I've found a workaround.

I create a table of character literals:

numbers [9] char = {'1', '2', '3', '4', '5' ', 6',' 7 ', ' 8', 9'};

int MyIntArg = 1;

Then replace the character:

MyCounter = ' Devx/ctr0. "

MyCounter = [3] numbers [MyIntArg-1];

Phew!  On the following problem!

Roger

Tags: NI Software

Similar Questions

  • 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

  • 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.

  • 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.

  • 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

  • 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 >

  • HD in DPS App Builder resources

    Hello

    Since the retina display and HD in DPS App Builder resources, there is a problem with the size of the files that you can add. The HD resources are limited to 2 MB.

    But unfortunately, a px of 1024 x 1024 PNG icon already has more than 2 MB and you can't get to the next point in DPS App Builder, you receive an Error Message to provide a lighter file.

    Please change this size limit. Its mandatory!

    If you use the save for Web & devices command in Photoshop to create an 8-bit (not 24 bit) PNG file, you will keep your images under 2 MB.

  • task error 50103 name the specified resource is reserved

    Hi all.

    Let me tell you my configuration:

    software: Windows XP sp3, Labview 8.5 fr.

    material: chassis OR cDAQ-9172 with 4 modules installed (in this order):

    1 NOR-9217 (4 RTDs)

    2 NOR-9217 (4 RTDs)

    3 NOR-9219 (4 RTDs)

    4 NOR-9219 (4 RTDs)

    So, I want to acquire 16 temperatures.
    In MAX v4.3, all works well.
     
    As you have aspected, I got the famous 50103 error: "the specified resource is reserved. The operation could not be performed
    such as specified'. «Task name: unnamedTask<9>'.»»   -highlighting of module #2.

    My goal is to read these temperatures consecutively, I mean: mod1 ch0... Ch3, mod2 ch0... Ch3 and so on.
    My program (vi) is like this:

    In a while loop I have a stacked sequence Structure that has 4 frames, each for every DAQ Assistant asigned and configured

    for these modules.
    So I have: Assitant1 for mod1, mod2 Assistant2, and so on.
    Assistants work well in configuration overview mod (I see 4 temperatures on each module).
    But in my program, I got the error above, on module2.

    I read something about this error and I understand that I can not use 2 or more resources at the same time.
    I understand that a resource represents a channel on a module.
    At each end of the DAQ Assistant, I have a Signal from Split (split in 4)
    But with this setup and this algorithm, I guess I read all 16 channels in total consecutively, not at the same time.
    Am I wrong?
    How can I solve the problem?
    Thank you.

    You see that the resource is reserved error because you cannot create multiple tasks in doubles in your program.  Compact data acquisition with modules is essentially identical to one of our PCI/PXI data acquisition cards that you can have that one task duplicate to read from different channels.  So, what you need to do, is use a single daq Assistant and select the channels of all the modules you want to read.  I've attached a screenshot of how to select different channels.

  • How to create names for VISA resources

    Create a VI to interface with a Tektronix Oscilloscope. Tek drivers all use and transmit handles instrument VISA Resource Name to the format.

    Yesterday, I simply plugged a text string with the characters of text on the Tek pilot and it's happy. String = "GPIB::12:INSTR".

    Today, LabVIEW dislikes this incompatibility of format, and I get an error of the pilot.

    My format of the string looks OK, but I have to do something wrong. None of the tools VISA simplty interrogate the device for his VISA resource name. How to do it?

    Thank you.


  • 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:

  • How to change the name of provisioned resource account

    Hello

    In the custom connector that we have currently in place when an account is put in service the name of the account appears as a random value.

    How do change the name of the account funded from this random number to some loginid to say name invalid.

    Thanks in advance.

    Try the following steps:

    To change the name of the account to the account user id, you can follow the instructions below:

    1. open the form of the process of the resource that you want to display the user id as the name of account, instead of this strange number for example. UD_IPNT_USR

    2. create a new version of the form.

    3. go in the Properties tab.

    4. Select the user ID property and click on add property button.

    5. Select the account name and the value is false.

    6. save the form and make the version active.

    7 connect to IOM self-service console, select a user with iplanet account for her. You can see the user id of the account in the account instead of the strange number name,

  • redundant names of pxi resources

    Whenever I run a VI that accesses my digitizer PXI using the VI OR-SCOPE module I find myself with many redundant instances of the resource in PXI drop down menu resource. See the image attached to the binary "niScope Acquisition.vi EX" cover for an example of what I'm describing. Why does this happen?

    Thank you

    Eric

    It looks like niScope Close.vi is incorrectly called.  This is where the sessions are cleaned.

    Mark

  • [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

  • Name of resource VISA get does not have USB serial ports

    We built an application on a computer that had a built-in serial port - COM1.  We have the option to change the COM port in the application.  We have installed the application built on a computer that has no serial port, but installed a USB serial Converter which records as COM3.  LabView does not see this port, even with a test application to return only the names of VISA resources.

    We have verified that the port is good with another program (a Modbus Simulator) and installed the last TIME VISA v4.41 separately without result.

    Any suggestions for more troubleshooting would be extremely useful.

    Joe T.

    My main of the application still does not work, but now the little test ones are.

    Here's what I did:

    1. update my LabView 8.5 with the last VISA - 4.4 runtime.  This update the installer as well.

    2. added the install MAX for the build.

    3. adding the Support of Configuration of NI-VISA for construction

    4. uninstalled the app and reinstalled with the new volume of the system.

    When I run MAX, COM3 appears.  He also appears in the application of test resources.  The simple test Modbus to write the program works, too.  I have a sneaky feeling that COM1 can be hardcoded somewhere in the parent application; our next task is to find where communication breaks down in our code.  The bottom line seems to be a lack of experience with the demand of our manufacturer.

    Thanks to all who participated!

    Joe T.

Maybe you are looking for

  • Tungsten E2 hangs up on the calendar during the hot sync.

    I have a Tungsten E2 with Palm OS Garnet 5.4.7. Suddenly, he started hanging up during hotsync. He always tries to synchronize the calendar when it crashes. I lost the original PC software and impossible to reinstall cd. I tried to remove the softwar

  • 2000 laptop 2d22dx: where can I get this back in?

    My projected computer blue me like a month ago and found out that it was the hard drive, then I got recently a new. After starting the computer upward again it says "device not found please install an operating system on your hard drive priming." I a

  • BSoD local ID 3081 BC Code c8

    Hi guys,. I'm not too smart when it comes to PCs and have been searching the net for help on how to fix a BSoD. OPERATING SYSTEM: Intel Core 2 Quad CPU Q6600 @ 2.40 GHz 2.40 GHz 4 GB OF RAM Vista 32 bit Service pack 2 GPU: ASUS GeForce GTX560Ti BSoD

  • Peripheral USB are not recognized

    Original title: USB drivers My mouse, printer and mobile device are not recognized or functioning when plugged into the USB ports. They seem to be fed, but that's all. When I run MASTS (Microsoft Automated Troubleshooting Service), it scans and concl

  • Camera driver for Windows 7 (64 bit) notebook VGN-SZ780

    My laptop came with Vista and after that I installed Windows 7 (64-bit), the camera does not work.  Where can I find the driver for the camera (it seems that it is Ricoh) to Windows 7 (64-bit).  The Sony Web site doesn't have.  Help, please!