NI DAQmxBase OpenSUSE Dynmaic Load of libnidaqmxbase.so not Working Correctly

I am trying to use NI DAQmxBase 14.0 on OpenSUSE 13.1 via a C++ class that dynamically loads the shared library (libnidaqmxbase.so) at runtime and maps the various calls that I need including CreateAIVoltageChannel, The reason for doing this is that sometime the code will run on a machine with the drivers and libraries installed and sometimes not.
When I test this with a machine that has the drivers installed but no NI card in I get random results depending on how the program is linked.The program is a simple console app that calls getDevSerialNum on device names.
If the program is linked with the shared library (using -lnidaqmxbase) then the program runs successfully. If the program is linked without the shared library (no other code changes) the program runs but does not correctly return the device serial call (it should return an error but does not).
My assumption is that there is some special initialisation code that should be called to correctly initialise the library. Any ideas?
 

SimonSparkes wrote:
I am trying to use NI DAQmxBase 14.0 on OpenSUSE 13.1 via a C++ class that dynamically loads the shared library (libnidaqmxbase.so) at runtime and maps the various calls that I need including CreateAIVoltageChannel, The reason for doing this is that sometime the code will run on a machine with the drivers and libraries installed and sometimes not.
When I test this with a machine that has the drivers installed but no NI card in I get random results depending on how the program is linked. The program is a simple console app that calls getDevSerialNum on device names.
If the program is linked with the shared library (using -lnidaqmxbase) then the program runs successfully. If the program is linked without the shared library (no other code changes) the program runs but does not correctly return the device serial call (it should return an error but does not).
My assumption is that there is some special initialisation code that should be called to correctly initialise the library. Any ideas?
Hi Simon,
This is a known bug in the LabVIEW 2012 Run-Time Engine, upon which the DAQmx Base 14.0 C API is built.
If you add LD_DEBUG=all to your environment before running your executable, you'll see why. In short, the LabVIEW Run-Time Engine's shared objects don't fully advertise all of their dependencies, which causes ld to fail finding all of the symbols.
The workaround is to create an intermediate wrapper library that uses -lnidaqmsbase when built and only using dlopen to load it on systems that have the driver installed.
My team has been working on a fix with LabVIEW, and if you're interested in joining the DAQmx Base 2015 Beta Program, please send me a direct message with your email address.

Similar Messages

  • RV042 Load Balancing not working correctly?

    We have an RV042 on firmware version 1.3.13.02 and 2 ISPs:
    WAN1 = Telepacific T1
    1.5Mbps down and 1.5Mbps up
    WAN2 = AT&T U-Verse
    12Mbps down and 5Mbps up
    I have it set to Load Balance, Primary WAN = WAN2
    Network Service Detection enabled, only pinging the Remote Host of 4.2.2.2 and set to Generate Log
    Bandwidth is set to:
    WAN1 = 1000Kbps upstream & downstream
    WAN2 = 5040Kbps upstream & 12000Kbps downstream
    It seems to pick WAN1 a lot of the time.  Do I have something setup wrong?

    Ok, so what do you recommend? To setup binding for ports important to direct over say… WAN1 (my fast access) shall I also keep the bandwidth management set up as is, example:
    For me it’s confusing because this config appears to be clear to me that has to control traffic the way I want .
    Thanks for your response.
    H Aragon
    De: jasbryan
    Enviado el: lunes, 20 de febrero de 2012 03:18 p.m.
    Para: HECTOR MANUEL ARAGON
    Asunto: - Re: RV042 Load Balancing not working correctly?
    Home
    Re: RV042 Load Balancing not working correctly?
    created by jasbryan in Small Business Routers - View the full discussion

  • Why is my symbol loaded dynamically from library not working?

    Hope someone could help,
    The code in "Example1" work fine if the video symbol is located on the stage. But what I'm trying to do is load the video symbol from the library dynamically and that doesn't work as illustrated in "Example2".
    My question is why does Example1 work and Example2 not work?
    Example1:
    var youtube = $("<iframe/>");
    sym.$("video").append(youtube);
    youtube.attr('type', 'text/html');
    youtube.attr('width', '560');
    youtube.attr('height', '315');
    youtube.attr('src', 'https://www.youtube.com/embed/A3PDXmYoF5U');
    youtube.attr('frameborder','0');
    youtube.attr('allowfullscreen', '0');
    Example2:
    sym.myVideo;
    sym.myVideo = sym.createChildSymbol("video", "Stage");
    var youtube = $("<iframe/>");
    sym.$("myVideo").append(youtube);
    youtube.attr('type', 'text/html');
    youtube.attr('width', '560');
    youtube.attr('height', '315');
    youtube.attr('src', 'https://www.youtube.com/embed/A3PDXmYoF5U');
    youtube.attr('frameborder','0');
    youtube.attr('allowfullscreen', '0');
    Thanks in advanced,
    -Angel

    Have you tried a reset:
    Hold the Sleep and Home button down for about 10 second until you see the Apple logo.

  • Load Balancer URL is not working properly

    Hi
    I have an issue when I am trying to use my load balancer URI for my web services.
    I am trying to open the webservice URI in the browser which is on the following location
    https://soa.xyz.com/soa-infra/services/default/Order!1.0*soa_c37f07ab-e0f5-4267-bc9c-5dde677efe9f/order_client_ep?WSDL
    when I open it I notice that the abstract wsdl tag has http connection and not https. And also it shows my node1 uri instead of load balancer uri.
    <abstractWSDL>http://node1.xyz.com:8001/soa-infra/services/default/Order!1.0/Order.wsdl</abstractWSDL>
    When I try importing this WSLD onto jDev I get the following error
    Exception:
    WSDLException: faultCode=PARSE_ERROR: Failed to read wsdl file at <load-balancer wsdl uri>
    caused by: javax.net.ssl.SSLHandshakeException :
    javax.net.ssl.SSLHandshakeException : sun.security.validator.ValidatorException: No trust certificate found.
    - This is a two node cluster with a loadbalancer
    -- On both nodes, http, WebLogic and SOA installed
    -- WL Admin server was setup on node1
    -- On loadbalancer a self signed SSL certificate was installed and this cerificate was imported on both nodes.
    -- All services are up
    Can anyone tell me if I have missed something during configuration or something else? Any help would be appreciated.
    Thanks.

    Hi,
    Enable the SSL debug to see what's happening... Have a look at this...
    https://blogs.oracle.com/WebLogicServer/entry/ssl_troubleshooting_and_debugg
    Cheers,
    Vlad

  • Images are not loading or flash player not working EXCEPT in private browsing mode

    I recently used Auslogics Boost Speed to clear out my cache, defrag and optimize my computer. When I went to start my browser, none of my images from my regularly visited sites were loading. Nor were any of the sites that had Flash? I tried several sites to see if it was isolated but to no avail. It happens whenever I go to ANY of my sites. BUT...here's the weird thing...if I switch to "private browsing" THEN all the images load and my flash websites load and work? What happened? I must have changed something during the optimization that is no longer allowing me to load images or use Flash whenever I am in regular browsing mode. Can you help? @_@

    Your Web server is running on an operating system that is case-sensitive. You appear to have uploaded an Images folder, but not an images folder.
    You do not have a file here:
    images/squeeze-video_425x344_r9_c6.jpg
    But you do have a file here:
    Images/squeeze-video_425x344_r9_c6.jpg
    So you'll need to either change all your image/<whatever> links to point to Images/<whatever>, or upload another folder named images.
    Or, if you want to use a single folder, and if your local file system is not case-sensitive, you might be able to do it in DW's file panel. Here is a method that you might use to have all of them in a folder named images.
    BACK UP YOUR SITE FILES
    Rename Images to Foo (allow DW to update links)
    Rename Foo to images (allow DW to update links)
    Upload the images folder and any/all files that DW changed
    Delete the online Images folder
    HTH
    Mark A. Boyd
    Keep-On-Learnin' :-)

  • Satellite L300 - after Win8 load DVD drive is not working

    I have just loaded Windows 8 on my Satellite L300. The DVD no longer works with an error message 39 it says the driver is corrupt. Also external attached DVD's are not recognised. I cannot find a driver to reload.
    Any suggestions.
    Regards

    Check this article:
    http://www.csd.toshiba.com/cgi-bin/tais/support/jsp/bulletinDetail.jsp?pf=true&soid=3516888
    If the TOSHIBA Recovery Media Creator or TOSHIBA Disc Creator are installed on the HDD, there might be a issue between Win 8 and mentioned software
    So uninstall these tools, then restart your PC using the Power-->Restart option in Windows 8. Your CD/DVD should be accessible now.

  • I load the Retina Macbook and the trackpad not working correctly

    When I put the Macbook Retina to load the trackpad starts to fail, generate actions that we did not perform. I noticed that the MegaSafe charger is heating up too much during charging. When I remove the charger from the Macbook trackpad back to work properly.

    The charger has to be replaced.

  • Need Help! Wierd loading percentage issue does not work in IE  but in other browsers it is ok, why?

    Hi!
    I have created a little test swf for my client and I have
    encountered a wierd problem because the loading percentage text
    field does not seem to function in IE 6 but the same file works
    fine when viewed in Firefox and Netscape. When I test the movie
    using simulate download in Flash it works well too. Is this a bug
    and how can be fixed?
    Please take a look online:
    http://www.attila.reinhardt.com/clients/accentcom/clientprofiles_cheyney.html
    I have also posted the related actionscript code below.
    Thank you for any help in advance,
    Attila

    << I Tried to post it through this link -
    http://input.mozilla.com/en-US/feedback#sad
    There was no visual clue that it took the feedback - just sat on the screen with my information in the text box. >>
    The same thing happens with me.

  • Load panel tui file not working on CVI2012 for Linux

    We are having problems with panels that look fine on Windows being difficult to read on Linux, presumably because most control and text fonts are VAL_DIALOG_META_FONT on Windows but the CVI for Linux run-time only has NISYSTEM.
    As a quick way to test different fonts on Linux I created a tui file from the uir file and then used global search and replace to change VAL_DIALOG_META_FONT to something that would hopefully look decent on Linux.
    Problem is that LoadPanel(0,"filename.tui",1) works on WIndows but throws error -46 on Linux.
    Whereas LoadPanel,0,"filename.uir,PANEL) works fine on Linux & Windows but the fonts are very hard to read on Linux.
    Is there a table somewhere mapping the VAL_FONT attribute magic numbers to corresponding fonts on Windows and Linux?
    It'd be nice to have some guidance on the default font mappings. But at the end of the day, I don't really care much about fonts unless the defaults are hard to read.
    I guess one other potential complication is the UIR file originally came from CVI 8.5, but CVI 2010 for Windows didn't say anything about needing to "convert" it.  Perhaps one of the attributes in the tui file is not valid on Linux, but is on Windows?
    Solved!
    Go to Solution.

    Loading TUI files in Linux it's an issue that we have recently discovered and it did not made it yet to the known issue list. I'm not 100% sure but I believe a workaround to that problem would be to go and manually edit that tui file and remove those attributes that generates errors. You can begin with  ATTR_TITLEBAR_STYLE and then look if one of the following are in the tui file: ATTR_DS_BIND_PLOT_STYLE, ATTR_DS_BIND_POINT_STYLE, ATTR_DS_BIND_LINE_STYLE, ATTR_DS_BIND_PLOT_COLOR and delete them. Then try to load the tui file again.
    On the other hand I think there is a workaround for your original problem: the predefined fonts (VAL_DIALOG_METAFONT) looks bad on Linux. I believe there is a way a user can change the underlying font and the size of a predefined font. In windows you can change it in the registry but in Linux you can define an environment variable: XAPPLRESDIR that points to a directory that should contain a file named cvi, a file where you can write font settings. Each line has to be of the following format: <appName>.<key>:<value>. If you want the settings you're writing to be persistent for all applications the put a "*"instead of the application name. 
    The list of possible key is: appFont (NIAppMetaFont), menuFont (NIMenuMetaFont), dialogFont (NIDialogMetaFont), e​ditorFont (NIEditorMetaFont), messageBoxFont (NIMe​ssageBoxMetaFont).
    The value have to be of the following form: <font family>-<font name>-<font size>
    Here is the only line I have in the cvi file: *.dialogFont : adobe-helvetica-19

  • INSERT Loading Type not working correctly?

    Hi,
    I'm using ver. 9.2.0.2.8 for the owb client, and ver. 9.2.0.2 for the repository. I'm currently encountering this problem when using the INSERT loading type for loading data into one of my staging tables. It's a simple simple mapping really:
    I have a source table (A) that maps to a filter operator, which is then mapped to a staging table(B).
    The problem is, when I run the mapping to INSERT data from A into an already populated B, not all the desired records are inserted. Weird thing is, when I run the code from generating the intermediate result in TOAD or whatever, I get the desired results. So that kinda rules out any doubts on the select statement generated by OWB.
    Out of 23 records I get like 6.. just 6 of the 23 records I was hoping to be inserted into B.
    And yes, none of the remaining 17 records are present in A, so INSERT should (ideally) work fine and carry out inserting all the 23 records.
    Any ideas? ..

    Hi JP,
    Thank you very much for helpin out, I tried what you told me and here's what I got:
    Starting Execution STG_MAP_FILTER_DCS_IRREG
    Starting Task STG_MAP_FILTER_DCS_IRREG
    ORA-12801: error signaled in parallel query server P012
    ORA-02291: integrity constraint (RTOWNER.FK_RTER_RTA) violated - parent key not found
    ORA-06512: at "RTOWNER.WB_RT_MAPAUDIT", line 338
    ORA-01403: no data found
    ORA-06512: at "RTOWNER.WB_RT_MAPAUDIT", line 1736
    ORA-06512: at "RTOWNER.WB_RT_MAPAUDIT", line 2625
    ORA-06512: at "TOPSSTAGE.STG_MAP_FIL_R_TGT0_719337", line 1443
    ORA-06512: at "TOPSSTAGE.STG_MAP_FIL_R_TGT0_719337", line 2076
    ORA-06512: at "TOPSSTAGE.STG_MAP_FILTER_DCS_IRREG", line 482
    ORA-06512: at "TOPSSTAGE.STG_MAP_FILTER_DCS_IRREG", line 813
    ORA-06512: at line 1
    Completing Task STG_MAP_FILTER_DCS_IRREG
    Completing Execution STG_MAP_FILTER_DCS_IRREG
    ..I wonder what it means, hehe.

  • load-on-startup is not working !!

    Hello all ... I have a servlet....CSVReaderServlet.java
    and following code in web.xml
    <web-app>
    <servlet>
    <servlet-name>
    CSVReader
    </servlet-name>
    <servlet-class>
    com.xpedion.CSVReaderServlet
    </servlet-class>
    <init-param>
    <param-name>root</param-name>
    <param-value>/app/agents</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    </web-app>
    having this all i expect when i start my weblogic ... servlet should run on start up, but it does not. If i make a call from browser then it runs perfect.
    Any clue.... ??
    Thanks
    Ajay

    Is there a particular reason you feel it necessary to post this over and over again?
    http://forum.java.sun.com/thread.jsp?forum=31&thread=428054

  • VPN load balancing not working correctly

    I have two vpn3030s configured for load balancing. They appear to recognize one another as the correct vpn(priority 10) appears to be the master. The slave however keeps getting an error message i the log "LBSSF master peer[205.172.49.252] is not answering HELLO".
    He appears to timeout the master and switch himself to master where he immediately sees the master and goes back to slave. I am not sure the address above is correct for the error message, 205.172.49.252 is the virtual IP shared by both concentrators. I would expect to see hellos sent and received between the two physical interfaces. Any ideas? I am getting a buffer error on the master as well so all this may be memory related. Not sure at this point.
    Johnny

    it may be due to IP conflict.
    also check this bug-id:CSCds70213.
    Try these links for more info:
    http://www.cisco.com/warp/public/471/vpn3k-conn.html
    http://www.cisco.com/warp/public/471/ld_bl_vpn3000_7602.html

  • Load balancing is not working correctly during server fail-over

    Hi,
              We have 4 weblogic instances in a cluster with proxy-plugin load balancing the requests. When instance 1 is shutdown, all the subsequent requests from users whose sessions were at instance1 are sent over to instance2 only. They are not divided between instance2, instance3 and instance4.
              Can somebody, please, tell if there is any solution to this so that sessions for users who were being redirected to instance1 will be divided between instances 2,3 and 4.
              Thanks,
              Prasad

    It is not possible because in a cluster server1 always chooses the same secondary server (with some algorithm)
              So all sessions with primaries on server1 will have secondaries on same secondary server.
              So if primary is down, all the requests(that has primaries on server1) will be routed to the same secondary server.
              -Vijay

  • Load Balancing per packet not working properly

    Hi,
    I am attaching you the configs of issue. There are two links E1 links from
    Karac-1(Serial0/0/0:0 & 0:1) and Karac-2 with (Tunnel10) which were connected with Khask-1w
    Now the issue is that Load balancing per packet were not done sucessfully the NMS snap shot is already attached.
    Load balancin g only configured in KarAC-1 & 2
    What is the resolution of this problem traffic only use on two links but third links were not utilize.
    Kind regards,Salman Ahmed

    Hi Paolo!
    I have one doubt pertaining to per-packet load-sharing. In order to connect my two data-centres- A & B, Site A is having two WAN links and Site B is having two WAN links - one from ISP1 (30Mbps link) and the other from ISP2 (50Mbps link). I am doing static route load balancing using same AD values for both the ISPs. I have configured "ip load-sharing per-packet" on both the outgoing interfaces.
    The load is getting distributed equally across both the links but total bandwidth utilization across both the links is not going beyond 30Mbps. The combined bandwidth of both links is 80Mbps (50+30). However links are not getting fully utilized even though heavy load is there on the links. Can you please tell me how to make full use of both the wan links at both the ends? OR Can you tell me how I can distribute the traffic across both the links with full utilization without using per-packet load sharing. Moreover, my links can be configured statically only at both the ends.

  • Loaded 7.3-does not work-restored system-does not work-missing files?

    I downloaded 7.3 and got a message that it could not upgrade the version of IPOD software found on cpu. Please uninstall and try again. Did that. Also removed all Itunes and Ipod software versions. Still got message. Decided to restore computer to before the 7.3 download. Now get error message that ITunes cannot run because files are missing. Doesn't say which ones. Any idea on how to restore old version?

    My workflow is to basically backup my negative collection by scanning at the highest resolution possible and save them at full bit depth as Tiffs on offline storage. I then duplicate all the files as large JPGs and store them on my local machine. These are then all duplicated again and down sampled to 1024*768 to be synced with the iPad. After 2 1/2 years and a 16 page file documenting all the bugs, I finally got the small files to sync with an iPad 4. After all is said and done, it only took about 7GB to sync 50K Jpgs but did end up with a 20GB "Other" file that no one from Apple can explain. I have been seeing these "Other" files for a while and think they are some sort of memory corruption and the only way to get rid of it is to restore the ipad.
    Bottom line, iTunes for Windows is terrible, very buggy, and unsupported by Apple. They can only help you trouble shoot restarting problems but there is no escalalation path for things that don't work. iTunes basically has a lot of trouble with samll number of large files and even a large number of small files.
    I have been using Lighroom to convert the Tiffs to JPGs but ran into a problem that Adobe engineers didn't know about. Lightroom will only support a maximum of 512 mega pixels and won't load any files over this size. It appears it may load them as PSDs but not as Tiffs. Problem is Lightroom won't give any error message for files it won't load so there is no way to trouble shoot it.
    What does work flawlessly is using Photoshop/Scripts/Image Processor.
    In protest of Apples apathy I took every IOS device I ever purchased back to the Apple store and challenged them to either make them work or refund them. They gave a full refund for every device I erver purchased including $299 for the original touch which came out to about $3500. I even sent a letter to Tim Cook ([email protected]) but he didn't care either.

Maybe you are looking for

  • Build error importing MyFaces 1.0.7

    Hi, I'm trying to use the MyFaces components in SJSC, but when I import myfaces-components.jar into JSCS I get the following build-error: compile-beaninfo: Compiling 35 source files to C:\Documents and Settings\Iwan\.Creator\1_0\components\jars\beani

  • Songs skip every 5 seconds...

    Hello. I have a problem with my iPod mini. Two nights ago I went to play one of my playlists as usual. It has been working fine for a few months now (after I got the old generation replaced when the battery died). All of the sudden, I press play and

  • Can't print in color using an HP C4680 on maverick 10.9

    My HP C4680 won't print in color since upgrading to Maverick 10.9.3. Additionally, when I open the printer utility, the all settings button is grayed out. Don't know if that's the issue or not. I have downloaded the latest software for this printer. 

  • Airport Express - Noise when USB is plugged

    Hi I just bought a laserjet printer and after I plugged the USB cable into the Airport Express, I hear some noise on the speakers of my stereo which is connected to my AEX. When I remove the USB cable everything is ok but with the USB cable plugged..

  • Sound from front right speaker not working, playing out of le

    I have a Soundblaster X-Fi Fatalty and it'ss a little under year old with all current drivers. The front right speaker plays no sound but the front left speaker plays what is supposed to come out of the front right. I have it set on the 5. surround s