Finding a logical name for PXI5112 modules to be used in niScope_Init

I need to dynamically allocate the number of PXI5112 modules on several PCs in a C++ program. After going through great length using VISA calls to obtain the VISA logical name ( PXI3::11::INSTR, etc.), I found out that niScope_Init is expecting an IVI or DAQ logical names. How does one go about to get the logical name for those PXI modules so niScope_Init can use? Hardcoding the name such as DAQ::1 is out of the question because the number of modules is different from test to test. Thanks.
Software:
niScope driver: 2.6
Microsoft Visual studio.net 2003
Measurement Studio 7.0
Windows XP SP2
Hardware:
Group1 : 5 PXI5112s
group2 : 3 PXI5112s
group3 : 7 PXI5112s

Here's a quick and dirty example of how to use the niModInst API in C:
ViSession sessionHandle = VI_NULL;
ViInt32 numberOfDevices = 0,
i = 0;
ViChar deviceNameBuffer[256] = "";
niModInst_OpenInstalledDevicesSession(
"niScope",
&sessionHandle,
&numberOfDevices);
for (i=0; i < numberOfDevices; i++) {
niModInst_GetInstalledDeviceAttributeViString(
sessionHandle,
i,
NIMODINST_ATTR_DEVICE_NAME,
256,
deviceNameBuffer);
printf("%s\n", deviceNameBuffer);
niModInst_CloseInstalledDevicesSession(sessionHandle);
The device names that you're printing out in this example can be used as the resourceName input to the niScope_init function.
In practice, though, be sure to check the status that is returned from each function. You can get further information about an error using the niModInst_GetExtendedErrorInfo function. All the functions I used above can be found in the niModInst.h file.
Hope that provides some more help.

Similar Messages

  • Where can I find a logic board for iMac G5 17" (EMC No. 1989) Apple Part

    HI  Where can I find a logic board for iMac G5 17" (EMC No. 1989) Apple Part #: 661-3290, 661-3351?

    Thanks--makes life easier!
    I found DV Warehouse has a number of G5 logic boards but none had the exact model number:
    http://www.dvwarehouse.com/iMac-G5-Logic-Board-c-4771.html&pltid=05fedd9f246e2a1 dbc9f35cd6712e781
    They have a toll-free number. You could ask if another board # would be compatible.
    Another option is to contact recylers or schools shucking off older gear. Using the enigma of " A used computer is worth more parted out," you might be able to pick up another G5 cheaper than its LB. Unless the LB had the dreaded "leaky capacitor" failure, most computers don't get discarded for a bad LB.

  • Regarding finding the table name for a field in R12 forms

    Hi all,
    I need to know how to find the table name for a field in R12. I am working on extracting the employee information but i need to know how to get the table names for the fields.
    Thank you,
    raj

    Please see these threads.
    How to find table name in ebs
    How to find table name in ebs
    E-Business tables
    E-Business tables
    Thanks,
    Hussein

  • Find the sequence name for a particular table

    Hi,
    Please give query to find the sequence name for a particular table in oracle.
    Thanks

    I mean getting List of Sequence names defined in DB.
    I got the answers
    select *from user_sequences                                                                                                                                                                                                               

  • Find Transparent table name for correspoding Dictionary Structure SRM 7.0

    Hi,
    I am not able to find Transparent table name for correspoding Dictionary Structure in Webdynpro Component for a field in  SRM 7.0.
    Please let me know.
    Thanks,
    Monica

    Hi Monica
    please tell the transaction name and the name of field seen in webdynpro
    regards
    andrea

  • How to find the group name for a section programatically?

    I have these display formulas that are being repeated in each group footer.  The only thing that changes are the group names.
    How can I find the group name for the current section?
    The bolded(or starred) items are what I'm trying to create a generic function for.
    Ontario
         Bob
                   1000     Sales     Other
                   2000     Random     Billing
                   200     Phone     Billing
         *Total for Bob*      3200
         Sally
                   2000     Sales     Client
                   1000     Random     Billing
                    300     Cell     Billing
         *Total for Sally* 3300
    *Total for Ontario*       6500
    Thanks in advance,
    J

    I'm not sure if the GroupingLevel or GroupNumber fuctions will help.  (There description in the on-line help leaves much to be desired, IMHO...)
    If not, you could try adding formula fields to each level that sets a global variable to tell your other formula fields what level it is on.  If you only have one or two other formulas, and only one or two groups, this really wouldn't be a whole lot easier.  But if you had a lot of groups or a lot of formula fields that you want to make "group independent" it could help.
    So for each footer, create a formula field like (basic syntax):
    WhilePrintingRecords
    global geoupLevel as String
    groupLevel = "Province"
    formula = ""
    (changing the name given to groupLevel for each footer).  Then in your "generic" formula you could put something like:
    WhilePrintingRecords
    global groupLevel as string
    select case groupLevel
      case "Province"
        formula = "Total for " + {Province}
      case "Name"
        formula = "Total for " + {Name}
      else
        Formula = "Totals"
    end select
    HTH,
    Carl

  • Where do I find the Instance Name for EPM Batch Script Utility?

    I am trying to find the Instance Name for the EPM Batch Script Utility. I have done the obvious...looked at the Deploy settings in EPM, but the Instance field is not even listed. I have tried 'Default', 'localhost', 'Planning', 'epmsystem1' and " " (nothing).
    Anyone know where I can look? The script will not deploy without this option (I have tried removing the field altogether). This is the error I am getting:
    2012-12-05 03:02:21,908 INFO Parameters(ApplicationName, InstanceName, ApplicationServer, HubProject, datasourceName, waitForCompletion, deployOption, RefreshOutline, CreateSecurityFilters)
    2012-12-05 03:02:21,909 INFO Values('BKAdFund', 'Default', 'PLANNING_LWA', 'Planning', 'BKAdFund', 'True', 'All','True', 'True');
    2012-12-05 03:02:23,149 ERROR [Line 16] Unable to find the instance with name Default.
    Thanks!

    Hi all,
    I referred Andy's suggestion to set both App Server name and instance name as PLANNING_LWA.
    It worked in Planning 11.1.2.3
    My deploy string set as followed:
    set bpmaserverurl=http://localhost/hyperion-bpma-server;
    set workspaceurl=http://localhost:9000/workspace;
    login;
    Execute Deploy
    Parameters(ApplicationName, InstanceName, ApplicationServer, HubProject, ClearAll, CheckIntegrity, waitforcompletion, purgeTransactions,  deployOption,  datasourceName,CreateOutline,RefreshOutline,CreateSecurityFilters,SharedMembersSecurityFilters,ValidateSecurityFilterLimit,Notes)
    Values ('HRPLN1', 'PLANNING_LWA', 'PLANNING_LWA', 'Planning', 'false', 'false', 'true', 'true', 'AppView','HRPLN_DS','false','true','false','false','false','HRPLN1 redeploy by batch client');
    Thanks Andy!!

  • Pls help me to find the smartform name for RMA REQUEST(RMA)

    Hi Experts,
    Pls Tell me how too find the smartform name for RMA REQUEST(RMA)
    Pls help
    Thanks and regards
    Jaya

    WHat is RMA REQUEST form please ellobrate your query
    the smrat form tcode is SMARTFORMS.....you can try

  • How to find the role name for the trasaction

    Dear Gurus,
    Kindly assist me to find the role name to which a perticular transaction was assigned.
    For example:- I need to find the role name for SU01, SUIM, SE38...etc
    Thanks&Regards,
    Kalyan.

    Hi Kalyan,
                        Use SUIM T-code to analyse User Vs Roles  and Roles Vs T-Codes. Then your problem will be solved.
    Regards,
    Hari.
    PS: Points are welcome.

  • How to find Application short name for an application?

    Hi ,
    How to find Application short name for an application?
    Eg: what query will give me output as PER when I give input as Human Resources?
    Regards,
    Neeraj

    Try the following:
    SQL> select application_id, application_short_name, basepath
    from fnd_application
    order by application_id;

  • What's the query to find all requests' name of all modules EBS R12.1.3??

    What's the query to find all requests' name of all modules EBS R12.1.3??
    Regards:
    Shahzad M. Saleem

    Dear rioman !!!
    Thanks!!
    Regards:
    Shahzad M. Saleem

  • How to get the owner name for the file in ftp using abap ?

    Hi folks ,
    How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
    but doest work out me . Helping in this regard highly appreciated ...
    Thanks and regards,
    Swarupa Vanarchi

    Hi
    dont you  have used the os user while calling the FTP_CONNECT FM?
    Hope you are not talking about the user executing the FTP program.
    Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
    May be i am going too far with if and elses here as your question possesses no  clarity.
    Plz elaborate your requirement  before anybody can help.
    Regards
    sateesh

  • Find the column name for a constraint

    Hi Guru,
    I know the constraint name, now i need the column name and table name for the constraint?
    Thanks

    Query the USER_CONS_COLUMNS  then you will find the column name and table Name
    SQL> Select  *  from  USER_CONS_COLUMNS  where Constraint_Name='<Your_constraint_Name>';

  • Find the table name for Delivery quantity in production order

    Hi,
    Pls can you tell me what is table name for delivered quantity field in General tab for that production order number.
    With Regards,
    P.Arunkumar.

    Hi
    You can find it GR qty via following 2 Tables.
    Table AFPO Order item
    Field WEMNG - Gr Qty
              Or
    Table AUFM
    Field SHKZG (Debit Credit Indicator ) Select Debit Indicator - S
    Field KZBEW Movement type ind.- Selct F Goods movement for production order.
    Regards,
    Dhaval

  • How to find the program name for LSMW

    hi experts,
                  i have created a LSMW for uploading data in HR.i hope there will be a ABAP progarm automatically generated from it .where i can find the program name .
    i have succesfully completed all the 14 stepas and data is uploading comfortably .
    thanx in adavance

    hi,
    just do liek this to know abt the program name,
    select system at the menu in your lsmw,
    select status ,
    in popup u'll get the proram name and all other related details.
    reward points if useful,
    regards,
    seshu.

Maybe you are looking for

  • My imessages app on the macbook air is not working

    I have the Macbook Air and the Ipad. I received the Ipad first, therefore have a apple account and everything set up including the imessage app on ipad. However when i got the Macbook Air and used the same email i did for the ipad, it sync and could

  • Oracle BI Groups, Roles and permission through external Table

    Hi, We are using SSo integration with Oracle BI 10g. We need to fetch the roles , permission and groups through an external table to our Oracle BI Dashboard. Please let me know if this is possible. Thanks, Aditya Arya

  • Import R/3 SO10 Standard Text to BW Documents

    Hi Please let me know 1. How can Import the Standard Text (SO10) from R/3 to BW Documents? 2. Is there any Function Module to extract the text? Please let me know since it has become priortized task. Thanks!! ~ Vaishnav

  • Exception handling for any item

    Hi, In my page, i have 2 fields FieldA and FieldB and both are LOV's. I have written a logic to intimate the user with a message if they try to select the values in FieldB without selecting values in fieldA. But is it possible to highlight fieldA so

  • Sql+command in java

    how may i give the sql command "@c:\\emp.txt" in java? how can i then print the result on a jframe? thanks, danny