ODE Solver providing result in MATLAB but not in LabVIEW

Hello everyone,
I'm trying to simulate a system of non-linear ODEs in LabVIEW. I have tested the code in MATLAB and got a very fast result (within seconds), and I am trying to simulate the same thing in LabVIEW but having some major issues. Certain things I noticed right away is that when the time step goes below 1 E -9, the variable step size solvers never converge (ie never stops executing). If I bring it down, then I get error 2324.
I'm pretty confident that the code in MATLAB and the code in LabVIEW are identical with regards to the state equations. Does anyone have any idea or faced this before? In MATLAB I am using the following command:
options=odeset('RelTol',1e-6,'Stats','on');
[Tt,y] = ode15s(@Diff_Eq5_core,[0 5],zeros(1,16),options);
It also works with the solver ODE23, which is what I tried to use with LabVIEW. I am attaching my LabVIEW code (very sorry for the messy wiring, I usually write code better then this but I was in a major hurry).
Attachments:
Farag 2 Bus - LabVIEW.zip ‏56 KB

Hey guys,
So I redid the entire thing with the suggestions above - cleaning up and enforcing data flow, rechecking the equations, and I'm still not able to get ODE solvers to converge or give the proper result. I tried to implement a much simpler system of ODE (an example off the MathWorks website) and I was able to get identical results from MATLAB and LabVIEW for that attempt...so something tells me either the implementation of this system in LabVIEW for some of the equations is incorrect, OR the solvers/solver parameters are different from MATLAB and LabVIEW when it comes to stiff ODEs.
I'm able to solve this ODE system in MATLAB using ode15s (which uses BDF) and ode23s (which uses Rosenbrock). I'm using absolute and relative tolerances of 0.01 in MATLAB, (even somtimes up to 1e-6).
I'm attaching both versions of code (MATLAB and LabVIEW) for comparison. Also for in each case for the Differential Equation case structure I have put the equation that is supposed to be use to make it easier for double checking. If anyone could please take a look that would be great.
My next plan of action is to use the MathScriptRT Nodes to see if I can get it going with those.
Attachments:
ODE.zip ‏76 KB

Similar Messages

  • [svn] 1364: MessageBroker provided access to Log but not to what managed Log: LogManager.

    Revision: 1364
    Author: [email protected]
    Date: 2008-04-23 14:30:57 -0700 (Wed, 23 Apr 2008)
    Log Message:
    MessageBroker provided access to Log but not to what managed Log: LogManager. Added MessageBroker.getLogManager method but marked it with @exclude as it's probably only useful for testing purposes.
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/MessageBroker.java

    Security Questions
    http://support.apple.com/kb/HT5312
    Apple ID Contact
    http://www.apple.com/support/appleid/contact/

  • Serial communicat​ion works in hypertermi​nal but not in LabView

    Hello,
    I am trying to control an APP Automated Pressure Controller using LabView 6.1 via a serial connection.  I am able to control the system with Hyperterminal but not with LabView.  I set used the same setup (9600 baud, 1 stop bit, no parity, no flow control, etc) in LabView that worked in hyperterminal.
    According the the documentation from the Pressure Controller: "Every character that is sent to the controller is echoed back to your computer so you can check to see everything is working.  When a valid command is given, the controller will also send a carriage return (acsii 13) followed by a line feed (ascii 10) to signify the command was executed.  Before sending any commands, the program should clear any characters in the input buffer that may be there from previous responses."
    In hyperterminal, when I type in a command such as "OA", the Pressure Controller responds (without pressing enter or any other keys) and I can see the "OA" on the screen.  As soon as the Controller is done responding, the cursor moves down to the next line (which I assume is caused by the carriage return and line feed) and waits for the next command.
    I have tried to use the Serial Communication.vi with no success.  Does Hyperterminal add (or Labview omit) a special character or command that I am missing?  Do I need to do something special to clear the input buffer in LabView?
    Thanks for any help.
    Alex

    Hello,
    Try to run your application in other system (computer),
    frequently some PCs configurations are not recognized by LabVIEW serial
    routines. I do not know exactly the problem but is not the first time I know
    that kind of problem.
    Sometimes the problem comes from the serial property called
    Termination Character that enables receive buffered data once you have a
    Carrier Return or a Line Feed symbol (Hex 0D/0A) character into the buffer. Try
    to set it true and assign a 0A Hex Value.
    For sending information you need to finish all command
    message with an enter symbol concatenating both (Message + Hex 0D0A) using the
    special character in the string palette library. This action permits system to
    put out buffered data. 
    Good Look

  • [Solved] tun module was loaded but not in lsmod?

    Hi Everybody,
    I loaded the tun module with "sudo modprobe tun" without any error message but didn't see it anywhere in "sudo lsmod". What might be the problems? I'm using linux-ck and wondering if linux-ck does anything here.
    The reason I want to load the tun module is that I saw this error:
    [root@ArchCustom openvpn]# openvpn --config ibVPN-LU-Luxembourg-\(P2P\).ovpn
    Thu Jan 17 08:03:20 2013 OpenVPN 2.2.2 x86_64-unknown-linux-gnu [SSL] [LZO2] [EPOLL] [eurephia] built on Aug 18 2012
    Enter Auth Username:[email protected]
    Enter Auth Password:
    Thu Jan 17 08:03:30 2013 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
    Thu Jan 17 08:03:30 2013 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
    Thu Jan 17 08:03:30 2013 NOTE: --script-security method='system' is deprecated due to the fact that passed parameters will be subject to shell expansion
    Thu Jan 17 08:03:30 2013 LZO compression initialized
    Thu Jan 17 08:03:30 2013 Control Channel MTU parms [ L:1578 D:138 EF:38 EB:0 ET:0 EL:0 ]
    Thu Jan 17 08:03:30 2013 Socket Buffers: R=[212992->131072] S=[212992->131072]
    Thu Jan 17 08:03:30 2013 Data Channel MTU parms [ L:1578 D:1450 EF:46 EB:135 ET:32 EL:0 AF:3/1 ]
    Thu Jan 17 08:03:30 2013 Fragmentation MTU parms [ L:1578 D:1300 EF:45 EB:135 ET:33 EL:0 AF:3/1 ]
    Thu Jan 17 08:03:30 2013 Local Options hash (VER=V4): '9a22532e'
    Thu Jan 17 08:03:30 2013 Expected Remote Options hash (VER=V4): 'e2a912d8'
    Thu Jan 17 08:03:30 2013 UDPv4 link local (bound): [undef]:1194
    Thu Jan 17 08:03:30 2013 UDPv4 link remote: 212.117.165.18:1194
    Thu Jan 17 08:03:30 2013 TLS: Initial packet from 212.117.165.18:1194, sid=bfe5f406 752fd5e9
    Thu Jan 17 08:03:31 2013 VERIFY OK: depth=1, /C=US/ST=CA/L=SanFrancisco/O=Fort-Funston/CN=Fort-Funston_CA/[email protected]
    Thu Jan 17 08:03:31 2013 VERIFY OK: nsCertType=SERVER
    Thu Jan 17 08:03:31 2013 VERIFY OK: depth=0, /C=US/ST=CA/L=SanFrancisco/O=Fort-Funston/CN=server/[email protected]
    Thu Jan 17 08:03:31 2013 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
    Thu Jan 17 08:03:31 2013 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
    Thu Jan 17 08:03:31 2013 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
    Thu Jan 17 08:03:31 2013 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
    Thu Jan 17 08:03:31 2013 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
    Thu Jan 17 08:03:31 2013 [server] Peer Connection Initiated with 212.117.165.18:1194
    Thu Jan 17 08:03:33 2013 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
    Thu Jan 17 08:03:33 2013 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route 10.10.10.0 255.255.255.0 vpn_gateway,show-net-up,route-gateway 10.10.10.1,ping 2,ping-restart 120,ifconfig 10.10.10.18 255.255.255.0'
    Thu Jan 17 08:03:33 2013 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:5: show-net-up (2.2.2)
    Thu Jan 17 08:03:33 2013 OPTIONS IMPORT: timers and/or timeouts modified
    Thu Jan 17 08:03:33 2013 OPTIONS IMPORT: --ifconfig/up options modified
    Thu Jan 17 08:03:33 2013 OPTIONS IMPORT: route options modified
    Thu Jan 17 08:03:33 2013 OPTIONS IMPORT: route-related options modified
    Thu Jan 17 08:03:33 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
    Thu Jan 17 08:03:33 2013 ROUTE default_gateway=192.168.4.1
    Thu Jan 17 08:03:33 2013 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
    Thu Jan 17 08:03:33 2013 /usr/sbin/ip link set dev up mtu 1500
    Usage: ip link add [link DEV] [ name ] NAME
    [ txqueuelen PACKETS ]
    [ address LLADDR ]
    [ broadcast LLADDR ]
    [ mtu MTU ]
    [ numtxqueues QUEUE_COUNT ]
    [ numrxqueues QUEUE_COUNT ]
    type TYPE [ ARGS ]
    ip link delete DEV type TYPE [ ARGS ]
    ip link set { dev DEVICE | group DEVGROUP } [ { up | down } ]
    [ arp { on | off } ]
    [ dynamic { on | off } ]
    [ multicast { on | off } ]
    [ allmulticast { on | off } ]
    [ promisc { on | off } ]
    [ trailers { on | off } ]
    [ txqueuelen PACKETS ]
    [ name NEWNAME ]
    [ address LLADDR ]
    [ broadcast LLADDR ]
    [ mtu MTU ]
    [ netns PID ]
    [ netns NAME ]
    [ alias NAME ]
    [ vf NUM [ mac LLADDR ]
    [ vlan VLANID [ qos VLAN-QOS ] ]
    [ rate TXRATE ] ]
    [ spoofchk { on | off} ] ]
    [ master DEVICE ]
    [ nomaster ]
    ip link show [ DEVICE | group GROUP ]
    TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | can | bridge }
    Thu Jan 17 08:03:33 2013 Linux ip link set failed: external program exited with error status: 255
    Thu Jan 17 08:03:33 2013 Exiting
    And this is the content of ibVPN-LU-Luxembourg-\(P2P\).ovpn:
    [root@ArchCustom openvpn]# cat ibVPN-LU-Luxembourg-\(P2P\).ovpn
    remote lu1.ibvpn.com 1194 udp
    remote 212.117.165.18 1194 udp
    client
    dev tap
    resolv-retry infinite
    script-security 3 system
    explicit-exit-notify 3
    persist-key
    persist-tun
    mute-replay-warnings
    ca ibvpn.com.crt
    comp-lzo
    verb 3
    mute 20
    ns-cert-type server
    fragment 1300
    route-delay 2
    auth-user-pass
    auth-nocache
    reneg-sec 0
    up "/etc/openvpn/change_resolv_conf.sh up"
    down "/etc/openvpn/change_resolv_conf.sh down"
    Regards.
    Solved: didn't know what happened, installed linux-ck 3.7.3-1-ck, rebooted and everything was fine.
    Last edited by dxxvi (2013-01-20 06:10:47)

    Trilby wrote:
    Isn't this the same issue:
    https://bbs.archlinux.org/viewtopic.php … 1#p1217611
    If so, please search the forums before creating new threads of duplicate issues.
    It looks like the same issue. Actually, I did a search for "tun" in the Networking forum (but not the newbie forum) and still couldn't find an answer.
    My /usr/src/linux-3.7.2-2-ck/.config has CONFIG_TUN=m. Then is there any other reason I cannot load the tun module?
    Thanks.

  • [SOLVED] Epson flatbed scanner detected but not working

    I have an Epson V330 scanner which used to work with iscan and iscan-data from AUR. Now the scanner is detected correctly by lsusb, sane-find-scanner, and scanimage -L, but if I run
         scanimage > image/pnm
    I get
         sane_start: Invalid argument
    xsane brings up the scanner but it gives the same error.
    I think the problem may be related to the fact that there is no /dev/scanner0 or anything similar, which I think there should be. I've tried rebooting with the scanner switched on but no result.
    Last edited by acampbell (2014-07-05 15:34:17)

    Thanks so much - yes, that was it!   I had to reinstall my system last month and I forgot that I'd been caught out by that one previously. Now working.

  • {SOLVED} Wicd works in KDE but not in Enlightenment

    Greetings all,
    I searched the Wiki as well as Google for this issue and though I have found a few random forum questions pop up, none of them reflected the issue that I am having.
    I have both KDE and Enlightenment installed.  Easy to switch between the two of them but I like Enlightenment more and want to use it.  Problem I have is, when I first ran Enlightenment, it prompts you with a selection of various programs to install.  Amongst others, I chose Wicd because that is what I having up and running great in my KDE desktop.
    When I click on Wicd in Enlightenment, I automatically get an error stating that Wicd error cannot connect to dbus.  When I run ifconfig wlan0 up, my wireless light came on and I know that it is working but I still get the same error.  It also states that no error was put in the log so there is nothing for me to look at and investigate.  When I go back in and log in with KDE, Wicd comes up, asks me for my password and alas I have a good connection to my router.
    Any and all suggestions will be most appreciated.
    All the best,
    Ian
    Last edited by ichase (2011-02-17 12:56:23)

    Greetings FarmerF,
    I start by selecting wicd in my "internet" list of programs.  In other words, I select the icon.  In KDE wicd automatically comes up and prompts me for my password.  Would like to get that happening in E17 as well
    I don't have wicd in my DAEMONS list in my /etc/rc.conf file because it autostarts in KDE.  But it might be a good idea to add it. 
    I have "exec ck-launch-session start_enlightenment" in my .xinitrc file.  I just uncomment it and comment my KDE then in my DAEMONS of my rc.conf I blacklist KDE so it does not attempt to start.
    I have both dbus and hal installed and both are listed in my DAEMONS
    It only occurs once I manually start wicd.  As previously mentioned, when I type ifconfig wlan0 up the wifi light comes on.  Strange. 
    Ian

  • [SOLVED]Systemd: noftify-send running but not displaying

    Hello,
    I'm trying to get systemd to run a command that pops a notification on screen for me to get up and move around a bit (for my health). The script works if called in the command line and seems to be running fine in systemd. No notification is being displayed, however:
    script:
    #!/bin/bash
    notify-send "Get up and move around!" "You've been sitting in one place for too long." --icon=dialog-information
    Service is called move.service. Here is output of systemctl status move.service.
    ● move.service - Reminds you to move.
    Loaded: loaded (/etc/systemd/system/move.service; enabled)
    Active: inactive (dead) since Sat 2014-11-29 09:39:07 EST; 21s ago
    Process: 3797 ExecStart=/bin/bash /mnt/storage/kale/.Resources/scripts/move-around.sh (code=exited, status=0/SUCCESS)
    Main PID: 3797 (code=exited, status=0/SUCCESS)
    If I read this correctly, it executed as PID 3797 and finished 21 seconds ago (hence the dead state in active).
    Here it is while running
    ● move.service - Reminds you to move.
    Loaded: loaded (/etc/systemd/system/move.service; enabled)
    Active: active (running) since Sat 2014-11-29 09:49:11 EST; 11ms ago
    Main PID: 4062 (bash)
    CGroup: /system.slice/move.service
    ├─4062 /bin/bash /mnt/storage/kale/.Resources/scripts/move-around....
    └─4063 notify-send Get up and move around! You've been sitting in ...
    Nov 29 09:49:11 Uberziet systemd[1]: Starting Reminds you to move....
    Nov 29 09:49:11 Uberziet systemd[1]: Started Reminds you to move..
    Thanks
    Last edited by Kale Good (2014-11-29 15:48:11)

    Hello
    I would not use systemd to do that.
    Just write a script and have it running in background when you start your graphical session:
    #!/bin/bash
    while true; do
    notify-send "Get up and move around!" "You've been sitting in one place for too long." --icon=dialog-information
    sleep 7200
    done
    You can also look at this thread for other less KISS ways.

  • Flash link results pop-up, but not online

    Hi there,
    Hope someone can help me with this because I'm pulling the
    hairs out of my head.
    I have a XHTML page with 2 iFrames, 1 frame named 'topframe',
    the other named 'bottomframe'.
    When I create a .swf file in Flash CS, embed it in
    'topframe', and it has an link to open up 'test.html' in
    'bottomframe',
    and I test this out on my Dual core Intel Mac (OS X.4.9), the
    'test.html' file doesn't open in the bottom iframe but in a blanc
    new window.
    Now here is the odd thing, if I upload everything to my site,
    and then test it out, it works, and 'test.html' does open in the
    bottom iFrame.
    Any idea what is going wrong here? It's very frustrating to
    work this way.
    Rick

    OK, found it. I needed the mm_css_menu.js file uploaded.

  • [SOLVED] Font glyphs work locally, but not over SSH?

    Hello,
    I am trying to get some font glyphs used for status icons (https://aur.archlinux.org/packages/stlarch_font/) to show up in a tmux session over SSH.
    The setup on the local and remote machines are identical and the fonts work fine in tmux on both machines, running locally.
    When attempting to view a tmux session over SSH, however, the glyphs no longer display and instead there is a blank space where they should be.
    Setup:
    URxvt 9.20
    Tmux 1.9a
    .Xresources (full)
    URxvt*termName: rxvt-256color
    URxvt*font: xft:dejavu sans mono for powerline:regular:pixelsize=16,\
    -misc-stlarch-medium-r-normal--10-100-75-75-c-80-iso10646-1
    .tmux.conf (full)
    set -g default-terminal "screen-256color"
    The setup is based off of tutorial: http://crunchbang.org/forums/viewtopic.php?id=20504
    Any ideas?
    Keith
    Last edited by hughitt1 (2014-07-15 01:00:24)

    --edit--
    It appears that the fonts do show up properly on the remote machines when I simply SSH in; it's only when I enable X11 forwards ("-x" flag) that they no longer work...
    **Update 2014/07/14** Problem not related to X11 forwarding. See below for explanation.
    Last edited by hughitt1 (2014-07-15 01:00:02)

  • Camera works in MAX but not in LabVIEW

    I've been struggling a lot with getting a DCC3240M camera from Thorlabs working in LabVIEW. The supplied software (Thorcam) works as it should. However, the LabVIEW SDK does not work as it should, it gives an error 155 "the operation is not supported".
    Instead of the SDK I tried the DirectShow drivers and now the camera turns up in MAX and works as it should. It also shows up with IMAQdx Enumerate Cameras.vi and in the Vision Acquisition Express vi. BUT when I try to run either IMAQdx Open Camera.vi or the Express-vi it doesn't work. Open Camera gives a DirectShow error code 0x80040275 "No capture hardware is available, or the hardware is not responding." And when i try to select the camera in the express vi, a red icon appears and I can only select "Cancel":
    It's really really annoying that the camera evidently works with the provided drivers, but I cannot use it in LabVIEW.
    I would be grateful for any ideas of what is wrong. I am running 32-bit LabVIEW on 64-bit Win8.1.

    Issue solved!
    I thoroughly removed all drivers that came with the camera and then I installed the manufacturers drivers (IDS) instead of Thorlabs drivers. And now it works, the camera still shows up in MAX and doesn't work. But now the provided VIs work. So I'm happy. It only took me a week to figure it out.

  • FPGA target visible in MAX but not in LabVIEW

    Hey!
    I recently installed a RIO device. Before installing the hardware, i installed FPGA module & RIO 3.0 as directed. Now i can see the device in measurement & automation explorer, but its not in 'Add targets & devices' list. It says 'No devices found' in existing devices tab. I cant understand the problem. :/
    Solved!
    Go to Solution.

    That's interesting...seems like a similar post to this:
    http://forums.ni.com/ni/board/message?board.id=280&message.id=6481
    Try to follow the suggestions mentioned in there and post back if you still have issues.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Device works fine with MAx but not with Labview visa serial

    I have a Monarch rpm sensor hooked up to Monarch tachometer , it gives error while coding in labview and works fine in Max if the sensor doesn't read 0. I have written simple RS-232 programs never had an error but this one is giving errors ..not ablt to fix it..please help
    Solved!
    Go to Solution.

    No device can actually measure a speed of zero.  It can only specify that the speed is less than some minimum, which depends on how long you are willing to wait for an answer.
    I do not know anything about your instrument, but I would guess that you are getting an error which is the equivalent of "The instrument has waited the maximum permissible amount of time and did not detect any measurable motion."  This is the instrument's way of saying that the speed may be zero, or very slow, or something is broken so that it cannot make a measurement but it cannot detect the problem.
    Look at the manual for you instrument to see how it responds to the zero speed condition.  This error may be normal.  If so, you need to capture the particular error code and handle it however you think is appropriate.
    Lynn 

  • NI-DAQmx task works in MAX or DAQ Assistant test panel but not in LabVIEW

    I am attempting to read a single AI channel from a PCI-6024E card via an SCB-68. I have created a NI-DAQmx Analog Input Voltage Task in MAX for this channel, sampling in contiuous aquisition mode at 100 kHz, 10000 samples at a time, with RSE terminal config. If I use the Test feature from MAX, the channel acquires data as expected.
    In LabVIEW, I call this task using an DAQmx Task Name Constant. If I right-click this constant and select "Edit Task", the Daq Assistant opens and I can use the Test feature from the DAQ Assistant to see that the data is still being acquired as expected.
    However, when I try to programmatically read this channel in LabVIEW using the VI "DAQmx Read (Analog Wfm 1Chan NSamp).vi", the VI returns a constant DC value of 500 mV, which I know is incorrect (I can monitor the signal across the two terminals in the SCB-68 with a DMM to know that the signal coming in varies as expected, and as I read using the test panels). This erroneous reading occurs even if I make a new VI, drop the task name constant on the diagram, right-click the task name constant and select "Generate Code - Example" and let LabVIEW create its own acquisition loop (which is very similar to what I already set up, using the "DAQmx Read" VI).
    Any ideas why the Test Panels work correctly but the LabVIEW code does not?

    Hello bentnail,
    I'm not sure why the test panels are readin the value correcly but the LabVIEW code does not, but there are a couple of things we can try.
    1) What happens if you just use the DAQ Assistant and place it on the block diagram? Does it read out the correct values?
    2) Try running a shipping example that comes with LabVIEW. "Acq&Graph Voltage-Int Clk.vi" should work well.
    3) What kind of signal are you expecting to read (peak to peak voltage, freqeuncy, etc.)?
    Thanks,
    E.Lee
    Eric
    DE For Life!

  • Error 1097 - function works in C++ application, but not in LabView

    Good afternoon,
    I have a C++ OpenCV application that I am trying to port to LabView for a co-worker. The application is fully functional when it's compiled standalone as an .exe. When called from LabView it reports error 1097.
    However, this error is not being caused by not allocating momeory space or the way I am calling the DLL, because I can successfully run the DLL from LabView if I omit one function "findContours(..)" from being called inside my rotuine. Meaning that without this function I can send and receive an Image to my DLL and display it in LabView without a problem. This function is not being called directly from LabView either, it's called inside the main function that is being called by LabView.
    That being said, the function allocates memory on its own for it's internal calculation purposes, I do not know what they are, but I know it works perfectly well in a standalone C++ application. 
    My DLL application consistenly uses 180Mb of memory without any leaks
    My Question is:
    Is it possible that LabView or windows may be preventing the DLL from allocating enough memory (I have 12Gb total)?
    Is it possible to run the DLL as a separate application or in a different configuration that would prevent error 1097 from occuring?
    How could LabView possibly be restricting the DLL?
    Thanks,

    error 1097 means that the function somewhere and somehow overwrote memory areas that LabVIEW monitors as its own during the call. This could be memory buffer function parameters  that are unallocated or to small or stack variables or some other memory areas LabVIEW puts in place around the DLL call when the highest debugging level is selected for the Call Library Node. But lowering the debugging level is not the solution as the function certainly does something that it should not do.
    What that could be is impossible to say without analyzing the actual C source code of the function and possibly all the other functions involved in this as well as all the Call Library Nodes. It could even be that its something that is not even directly evident from the C source code but an effect of some (falsely invoked) optimization from the used C compiler.
    I assume that you have actually a self written wrapper DLL here and that is where I would focus on in my search. It is quite unlikely that the OpenCV source code itself would still contain such errors after that much of time.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Why is my USB camera recognized in MAX but not in LabView?

    I am trying to use myRiO to acquire video using a Logitech HD Pro Webcam C920. 
    I am using LabView 2013 and have the NI-IMAQdx 4.2.0.3.0 software installed on the myRIO. 
    I have tried a couple sample programs: https://decibel.ni.com/content/docs/DOC-3587 and https://www.youtube.com/watch?v=L7tMeKshd38. 
    I plugged my Logitech camera into the myRIO USB port. In both cases, LabView failed to recognize my Logitech camera. However, in both cases, it was able to use the integrated Webcam in my laptop to acquire images. When I disabled the integrated camera, it did not find any camera. 
    Here is a screenshot of the error when I disabled the integrated camera:
    However, when I look at the MAX, the Logitech camera appears and is able to acquire images:
    David York

     
    yorkdav1 wrote:
    I am trying to use myRiO to acquire video using a Logitech HD Pro Webcam C920. 
    I am using LabView 2013 and have the NI-IMAQdx 4.2.0.3.0 software installed on the myRIO. 
    I have tried a couple sample programs: https://decibel.ni.com/content/docs/DOC-3587 and https://www.youtube.com/watch?v=L7tMeKshd38. 
    I plugged my Logitech camera into the myRIO USB port. In both cases, LabView failed to recognize my Logitech camera. However, in both cases, it was able to use the integrated Webcam in my laptop to acquire images. When I disabled the integrated camera, it did not find any camera. 
    Here is a screenshot of the error when I disabled the integrated camera:
    However, when I look at the MAX, the Logitech camera appears and is able to acquire images:
    David York
    David,
    Have you tried deleting your "session in" control & recreate it? I have come across situation a while back where the control did not get refreshed with latest values from Max and it gave me pretty much same errors as what you see (I believe it was due to a small name change of the resource which did not get refreshed in the session control).  I say that because you mentioned camera resource getting detected properly with Max & working. Doesn't hurt to give it a try...
    -BTC

Maybe you are looking for