Exec system.vi

Hello everyone, this is my first post!
Im using exec system.vi to open cygwin. My problem is that when I run my code The command window will open and close repeatedly until I stop running the labview application. In the command line I've written C:\cygwin\cygwin.bat and in the standard input ive put ns protocol.tcl tough if I remove the standard input the problem still remains.In run minimized if put a boolean false object. I tried doing a simpler solution by getting to run hello.c code but the problem still remains.
Any help that any one can offer will be greatly appreciated. Regards, Chris.

HI 0208,
Thank you for posting your issue.
I have just been looking at the system you have designed and created my own with ping IP address in the command constant.
As I only sent a ping to my machine and it looks to work, the command pops up and then waits for a few seconds then closes.
This is my block diagram and front panel. ( See Attachments) 
The standard output may require you to select the add scroll bar or just make it big enough so that you can view the codes generated.
i hope this helps you,
Regards
Jordan Power
Applications Engineer
National Instruments
Attachments:
forum0208.JPG ‏165 KB
forum0208b.JPG ‏94 KB

Similar Messages

  • PO created in the SRM 7.0 system is not replicated to the Backend-ECCEHP4

    PO is created in the SRM 7.0 system and the PO number also generated for the backend system but could not find the PO number in the backend system

    Hi
    In RZ20 i am getting the message :Error in local purchase order; no update of references in EXEC system.

  • Finding system user name

    hai any body tell to me how to find the system user name and password in windows domain
    now i am developing the java based anti virus software ...that why we need for that ...
    so anybody helsp to me
    also i was used runtime().exec("");->System commands but i can get the system user name
    anybody clear to this soluations ....

    If you have at least one account that has admin privileges, which will be one of those *short names* I pointed to, then open System Preferences, Accounts, click on the lock, supply one of those shortnames, add the password and with the Accounts now unlocked open the other account that you guess may be the Admin's account and view the Username.
    If there are several shortnames, work through each one methodically and logically. The number of possible combination are few.
    The other possibility is that there is no account that has admin privileges, but you say there is and I believe you.
    Postscript: if you are trying to invoke admin privileges, supplying the shortname and its correct password will suffice. There is no need to supply the full Username. Either will work.
    This makes me think you may not have the correct Admin password.
    Message was edited by: roam

  • Execution system differs between VI properties and Execution Trace Toolkit

    I have a time critical acquisition VI whose execution system is set to "E/S d'instruments" (instrument IO). When I dump the execution trace in the execution trace toolkit it appears as "LabVIEW Thread [Standard]". Moreover there is a second line with the same thread name. Is this just a confusing bug or does it reflect a possible conflict in my program ?
    Thanks in advance.
    Gael.
    Additionnal information : I am working on FP-2015.

    Gael,
    I made my top-level VI run at normal priority in the "same as caller" execution system, and my subVI run at time critical priority in the "instr I/O" execution system. The trace (attached) showed correct behavior.
    There are a few things to try. First make a backup of your application. Try removing the storage management subVI assigned to "other 1". You should now have a top-level VI running at normal priority in the same as caller exec system and a subVI running at time-critical in the instr I/O exec system (same as my setup).
    If you still get the weird behavior, we might be able to isolate the behavior to a subVI you're calling inside the time-critical VI. Try removing one subVI at a time and collect a tra
    ce each time.
    Alternatively, you can start with my simply VIs and slowly add components from your application until you see the weird behavior.
    I should remark that when you assign a VI to run at time-critical priority, that VI gets its own thread, even if the VI is set to run in the "same as caller" execution system. So even if your time-critical VI is not adhering to its assigned execution system, it's still running in its own time-critical priority thread (shown as red in the trace tool).
    Attachments:
    topVI_sameascaller_subVI_intrIO_timecritical.bmp ‏2089 KB
    instr_io.vi ‏19 KB
    sub_instr_io.vi ‏20 KB

  • SRM 7.0, PO details are not getting populated in Contract History Tab

    Hello Folks,
    I am stuck with an issue and would need your help regarding that.
    Scenario: (Extended Classic Scenario) SRM version 7
    A catagory Contract is created.
    Shopping cart created with Contract as the source of supply.
    Once the SC is approved PO is generated.
    Now if we open the contract and view the History tab, under Tracking PO details should appear.
    However we are not getting any details of the PO in the Contract. Could you please suggest where to look, to resolve this issue.
    Your inputs will be highly appreciated.
    Regards
    Nishant Rajvanshi

    RZ20 errors:
    Local Errors:   Business to Business Procurement(600)
    Error reading export data for EXEC transfer of purchase order
    Error in local purchase order; no update of references in EXEC system
    Backend Errors:
    PO 3000000051: No instance of object type PurchaseOrder has been created. External reference:
    Purchase order 3000000051: Document contains no items
    Purchase order 3000000051: Transfer Failed; Resubmit
    Since we are in SRM 7.0 ECC 6.04 Ehp 4,  with PI 7.11 + ROS and no SUS.
    doent the system uses ESOA Service for PO replication.
    We did CCTR / CPPR scenarios too. Both are sucessful.
    Do we need to impl BADI PUR_SE_PO_INTERFACE_OUT_SELECT
    But thats for Service hierarchy and Service POs -  We dont have Service hierarchy or SUS in our SLD.
    IF PO replication also uses PI, what configuration do i need to do?

  • SQL Server 2014 Express Management Studion crash

    Hello!
    After clean install new management stuidio 2014 I tried to import setting about registered sql servers from 2012.
    He-he! I did not read docs and did not know that it is not working. But exception, wtf?
    Summary my IDE crash every time when I try to expand Registered Servers. Reinstall, repair SQL Server 2014 is not healing problem.
    Faulting application name: Ssms.exe, version: 2014.120.2000.8, time stamp: 0x5306c06d
    Faulting module name: KERNELBASE.dll, version: 6.3.9600.17415, time stamp: 0x54504ade
    Exception code: 0xc000041d
    Fault offset: 0x00014598
    Faulting process id: 0x494
    Faulting application start time: 0x01d0099222d89631
    Faulting application path: C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\Ssms.exe
    Faulting module path: C:\Windows\SYSTEM32\KERNELBASE.dll
    Report Id: 68e6a650-7585-11e4-8257-f46d0493d13a
    Faulting package full name: 
    Help please. If somebody tell me "Reinstall windows", I ### him! 

    Application: Ssms.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Security.Cryptography.CryptographicException
    Stack:
       at Microsoft.SqlServer.Management.RegisteredServers.RegisteredServer.ProtectData(System.String, Boolean)
       at Microsoft.SqlServer.Management.RegisteredServers.RegisteredServer.get_SecureConnectionString()
       at Microsoft.SqlServer.Management.RegisteredServers.RegisteredServer.get_ConnectionString()
       at Microsoft.SqlServer.Management.RegisteredServers.RegisteredServer.get_ServerName()
       at Microsoft.SqlServer.Management.RegisteredServers.RegisteredServerTree.AddRegisteredServerNode(Microsoft.SqlServer.Management.RegisteredServers.RegisteredServer, System.Windows.Forms.TreeNodeCollection)
       at Microsoft.SqlServer.Management.RegisteredServers.RegisteredServerTree.AddServerGroupToNodeCollection(Microsoft.SqlServer.Management.RegisteredServers.ServerGroup, System.Windows.Forms.TreeNodeCollection, Boolean)
       at Microsoft.SqlServer.Management.RegisteredServers.RegisteredServerTree.AddServerGroupToNodeCollection(Microsoft.SqlServer.Management.RegisteredServers.ServerGroup, System.Windows.Forms.TreeNodeCollection, Boolean)
       at Microsoft.SqlServer.Management.RegisteredServers.RegisteredServerTree.Initialize(Microsoft.SqlServer.Management.RegisteredServers.ServerGroup, Microsoft.SqlServer.Management.Common.ServerType, Microsoft.SqlServer.Management.UI.ConnectionDlg.IServerType,
    Microsoft.SqlServer.Management.RegisteredServers.AddCentralManagementServerDelegate, Microsoft.SqlServer.Management.RegisteredServers.AddNewCentralManagementServerDelegate, Microsoft.SqlServer.Management.RegisteredServers.DeleteCentralManagementServerDelegate,
    Microsoft.SqlServer.Management.RegisteredServers.GetServiceProviderDelegate)
       at Microsoft.SqlServer.Management.RegisteredServers.RegisteredServerControl.RegisteredServerControl_Load(System.Object, System.EventArgs)
       at System.Windows.Forms.UserControl.OnLoad(System.EventArgs)
       at System.Windows.Forms.UserControl.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.ContainerControl.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.UserControl.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(Int32, System.String, System.String, Int32, Int32, Int32, Int32, Int32, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef,
    System.Object)
       at System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32, System.String, System.String, Int32, Int32, Int32, Int32, Int32, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef,
    System.Object)
       at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams)
       at System.Windows.Forms.Control.CreateHandle()
       at System.Windows.Forms.Control.get_Handle()
       at Microsoft.VisualStudio.Shell.UIWin32ElementWrapper.Create(IntPtr, IntPtr ByRef)
       at Microsoft.VisualStudio.Platform.WindowManagement.UIElementDocumentObject.Init(Boolean)
       at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.InitializeDocumentObject(System.Object)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.CreateContentPane(System.String, Int32, Int32, System.String, UInt32, UInt32, System.Object, System.Object, Microsoft.VisualStudio.OLE.Interop.IServiceProvider, Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy,
    UInt32, Int32 ByRef, System.Guid ByRef, Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame ByRef)
       at Microsoft.VisualStudio.Shell.Interop.IVsUIShell.CreateToolWindow(UInt32, UInt32, System.Object, System.Guid ByRef, System.Guid ByRef, System.Guid ByRef, Microsoft.VisualStudio.OLE.Interop.IServiceProvider, System.String, Int32[], Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame
    ByRef)
       at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(System.Type, Int32, Microsoft.VisualStudio.Shell.ProvideToolWindowAttribute)
       at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(System.Type, Int32)
       at Microsoft.VisualStudio.Shell.Package.FindToolWindow(System.Type, Int32, Boolean, Microsoft.VisualStudio.Shell.ProvideToolWindowAttribute)
       at Microsoft.SqlServer.Management.RegisteredServers.RegisteredServers.ShowToolWindow(System.Object, System.EventArgs)
       at System.ComponentModel.Design.MenuCommand.Invoke()
       at System.ComponentModel.Design.MenuCommand.Invoke(System.Object)
       at Microsoft.VisualStudio.Shell.OleMenuCommandService.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(System.Guid ByRef, UInt32, UInt32, IntPtr, IntPtr)
       at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(System.Guid ByRef, UInt32, UInt32, IntPtr, IntPtr)
       at Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource.Invoke(System.String, System.Object, System.Object ByRef)
       at Microsoft.Internal.VisualStudio.PlatformUI.DataSource.Invoke(System.String, System.Object, System.Object ByRef)
       at Microsoft.VisualStudio.PlatformUI.VsCommand.Execute(System.Object)
       at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(System.Windows.Input.ICommandSource, Boolean)
       at System.Windows.Controls.MenuItem.InvokeClickAfterRender(System.Object)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
       at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

  • SRM 7.0 PO not replicated to Backend ECC 6.0 Ehp 4

    Hi SRM Gurus,
    SRM 7.0  SP 8 - ECC 6.04 SAPKH60406 ECS
    RFx Response to PO -
    SRM Local PO is created and is in held status.  Purchaser gives the source of supply and Acc Assignment and order it.
    PO now is in Ordered status.
    Issue: this PO is not replicated to Backend ECC 6.04.
    Did the Debugging as follows:
    1.  BP at B46B_DPO_TRANSFER.
    2.  Got the PO GUID from the BBP_PD transaction.
    3.  FM BBP_PD_PO_TRANSFER_EXEC, execute it and it  stopped in the breakpoint.
    4.  On 'FUNCTION 'BBP_PO_INBOUND' DESTINATION lv_destination',  hit F6.
    5. Checked  lt_bapi_return details.
    Here there should be information regarding some error during the PO copy to backend.
    With this error message you can check why the PO was not created in backend.
    ERRORS from Backend are as follows:
    1.   No instance of object type PurchaseOrder has been created. External reference:   E  BAPI 001
    2.   Document contains no items       E    ID 06   Number 010
    3.   Please enter items first.              W   ID 05                 005
    No XML messages in SXMB_moni both in SRM side and ECC side.
    What am i doing wrong here?  Any help is highly appreciated.
    with regards,
    Freemind

    RZ20 errors:
    Local Errors:   Business to Business Procurement(600)
    Error reading export data for EXEC transfer of purchase order
    Error in local purchase order; no update of references in EXEC system
    Backend Errors:
    PO 3000000051: No instance of object type PurchaseOrder has been created. External reference:
    Purchase order 3000000051: Document contains no items
    Purchase order 3000000051: Transfer Failed; Resubmit
    Since we are in SRM 7.0 ECC 6.04 Ehp 4,  with PI 7.11 + ROS and no SUS.
    doent the system uses ESOA Service for PO replication.
    We did CCTR / CPPR scenarios too. Both are sucessful.
    Do we need to impl BADI PUR_SE_PO_INTERFACE_OUT_SELECT
    But thats for Service hierarchy and Service POs -  We dont have Service hierarchy or SUS in our SLD.
    IF PO replication also uses PI, what configuration do i need to do?

  • Warning: -23 not understood. Ignoring.

    I've ran into what I think is a simple problem but I don't know how to resolve it.
    I need to pass negative arguments to a Java application (i.e. java JavaApp -23). This works in Windows but no on RedHat 9. I think it doesn't work because Linux thinks I'm passing a parameter (i.e. ls -la).
    I have tried to wrap the command-line argument in quotes and various other things (java JavaApp "-23" or '-23' or --23).
    I get the following error;
    Warning: -23 not understood. Ignoring.
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
    at 0x40268e17: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/./libgcj.so.3)
    at 0x4025bcd2: java.lang.Exception.Exception(java.lang.String) (/usr/lib/./libgcj.so.3)
    at 0x4025f592: java.lang.RuntimeException.RuntimeException(java.lang.String) (/usr/lib/./libgcj.so.3)
    at 0x4025c7ee: java.lang.IndexOutOfBoundsException.IndexOutOfBoundsException(java.lang.String) (/usr/lib/./libgcj.so.3)
    at 0x402581c2: java.lang.ArrayIndexOutOfBoundsException.ArrayIndexOutOfBoundsException(java.lang.String) (/usr/lib/./libgcj.so.3)
    at 0x4021b5e6: JvThrowBadArrayIndex (/usr/lib/./libgcj.so.3)
    at 0x4022eca1: JvInterpMethod.continue1(_Jv_InterpMethodInvocation) (/usr/lib/./libgcj.so.3)
    at 0x40230ff4: JvInterpMethod.run(ffi_cif, void, ffi_raw, JvInterpMethodInvocation) (/usr/lib/./libgcj.so.3)
    at 0x4022e504: JvInterpMethod.run_normal(ffi_cif, void, ffi_raw, void) (/usr/lib/./libgcj.so.3)
    at 0x4038305c: ?? (??:0)
    at 0x40242dd8: gnu.gcj.runtime.FirstThread.call_main() (/usr/lib/./libgcj.so.3)
    at 0x402ad02d: gnu.gcj.runtime.FirstThread.run() (/usr/lib/./libgcj.so.3)
    at 0x4024fc4c: JvThreadRun(java.lang.Thread) (/usr/lib/./libgcj.so.3)
    at 0x4021c8ac: JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/./libgcj.so.3)
    at 0x08048910: ?? (??:0)
    at 0x42015704: __libc_start_main (/lib/tls/libc.so.6)
    at 0x080486c1: ?? (??:0)

    I could give you guys a big hug. Ok I won't... scared
    of the sexual harrassment lawsuit and all.
    I renamed the stupid script in /usr/bin to java2.
    RedHat you are so stupid.
    I then gave appropriate read and executible rights to
    others in the jdk folder.
    Restarted my session and voila! It all seems to work.
    I'm sure I'll have to play with appropriate rights
    down the line, but now I'm extremely happy.
    So is there a way to mark this as solved?Cool, glad you found it.
    To tie up loose ends...
    Were you shocked and apalled that java was a script, or that it was in usr/bin? I'm pretty sure that the usual case is for the java that your PATH picks up first to be a shell (or .bat) script. I thought that the usual place to find it though was $JDK_HOME/bin/java or $JRE_HOME/bin/java but as it turns out, on my Mac it's also /usr/bin/java, and all it does is exec /System/Library/Frameworks/JavaVM.framework/Commands/java "$@" but then OS X is a bit of an odd beast anyway.
    You may already know this, but ...
    * The suggestion I made to pull things apart was just a temporary one to help you get it going, with the expectation that you'd put things back together "the right way" once you found the source of the problem.
    * If you want to run something other than /usr/bin/java, then make sure it's marked as executable and its directory is in your path ahead of /usr/bin. You may also have to either open a new shell or do something like "rehash" or "hash -r" to flush the "path cache."

  • Copy PO order in SRM not replicating new net price in ECC (SAP SRM 7.0 )

    Hello - I'm in SRM 7.0 SRM Server 701 level 4 and ECC 6.0
    I I'm copying an already order PO from POWL (copy), I change the Gross Price in SRM from X to Y and I order the new PO. I go to ME23n in ECC and the NET_PRICE value on the PO is still X even that in SRM is Y.
    So I go to SE37 in SRM and execute BBP_PD_PO_TRANSFER_EXEC_V2, when I step in I can see that the value in the PO in SRM is Y and in ECC is Y. When I check me23n again now the value in ECC is Y.
    If I don't debug the value never updates. Any ideas what could be causing the NET_PRICE not to update. Also if I add other lines item the net_price always update to the new lines item. It is like a buffer issue but how come when I debug it is working but when I order from NWBC it doesn't update?
    any ideas?
    thanks!
    Jason PV

    RZ20 errors:
    Local Errors:   Business to Business Procurement(600)
    Error reading export data for EXEC transfer of purchase order
    Error in local purchase order; no update of references in EXEC system
    Backend Errors:
    PO 3000000051: No instance of object type PurchaseOrder has been created. External reference:
    Purchase order 3000000051: Document contains no items
    Purchase order 3000000051: Transfer Failed; Resubmit
    Since we are in SRM 7.0 ECC 6.04 Ehp 4,  with PI 7.11 + ROS and no SUS.
    doent the system uses ESOA Service for PO replication.
    We did CCTR / CPPR scenarios too. Both are sucessful.
    Do we need to impl BADI PUR_SE_PO_INTERFACE_OUT_SELECT
    But thats for Service hierarchy and Service POs -  We dont have Service hierarchy or SUS in our SLD.
    IF PO replication also uses PI, what configuration do i need to do?

  • Why is time-critical thread not interrupting sleepless high priority thread?

    Hello,
    I have two threads running in the same execution system on a real-time PXI platform. The time-critical thread sleeps using "AI Single Scan.VI", and acquires my data at a rate of 8000 Hz.
    I have a slower high priority process that calls a DLL function to calculate some filter coefficients. This function call takes longer than 1/8000 s to complete, and runs in a loop, executing as often as it can (with new data from FIFOs).
    I expected the time-critical thread to interrupt the the high priority thread without problem.
    I am finding that unless I insert a LabVIEW delay (for example a wait for x ms VI) in the loop, the real-time system stops responding. With a small delay (ie 1 ms), t
    he acquisition completes, and a FIFO shuts down the loop of the slow process.
    Why do I need a labVIEW delay in the high-priority loop, when the DLL function call itself is quite slow? Even without a DLL call, I would expect the time-critical VI to interrupt, finish its data acquisition, and shut-down the high-priority thread using its FIFO.
    Any suggestions?
    Thanks in advance,
    Frenk

    Here are a couple things to try/check:
    1) Check the call library node in your high priority VI. If it's orange (runs in UI thread), your high priority VI is actually switching to the UI thread every time your dll runs. That alone is not a problem. But if your TC VI tries to update any control terminals, the TC thread will switch over to the UI thread to access UI resources, possibly while the dll within your high priority VI has a lock on those resources. Why does the dll have a lock on UI resources? Because it was running in the UI thread and got interrupted by the TC thread before it finished doing its business. Not likely, but possible.
    2) There's another possible reason you're seeing this behavior. If the TC VI and the high VI call a mutual subVI, the subVI will be elevated to ALWAYS run in the highest priority thread irrespective of the actual caller (in your case, it's the the TC thread). Even when the *high priority VI* calls the mutual subVI, that subVI runs in the time-critical thread, which means there's a thread switch from high to TC, then back to high after the subVI finishes. And because high and TC VIs are in the same exec system, that mutual subVI will always run in the 1 and only TC thread alotted to that exec system.
    So, while your TC VI is running, you're in the TC thread. While, your high VI is running, you're in a high non-TC thread, and when your high VI calls the mutual subVI, you're again in the TC thread until the subVI finishes.
    So how could this arrangement cause your TC VI to become starved by the high VI? If your TC VI wakes up while the high VI is in the middle of running the mutual subVI, the TC thread responsible for running the TC VI is actually busy (in the middle of running the subVI in your high VI!!!), so the TC thread cannot run your TC VI until it finishes running that mutual subVI.
    The fix: make your TC VI run in a different exec system. It will be given its own TC thread that no one else can mess with. When TC VI wakes up, it's guaranteed a TC thread.
    I think there's a good reason behind why a mutual subVI ALWAYs runs at the highest priority of all its callers, irrespective of the actual caller's priority...but I can't think of the reason at the moment.

  • Can I encode real-time sound to A-LAW or U-LAW? And make it louder?

    Hi there,
    I'm making a voice chat application, that currently works using the Java Sound API (So no JMF), in the following PCM_SIGNED format:
    public static final AudioFormat FORMAT = new AudioFormat(
                AudioFormat.Encoding.PCM_SIGNED, 16000.0f, 16, 1, 2, 16000.0f, true);I want to put it into U-LAW or A-LAW or possibly encode the sound to a smaller but still audibly enjoyable format to reduce the bandwidth it takes. Can anyone point me in the right direction as to what to use/read/look into in order to achieve this?
    Also, I noticed that during the voice chat the volume was very low, so I've searched this forum, and I've found a way to increase the VOLUME, and later the GAIN, but these values were already on full volume, so I couldn't make the microphone any louder.
    Is there a way to make the voice chat louder than it currently is?
    My program is a J2SE GUI application, there are no servlets, both sides of the voice chat are GUI Desktop Applications, the voice chat is happening on UDP sockets.
    Here is the code for the Record part:
        public Record(DatagramSocket socket) {
            connection = socket;
            address = connection.getInetAddress();
        public void start() {
            thread = new Thread(this);
            thread.setName("Record");
            thread.start();
        public void stop() {
            thread = null;
        @SuppressWarnings("static-access")
        public void run() {
            DataLine.Info info = new DataLine.Info(TargetDataLine.class, Vox.FORMAT);
            try {
                line = (TargetDataLine) AudioSystem.getLine(info);
                line.open(Vox.FORMAT, line.getBufferSize());
            } catch (LineUnavailableException exec) {
                System.out.println("Record: Audio Input not ready.\n" + exec.getMessage());
                System.exit(3);
            } catch (Exception exec) {
                System.out.println("Record: Fatal Exception:\n" + exec.getMessage());
                System.exit(4);
            int frameSizeInBytes = Vox.FORMAT.getFrameSize();
            int bufferLengthInFrames = line.getBufferSize() / 8;
            int bufferLengthInBytes = bufferLengthInFrames * frameSizeInBytes;
            int minPacketSize = (int) (bufferLengthInBytes / 1.5);
            byte[] data;
            int bytesAvailable;
            line.start();
            System.out.println("Record started...");
            while (thread != null) {      // Send data only when we have a buffer of at least 50%
                if ((bytesAvailable = line.available()) >= minPacketSize) {
                    data = new byte[bytesAvailable];
                    line.read(data, 0, bytesAvailable);
                    try {
                        connection.send(new DatagramPacket(data, bytesAvailable));
                    } catch (Exception exec) {
                        System.out.println("Record: Exception sending packet:\n" + exec.getMessage());
                try {
                    thread.sleep(50);
                } catch (InterruptedException exec) {
            line.stop();
            line.flush();
            line.close();
            line = null;
    }I would appretiate any suggestions to the questions above, or if someone has a thought about the record code I posted, and I'm very grateful for any answers.
    Regards,
    Ben

    These will probably help.
    [http://www.jsresources.org/examples/audio_conversion.html]

  • How to program my own UPI and OPI?

    Hi,
    I just want to know how to program my own UPI and OPI. I want to
    add some features into the DBMS. Is there some one can answer my
    questions, or tell me where to find information? Thanks!
    null

    Follow the bouncing example
    package mil.army.logsa.sandbox.thread;
    import java.util.Observable;
    import java.util.Observer;
    public class RunnableExample implements Observer {
         public static void main(String[] args){
              RunnableExample e = new RunnableExample() ;
              e.exec() ;
         // This is here because you can't reference (this) in the static context of the main method
         private void exec(){
              System.out.println("Launching RunnableExample") ;
              System.out.println("Creating Thing") ;
              Thing t = new Thing(this) ;
              t.start() ;
              System.out.println("Shutting down RunnableExample") ;
         @Override
         public void update(Observable o, Object arg) {
              System.out.println(arg) ;
    class Thing extends Thread {
         private ObservableThing obsThing ;
         public Thing(Observer o){
              super() ;
              obsThing = new ObservableThing() ;
              obsThing.addObserver(o) ;
         public void run(){
              System.out.println("Starting Thing") ;
              for(int i=0; i<100; i++){
                   obsThing.notifyObservers(i + " is " + (i%2==0 ? "EVEN" : "ODD")) ;
              System.out.println("Thing is finished") ;
    class ObservableThing extends Observable{
         public void notifyObservers(Object o){
              setChanged() ;
              super.notifyObservers(o) ;
    }PS.

  • How to get my own EventHandler and EventListener working?

    I´m trying to learn how to write my own EventListener.
    I would do something like the ActionListener.
    import java.util.EventListener;
    import java.util.EventObject;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class Main extends JFrame {
        public static void main(String[] args) {
            new Main();
        private MyButton button = new MyButton();
        public Main() {
            this.setSize(200,200);
            this.setVisible(true);
            button.addMyEventListener(new MyEventListener(){
                public void action(MyEventHandler e) {
                    System.out.println("Changed");
            this.add(button);
        class MyButton extends JButton implements MyEventListener {
            private MyEventListener list;
            public void addMyEventListener(MyEventListener list){
                this.list = list;
            public void fireAction(MyEventHandler e){
                list.action(e);
            public void action(MyEventHandler e) {
                fireAction(e);
        interface MyEventListener extends EventListener{
            public void action(MyEventHandler e);
        class MyEventHandler extends EventObject{
            private Object obj;
            public MyEventHandler(Object obj){
                super(obj);
                this.obj = obj;
    }But when I press the button, the action is not performed. What else do I have to do?

    Follow the bouncing example
    package mil.army.logsa.sandbox.thread;
    import java.util.Observable;
    import java.util.Observer;
    public class RunnableExample implements Observer {
         public static void main(String[] args){
              RunnableExample e = new RunnableExample() ;
              e.exec() ;
         // This is here because you can't reference (this) in the static context of the main method
         private void exec(){
              System.out.println("Launching RunnableExample") ;
              System.out.println("Creating Thing") ;
              Thing t = new Thing(this) ;
              t.start() ;
              System.out.println("Shutting down RunnableExample") ;
         @Override
         public void update(Observable o, Object arg) {
              System.out.println(arg) ;
    class Thing extends Thread {
         private ObservableThing obsThing ;
         public Thing(Observer o){
              super() ;
              obsThing = new ObservableThing() ;
              obsThing.addObserver(o) ;
         public void run(){
              System.out.println("Starting Thing") ;
              for(int i=0; i<100; i++){
                   obsThing.notifyObservers(i + " is " + (i%2==0 ? "EVEN" : "ODD")) ;
              System.out.println("Thing is finished") ;
    class ObservableThing extends Observable{
         public void notifyObservers(Object o){
              setChanged() ;
              super.notifyObservers(o) ;
    }PS.

  • Extended classic scenarion after approval of shopping cart no PO is created

    Hi Experts,
    In extended classic scenario,SC approved and No po created in SRM 5.0
    when I check in BBP_PD status is completed and RZ20 shopping cart basket link all green and purchase order link red -
    Error in local purchase order. No update of references in EXEC system.
    Can any one please help to resolve the issue.Thanks in advance.
    Thanks,
    Babu

    Hello,
    Check the following notes. Maybe they are useful:
    1175255                                                            
    1171264                                                            
    628434
    Kind regards,
    Ricardo

  • Sendmail vs JavaMail

    Hi,
    I intend to start writing a mailing list / newsletter management system, but I'm having trouble deciding if I should use JavaMail to do the actual mailing or if I should connect to a MTA (mail server) to do the mailing. My MTA of choice would be Sendmail. Does anyone have any opinions on which would be more efficient? faster? reliable?
    How would you approach things if you wanted to handle very large mailing lists (50 000 - 100 000 subscribers)? Could JavaMail handle it?
    Does anyone know of any existing high quality, open source mailing list systems that I could just build a front end for? Something that uses a SQL database for storage would be preferable.
    I'd really appreciate any suggestions anyone might have. I'll probably have to go run up my VISA card at O'Reilly's website too. Oh darn :-)

    I am struggling to find an effective way to send email from my Unix/Servlet program.
    I have seen many scripts on the web, both Java/Perl, both sendmail/SMTP with sockets.
    Any implementation in Java fails.
    I can only execute Java as a Servlet and the HTML page is returned, but no mail is sent.
    Conversely, all my Perl scripts work fine.
    One thing that has worked is Runtime.exec("..../cgi-bin/email.pl"); // but does Not work with args
    My ancient (sometimes aggravating) environment is:
    Unix, JDK1.1.7, ApacheJServ 1.1.1
    I have no access to the Shell or the JServ logs, so debugging is quite difficult.
    Often, I have used RandomAccessFile as a debugging log file.
    JavaMail is not available, nor can I get the jar added to the classpath.
    Some basics:
    Does sendmail use SMTP sockets underneath ?
    Using SMTP, is there some kind of authorization issue ? alias req'd ?
    Does sendmail also require that you end the message body with a "." ? (No -is my guess)
    Are there good ways to debug this ?
    Is there a blocking issue, calling perl ? (Solution: use AutoFlush ? )
    What is best Runtime.exec() System.exec() ?
    How to best pass arguments ? If I started a new shell process (sh), I would use quoting rules.
    I've seen the fancier style of Runtime.exec(String[] {"/usr/bin/sh", ".../my_perl.pl", "arg1"});
    But I haven't gotten this to work yet.
    joshman: I like the directory solution, because it sounds fairly clean (call shell script/ for each)
    I could create 1file/Email with the Headers and Body, then loop thru. Maybe even have a Java thread kick off the script.
    Is cron too much to ask for on my host ?
    LordMJ: I asked on Google, but got no response. Is there a way I can pull out the classes from mail.jar and install them into JServ ? (in the correct packages, of course)
    TIA for your suggestions

Maybe you are looking for