Comm loss simulation

How would you simulate a comm loss?
I thought by simply using the conditional statement and taking out the write to CAN block, I would not transmit to CAN, but monitoring the bus shows that nothing happens to the frames and they keep transmitting regardless. I can see the change implemented if I stop the VI and then restart the VI, but I would like this to happen  dynamically. I thought about using the stop and erase block or even the flush block, but then realize that the timed loop would not have anything for a session to write to CAN after you enable the conditional statement and the write.VI. 
Attached is a subset of the larger VI I am using. All it is is a timed loop in which I am writing to CAN a user controlled CAN message from the UI (front panel), using a queued output mode write.VI after creating a session outside of the loop to write the specific CAN card and frame. 
How would I be able to disrupt comms of a particular frame being sent out and then recover it for the purposes of fault injection? I was hoping that some user controlled boolean button could enable the comm loss from the front panel and restore it by disabling the button. Any ideas?

If you are using XNET, you probably have a cyclic frame, which will transmit old data. However, there is a property Session>>Frame>>Skip N Cyclic Frames that you can use to skip sending N frames to simulate a disconnect of a particular frame.

Similar Messages

  • Intermittent Loss of Communications with Solaris 10

    With a 32 port Terminal Server, if greater than 28 ports are connected to
    active hardwired patient monitoring devices, our application on
    Solaris 10 experiences intermittent Loss of Comms one port (which a patient device is connect to) at a time. This happens whether or not other terminal servers are attached and has nothing to do with total device load load. We have been able to sustain device loads greater than 60 patients with NO comms loss as long as the 32 port Terminal Server(s) has 28 ACTIVE PORTS OR LESS.
    The Loss of Comms ONLY occurs for devices connected to the 32 port
    Terminal Server with greater than 28 ports connected to active devices.
    This does not occur with Solaris 8. It only occurs with Solaris 10
    11//06.
    Is this a TCP/IP configuration issue?
    I've begun trying to use DTRACE with Provider "mib", but need to narrow
    down the "filtering" to only trace on exactly what is needed to get to the root of this issue.
    Anyone have any ideas?

    I had the same problem. I tried all the obvious stuff (reset etc) and tried some of the random fixes suggested on here.
    Have you tried cleaning all the gunk from the charger port? Mine was clogged with pocket fluff so I got in about it with a tooth pick - problem solved!
    Good luck  :)

  • JTable - Custom cell editor lossing commit

    Hello,
    I have a custom cell editor and a default renderer assigned to a specific cell in my table...
    I have the following problem :
    If i change the value of cell 'c1' from value 'v1' to 'v2' and press enter and go to another cell the value in 'c1' is rendered correctly as 'v2'
    Hoever if i change the value of cell 'c1' from 'v1' to 'v2' and simply click over to another cell the value in 'c1' stays rendered as 'v1'
    Question : Is there ANY way to mimic the behavior of the user pressing enter in my custom cell editor when a user simply selects another cell, i guess on loss of focus or something..
    This is the last problem i have on the current project i am on and its very annoying.
    Thanks in advance, any help appreciated..
    -Alan

    I have the same problem using a custom Date/Time Picker Object (which extends JComboBox) as an editor within a table cell. For simplicity sake, I am posting code using only the base editable JComboBox, but it exhibits the same symptoms. If you enter a value in the TextField portion of the ComboBox and Tab, your value remains the same. If you enter a value in the TextField portion of the ComboBox and click in another cell, the value returns to the previous value (before editing began).
    import java.awt.*;                                                  // BorderLayout
    import javax.swing.*;                                               // JTable, JFrame
    import javax.swing.table.*;                                         // DefaultTableModel
    public class Tester extends JFrame
      public static void main(String[] args)
        Tester test = new Tester();
      public Tester()
        String[] values = {"Test", "Values"};
        JComboBox combo = new JComboBox(values);
        combo.setEditable(true);
        DefaultCellEditor editor = new DefaultCellEditor(combo);
        JTable table = new JTable(2, 3);
        table.getColumn(table.getColumnName(0)).setCellEditor(editor);
        JScrollPane scroll = new JScrollPane(table);
        getContentPane().add(scroll, BorderLayout.CENTER);
        pack();
        setVisible(true);
    }

  • How to use the functionality of Simulation for the Transaction MIRO

    Hi Group,
    I have a requirement to call SAP from MS Excel and check for the SImulation option as under:
    The Excel will pass the values of Invoice Number, Posting date, PO number, PO Item number, Company code and etc., through the call of BAPI   -   'BAPI_INCOMINGINVOICE_CREATE'  in order to create Invoice in the SAP system.
    But the above BAPI is creating the Invoices in SAP system. Rather, I need to just check(thru SIMULATION) the records and come back to MS Excel with the MIRO numbers that will be created and the errror messages that will be returned back.
    In summary, I have to add two Buttons as:
       POST : this has to create MIRO(invoice Numbers) in the SAP System(populating the Success/Error Messages by calling
                   the above BAPI   -  This functionality is working fine now
       SIMULATE: this has to do  same functionality of "POST" option but should not create MIROs in the SAP system
                          Currently I am not able to achieve this as the above BAPI is creating MIROs in SAP.
    Kindly provide your inputs on how to go about incorporating the above SIMULATION functionality, by giving some simulation BAPIs that can be used for my functionality.
    Thanks for your help in advance.
    Regards,
    Vishnu.

    Hi Group,
    In continuation to my previous posting, I would like to give more inputs as under:
    when I was using the BAPI - BAPI_INCOMINGINVOICE_CREATE (unless I commit the transaction), MIRO would not be created in the system.
    Now, when I run the BAPI again with a different set of data, the Invoice Number is getting incremented by one.... this I dont need, if the Invoice is not committed and if I run the next time, I need to get the same Invoice Number....
    How can I achieve this task?
    Kindly let me know your inputs on this.
    Regards,
    Vishnu.

  • Help - running out of time (Simulator vs. Burn)

    Quick background: running DVDSP 2.0 on 10.3.9, upgraded to 10.4.5 and DVDSP 2.0 (still). I did a clean install of DVDSP 2.0 back on 10.3.9, but problem still exists.
    Basically, I am using a Layered menu, everything works correctly inside DVDSP's Simulator but once a DVD or a DVD Image file (that is played in Apple DVD Player) is created, none and I mean NONE, of the links or connections work. I have deleted the PAR folder, deleted all of the connections and recreated them and I have even created a completely new project from scratch. But the same problem persists, which is that none of the links work outside of DVDSP. The Menu show correctly, I can select the Button properly, but the Button will not play the linked video.
    I have been making reels for our company for 8 months, I have never run into this problem. Existing projects, that use to work, done anymore. They end up with the same problem.
    Could there be a setting that I have missed, that was set back to the default during the upgrade? That could explain why a new install back on 10.3.9 would be experiencing the same problem and why old projects (that use to work) don't anymore. BUT WHAT COULD IT BE? I AM AT A LOSS AND PEOPLE KEEP ASKING ME WHEN WILL IT BE FINISHED.
    HELP PLEASE.
    Thanks
    Kalagan

    Without knowing a bit more about how you have set the layers up for your menu it is a bit hard to tell... but one thing to try is to make a standard menu and simply add a button to it (i.e. click on add menu then drag out a rectangle on the editor) add some text and set up a target for the button to go to. If this button works then there is not too much wrong with the linking within DVDSPs abstraction layer... the problem will be in the way you have constructed your menu.

  • Hi, I recently upgraded my xcode to 5.1, my project is running well in ios 7.0,6.0, But in ios 7.1 i'm getting error like"iOS Simulator failed to install the application". Can anybody please suggest the solution for it.

    My project is not running in ios 7.1 simulator i'm getting error like "iOS Simulator failed to install the application". Please suggest a solution for it.

    We aren't Apple, just users like you. Have you tried a reset? Hold down the home button along with the sleep/wake button until the screen goes black and you see the Apple, then let go. (No data loss)

  • Loss of all controlfile,database is automatic shutdown abort?

    Your database is configured in NOARCHIVELOG mode. All the control files have been lost due to a hard disk failure but the data files are not lost. You have the closed whole database backup available to you. Which two statements are true in this scenario? (Choose two.)
    A) The instance aborts.
    B) The database cannot be recovered.
    C) The database can be recovered by restoring the control files from the backup.
    D) The database remains opened and you have to shut it down with the ABORT option.
    E) The database can be restored till the point of the last closed whole database backup.
    noarchivelog mode , before open database i had rman backup full database;
    idle> conn / as sysdba
    Connected.
    idle> alter database open;
    Database altered.
    idle> conn anbob/anbob
    Connected.
    anbob@ANBOB> create table testdelctl(id int);
    Table created.
    anbob@ANBOB> insert into testdelctl values(999);
    1 row created.
    anbob@ANBOB> commit;
    Commit complete.
    anbob@ANBOB> conn system/oracle
    Connected.
    system@ANBOB> select * from v$controlfile;
    STATUS
    NAME
    IS_ BLOCK_SIZE FILE_SIZE_BLKS
    /oracle/oradata/anbob/control01.ctl
    NO 16384 430
    /oracle/oradata/anbob/control02.ctl
    NO 16384 430
    /oracle/oradata/anbob/control03.ctl
    NO 16384 430
    system@ANBOB> !rm /oracle/oradata/anbob/control*.ctl
    system@ANBOB> !ls /oracle/oradata/anbob/
    redo01.log redo03.log system01.dbf undotbs01.dbf users01.dbf
    redo02.log sysaux01.dbf temp01.dbf undotbs2.dbf
    system@ANBOB> select open_mode from v$database;
    select open_mode from v$database
    ERROR at line 1:
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '/oracle/oradata/anbob/control01.ctl'
    ORA-27041: unable to open file
    Linux Error: 2: No such file or directory
    Additional information: 3
    system@ANBOB> select status from v$instance;
    STATUS
    OPEN
    sys@ANBOB> conn anbob/anbob
    Connected.
    anbob@ANBOB> select * from testdelctl;
    ID
    999
    anbob@ANBOB> insert into testdelctl values(0);
    1 row created.
    anbob@ANBOB> commit;
    Commit complete.
    anbob@ANBOB> conn / as sysdba
    Connected.
    sys@ANBOB> alter systme checkpoint;
    alter systme checkpoint
    ERROR at line 1:
    ORA-00940: invalid ALTER command
    sys@ANBOB> alter system checkpoint;
    System altered.
    sys@ANBOB> select status from v$instance;
    STATUS
    OPEN
    sys@ANBOB> select * from v$version where rownum=1
    2 ;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    sys@ANBOB> shutdown immediate
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '/oracle/oradata/anbob/control01.ctl'
    ORA-27041: unable to open file
    Linux Error: 2: No such file or directory
    Additional information: 3
    sys@ANBOB> shutdown abort
    ORACLE instance shut down.
    sys@ANBOB> startup
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1218316 bytes
    Variable Size 96471284 bytes
    Database Buffers 67108864 bytes
    Redo Buffers 2973696 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    sys@ANBOB> select status from v$instance;
    STATUS
    STARTED
    [oracle@aix ~]$ rman target/
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu Jul 14 22:32:12 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: anbob (not mounted)
    RMAN> restore controlfile;
    Starting restore at 14-JUL-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 07/14/2011 22:32:27
    RMAN-06563: control file or SPFILE must be restored using FROM AUTOBACKUP
    RMAN> restore controlfile from autobackup;
    Starting restore at 14-JUL-11
    using channel ORA_DISK_1
    recovery area destination: /oracle/flash_recovery_area
    database name (or database unique name) used for search: ANBOB
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: /oracle/flash_recovery_area/ANBOB/autobackup/2011_07_14/o1_mf_s_756511643_71xy4xjm_.bkp
    channel ORA_DISK_1: control file restore from autobackup complete
    output filename=/oracle/oradata/anbob/control01.ctl
    output filename=/oracle/oradata/anbob/control02.ctl
    output filename=/oracle/oradata/anbob/control03.ctl
    Finished restore at 14-JUL-11
    RMAN> alter database open;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 07/14/2011 22:32:52
    ORA-01507: database not mounted
    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    RMAN> alter database open;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 07/14/2011 22:33:12
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    RMAN> alter database open resetlogs;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 07/14/2011 22:33:19
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/oracle/oradata/anbob/system01.dbf'
    RMAN> recover database;
    Starting recover at 14-JUL-11
    Starting implicit crosscheck backup at 14-JUL-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    Crosschecked 3 objects
    Finished implicit crosscheck backup at 14-JUL-11
    Starting implicit crosscheck copy at 14-JUL-11
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 14-JUL-11
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: /oracle/flash_recovery_area/ANBOB/autobackup/2011_07_14/o1_mf_s_756511643_71xy4xjm_.bkp
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 19 is already on disk as file /oracle/oradata/anbob/redo03.log
    archive log thread 1 sequence 20 is already on disk as file /oracle/oradata/anbob/redo01.log
    archive log filename=/oracle/oradata/anbob/redo03.log thread=1 sequence=19
    archive log filename=/oracle/oradata/anbob/redo01.log thread=1 sequence=20
    media recovery complete, elapsed time: 00:00:03
    Finished recover at 14-JUL-11
    RMAN> alter database open resetlogs;
    database opened
    RMAN> exit
    Recovery Manager complete.
    o[oracle@aix ~]$ ora
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jul 14 22:34:23 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    sys@ANBOB> !ls /oracle/oradata/anbob/
    control01.ctl control03.ctl redo02.log sysaux01.dbf temp01.dbf undotbs2.dbf
    control02.ctl redo01.log redo03.log system01.dbf undotbs01.dbf users01.dbfconn anbob
    sys@ANBOB> conn anbob
    Enter password:
    Connected.
    anbob@ANBOB> select * from tab;
    TNAME TABTYPE CLUSTERID
    TESTCHAR TABLE
    TT TABLE
    TESTTRUN TABLE
    TESTADDM TABLE
    TEST TABLE
    TESTFUNIDX TABLE
    TEAM TABLE
    MEMB TABLE
    TESTENC TABLE
    TESTREC TABLE
    BIN$p/SuvHy7sn7gQKjA9QF/dQ==$0 TABLE
    DETP TABLE
    TESTDELCTL TABLE
    DEPT TABLE
    TESTFLS TABLE
    15 rows selected.
    anbob@ANBOB> select * from testdelctl;
    ID
    999
    0
    why,loss of all controlfile,the database not abort?

    Satish Kandi wrote:
    The files, which are in use by a process, are not actually deleted when one issues rm command.
    Its only when the process terminates that the locks are released and file is actually deleted at operating system level.I concur!
    This behavior is *NIX only.
    Windows explicitly prevents open files from being deleted.
    Edited by: sb92075 on Jul 14, 2011 9:18 PM

  • Transaction commit unsuccessfully - during import of Profit center in 8.81

    Hello Experts!
    Good day! I've been trying to upload using DTW template for cost center.  During "run simulation" it was run successfully, but during actual import, the error per line is transaction commit unsuccessfully.  I have tried several date format but the only format accepted is yyyy-mm-dd.  I cannot figure out the reason for this. Kindly help me in solving this issue.
    My SAP 8.81 patch level is: 5 and my DTW version is 88.1.4.
    CenterCode     CenterName     GroupCode     InWhichDimension     EffectiveFrom     
    CenterCode     CenterName     GroupCode     InWihchDimension     EffectiveFrom     
    SV-1     FORD FIERRA/PFL-128     SV     1     2011-01-01     
    SV-4     ISUZU ELF/UJZ-630             SV     1     2011-01-01
    Regards,
    Luz A. Cornejo

    Hi Luz,
    You're already said that you could successfully upload it in Test Run mode, so I don't think you made any mistake whatsoever with date format, field mapping rules, etc. considering if you made any mistake in that regard, you will get error message even in Test Run mode.
    I'm not sure if this could help you, but I once encountered same problem like you back then few years ago, if I remember correctly in SBO 2005. The very same problem, Test Run mode success, when I wanted to upload it permanently, error. The problem is, I didn't use DTW from latest patch. You said that you use PL 5 but your DTW PL 4. Maybe you should try upgrade your DTW to PL 5? Not sure if this helps, good luck.
    Best Regards,
    Hendry Wijaya

  • Foreign Currency exchange gain & loss

    Dear expert,
    I have a problem here, need help.
    I have made the setting for foreign exchange gain/loss in OB09 and start to use f-28 for incoming payment.
    When run the simulation, it gives me 2 lines of exchange gain/loss calculation. 1st line with amount zero (local currency) and 2nd line with the gain/loss amount.
    I wonder why I have 2 lines of exchange gain/loss calculation?
    Did I did something wrong or miss some specific setting?
    Thanks in advance. will assign points

    Hi Louis,
    Please note the example below and you will understand why two line items are created:
    Local currency - USD; foreign currency - GBP
    Vendor invoice in foreign currency - 100GBP - Jan (Exchange rate: I GBP=2 USD)
    Feb - You valuated the open item (Exchange rate: 1 GBP = 3 USD) with update principle
    Entry: Unrealised exchange rate Debit 100 USD
              To Special balance sheet account Credit 100 USD
    Payment made in march where the exchange rate is 1 GBP = 3.5 USD
    Entry will be:
    Vendor debit                               200 USD
    Balance sheet account debit        100 USD
    Realised exchange rate loss debit  50 USD
    To bank                                       350 USD
    Are you getting the above entry? If so, then the above scenario will explain your predicament.
    Cheers!
    Rajesh

  • Using the Escape key in simulations and assessments

    I have recently recorded a simulation/assessment that needs to use the Escape key to close a pop-up window and returns to the main application window. The recording has not been an issue; however, using Escape with failure messages is proving to be tricky.  Here's what I have discovered while resording my sim/assess, along with my questions:
    When I press Escape, Captivate captures this keystroke as a shortcut attached to a Click Box. This works on the assessment side, but fails to produce a failure message on the assessment side when the user does not press the Escape key.
    I need to produce a failure message when the user  does not press Escape.
    Can I storethe unicode value of Escape in a TEB variable and then use an if . . . else statement to either advance to the next slide (success action) or produce a caption that mimics a failure caption?  If so, how would I write this item?
    Could I use a Loss of focus trigger instead?
    Does Captivate have a variable that records a unicode value (Something like CPKeyPressedValue"?
    Are there any other alternatives?

    In the case of buttons and clickbox objects, where clicking is allowed, the failure is normally registered when the user CLICKS OUTSIDE the button or click box.  The evaluation of Success/Fail happens on the click.
    In the case of a Text Entry Box, the interactivity is all about what the user enters into the text field and whether or not it is correct/incorrect when compared to approved answer text.  The main purpose of the TEB object is not centered on the clicking of the button that accompanies the text field.  The button just provides a way to trigger the Success/Failure evaluation of the user interaction with the text field.
    Since you have deselected Allow Mouse Click for your click box, you've effectively made it mandatory to use keystrokes to trigger the Success/Failure evaluation of the object. So clicking outside the box is no longer going to do anything because Allow Mouse Click is off.  You'll get a failure message on this click box now for many (but not all) keystrokes that are not the one assigned.
    By the way, using the Escape key as a keystroke if you Preview the project in Captivate just shuts down the preview (as you've probably already found out).

  • Different filesize after transmission with packet loss

    HI!
    I'm simulating packet loss on audio streams which are transferred over a network by using the JMF.
    I'm doing the following:
    read audio-WAVE file --> transcode into DVI for instance and sending --> generating packet loss --> transmitting over RTP to remote device --> receiving and saving in WAVE-file (linear format)
    Now I'm wondering, why the size of the WAVE file on the receiver side is lesser than the size of the file of the sender side (about the amount of created packet loss in percent ). I think they have to be the same. If I play the received files in an audioplayer, the duration is logically the same, too. For each lost packet, JMF has to put a "silence" sample within the audio stream data. So this results in the same amount of samples and WAVE-file size.
    Can someony explain me, why do the files have a different size ?
    stefan

    HI!
    I'm simulating packet loss on audio streams which are transferred over a network by using the JMF.
    I'm doing the following:
    read audio-WAVE file --> transcode into DVI for instance and sending --> generating packet loss --> transmitting over RTP to remote device --> receiving and saving in WAVE-file (linear format)
    Now I'm wondering, why the size of the WAVE file on the receiver side is lesser than the size of the file of the sender side (about the amount of created packet loss in percent ). I think they have to be the same. If I play the received files in an audioplayer, the duration is logically the same, too. For each lost packet, JMF has to put a "silence" sample within the audio stream data. So this results in the same amount of samples and WAVE-file size.
    Can someony explain me, why do the files have a different size ?
    stefan

  • Java Comm API in FreeBSD? HELP!!!

    I'm doing a project for my company that needs to access the serial port, with commAPI the thing works flawlessly under Windows XP, however big problem comes with commAPI doesn't work in FreeBSD which the company server runs on. This is what I have done so far :
    Downloaded the Linux version of comm3.0, and extracted the .so files into /usr/local/java/jre/lib/i386/ directory, the comm.jar into /usr/local/java/jre/lib/ext/ directory, and the javax.comm.properties into /usr/local/java/jre/lib/ directory. The test program compiled fine, but during running it says no port found.
    So I fumbled around and edited the javax.comm.properties file to make the serial port entry cuaa0, and now it finds the port fine, but when it tries to open the port, an error pops up like this
    Exception in thread "main" java.lang.RuntimeException:
    Error opening "/dev/cuaa0"
    lockf(): Invalid argument
    at com.sun.comm.LinuxDriver.getCommPort(LinuxDriver.java:66)
    at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:369)
    at nulltest.<init>(nulltest.java:133)
    at nulltest.main(nulltest.java:76)
    It seems the getCommPort method calls a lockf() function with an invalid argument? Now I'm at a loss of what to do, anyone has any idea how can this be fixed? Thanks!

    It appears there are a number of ports of comm
    packages to FreeBSD, see the referenced page. RXTX is
    one that works well in other environments.
    http://www.freebsdsoftware.org/comms/
    I tried java-commapi-freebsd, but it also reports an error when opening the port
    FreebsdSerial: UnsatisfiedLinkError = /usr/local/java/jre/lib/i386/libSerial.so: /usr/local/java/jre/lib/i386/libSerial.so: ELF file OS ABI invalid
    java.lang.UnsatisfiedLinkError: /usr/local/java/jre/lib/i386/libSerial.so: /usr/local/java/jre/lib/i386/libSerial.so: ELF file OS ABI invalid
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at org.freebsd.io.comm.FreebsdSerial.<clinit>(FreebsdSerial.java:85)
    at org.freebsd.io.comm.FreebsdDriver.getCommPort(FreebsdDriver.java:114)
    at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634)
    at ATTest2.main(ATTest2.java:27)
    Exception in thread "main" java.lang.UnsatisfiedLinkError: deviceOpen
    at org.freebsd.io.comm.FreebsdSerial.deviceOpen(Native Method)
    at org.freebsd.io.comm.FreebsdSerial.<init>(FreebsdSerial.java:115)
    at org.freebsd.io.comm.FreebsdDriver.getCommPort(FreebsdDriver.java:114)
    at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634)
    at ATTest2.main(ATTest2.java:27)And then I tried RXTX, but it seems that tere's some problem to send the cartridge return character, so I can't send the AT commands properly to get any response. I tried \r \r\n \x0d etc. to no avail. Any idea what's the problem with the java-commapi-freebsd thing, or how to send the AT commands properly with RXTX? Thanks a lot!

  • Avoid Commit after every Insert that requires a SELECT

    Hi everybody,
    Here is the problem:
    I have a table of generator alarms which is populated daily. On daily basis there are approximately 50,000 rows to be inserted in it.
    Currently i have one month's data in it ... Approximately 900,000 rows.
    here goes the main problem.
    before each insert command, whole table is checked if the record does not exist already. Two columns "SiteName" and "OccuranceDate" are checked... this means, these two columns are making a unique record when checked together with an AND operation in WHERE clause.
    we have also implemented partition on this table. and it is basically partitioned on the basis of OccuranceDate and each partition has 5 days' data.
    say
    01-Jun to 06 Jun
    07-Jun to 11 Jun
    12-Jun to 16 Jun
    and so on
    26-Jun to 30 Jun
    NOW:
    we have a commit command within the insertion loop, and the each row is committed once inserted, making approximately 50,000 commits daily.
    Question:
    Can we commit data after say each 500 inserted rows, but my real question is can we Query the records using SELECT which are Just Inserted but not yet committed ?
    a friend told me that, you can query the records which are inserted in the same connection session but not yet committed.
    Can any one help ?
    Sorry for the long question but it was to make u understand the real issue. :(
    Khalid Mehmood Awan
    khalidmehmoodawan @ gmail.com
    Edited by: user5394434 on Jun 30, 2009 11:28 PM

    Don't worry about it - I just said that because the experts over there will help you much better. If you post your code details there they will give suggestions on optimizing it.
    Doing a SELECT between every INSERT doesn't seem very natural to me, but it all depends on the details of your code.
    Also, not committing on time may cause loss of the uncommitted changes. Depending on how critical the data is and the dependency of the changes, you have to commit after every INSERT, in between, or at the end.
    Regards,
    K.

  • Comma Separated Tags from BLT?

    Was reading the help documentation and noticed that there is a way to pass in comma separated tags to a query template:
    TagName
    One or more tag names to be queried
    String Or String List
    None
    The name of a tag in the underlying data source.  This parameter can be repeated multiple times in a URL if multiple tags are to be queried, and multiple tags can be passed in a single parameter as a comma-separated list of tag names.
    I tried this from a BLT and it didn't work. What is the trick to get this to work? I have about 50 tags to query and I dont want to hard code the mappings and I would rather not fire 50 individual queries. 
    Any thoughts?

    Brian,
    You can't do it from an APPLET perspective or a standard TagQuery action block in BLS because of the explicit TagName.1 to TagName.128 query properties.  The TagName property you found in the help only works for a direct query to the Illuminator servlet such as:  http://<server:port>/Lighthammer/Illuminator?Server=Simulator&Mode=Current&TagName=L1Speed,L1Yield,AssetUtil1
    If you need to wrap this functionality inside BLS or simply want to use it in an applet, then drop something like this into an XMLQuery template:
    http://localhost/Lighthammer/Illuminator?QueryTemplate=Path/File&StartDate=[SD]&EndDate=[ED]&TagName=[Param.1]&Content-Type=text/xml
    Assumptions would then be that you can bundle your data server and mode information in the query template (or you can keep them explicit with Server and Mode like in the first example and [Param.x] the right side of the equal sign to allow for simple Current/History/HistoryEvent changes).  The [SD] and [ED] tokens will make the XMLQuery known to be time sensitive to an iChart so the default 60 minutes, etc. will go into the http request and give you the convenient VCR controls in the time control bar.
    Regards,
    Jeremy

  • CRM 2007 Upgrade - Std Comm. Method not visible in "More Fields"

    Hi Gurus
    We recently upgraded from CRM 5.0 to CRM 2007.
    I'm verifying the Identify Account views, when I compare the "More Fields" view between CRM 5.0 and CRM 2007, the "Std Comm. Method field is not there.
    I though I could add this via configuration mode but the only Comm Method field I can find does not have a drop down list associated with it which doesn't make sense.
    Has anyone else had this same issue and how resolved.
    Many Thanks
    Panduranga

    The Comm Type field is supplied but without a drop down list as it did in CRM 5.0
    We have to modify the field to include the drop down.
    A loss in Standard Functionality!!!

Maybe you are looking for