buffer of greedy or what?

Hello, world, I have a problem, try to generate a block diagram to send a certain value of the tension of a servovalve using labview, got everything connected and output voltage is allowed to judge by the MAX of NOR, but when I run the vi it says I have a too small buffer size - error 200609. the problem could be solved, but unfortunately I've solved once, and I don't know why, it is still small. I enclose the .vi I, to make things clear - I put the tension with the wheel and send it to the servovalve

p.s. I even put the size of the buffer at 5 million and does not always work, help me please

If you want to just update the value of the output based on the value of your button, I don't know that the use of material and setting timing buffered is the way to go.  I recommend just to start your work, and a single sample of writing each time your loop iterates.  I modified your VI as such.

Hope that helps,
Dan

Tags: NI Hardware

Similar Questions

  • I tried to install the drivers for my webcam but Remover.exe fails with buffer overflow error. What now?

    Name of the webcam: trust hires Live WB - 3320 X Webcam

    I tried to install the drivers provided on the CD for my trust hiring Live WB-3320 X Webcam, but Remover.exe fails: http://i.imgur.com/vGIHX.png

    Hello

    I suggest you try the method mentioned below and check if it helps:

    1 copy the files from the CD and paste it on the desktop.

    2. right click on the Setup.exe and click Run as administrator.

    Install the driver for the Webcam on your computer by the steps listed above and let us know.

    Download drivers

    http://www.trust.com/products/productdrivers.aspx?ArtNr=15354

    Hope this information is useful.

  • Error-200609 occurred in the DAQmx write: selected buffer too small

    Hello, I write a few VI simple test that I will build finally to call external analogue output VI. I started with a very simple program to produce samples finished using the clock on board with DAQmx Timing.VI. When I run the program, I almost immediately get an error. The error message is below.

    Error-200609 occurred at writing DAQmx (Analog DBL 1Chan 1Samp) .vi:1

    Possible reasons:

    Generation cannot be started because the size of the selected buffer is too small.

    Increase the size of the buffer.

    Contradictory property
    Property: Output.BufSize
    Corresponding value: 1
    Minimum supported value: 2

    Task name: _unnamedTask<1C>

    I used the VI DAQmx before in similar applications and never encountered this error. In addition, I read the link below which DAQmx Timing.VI should automatically generate the buffer. Any ideas what could be the cause?

    Data sheet:

    Windows 7

    LabVIEW 2012

    PCIe-6353 as DAQ card

    Here is a picture of my diagram and the VI is attached.

    Oops. Just realized my very stupid mistake: I forgot to add the VI of task start. I did and it works as expected.

  • I have a pad writing box open on my screen and I can't get rid of it. What should I do?

    I recently opened a box buffer writing just to see what it was. I was able to move to the left side of my screen, it did not show. Now it's on my screen and I can't move it out of the screen. I can't find a way to remove this feature. What should I do?

    Hello


    1. what operating system is installed on the computer?
    2. What do you mean by writing box buffer?
    3. What is the brand and model of the computer?
     
    Go to Task Manager and then kill the application
     

    Reply with answers to help you in a better way.
  • Service console uses what memory?

    When I connect to the service console, I see that 700 of the 800 MB of memory is used when I run the "free-m. If I do a top or a ps - to, it's not really all that consumes a lot of memory (other than the workers spend - 12%). Is there a way to determine which uses as much memory? 700 MB seems higher it works normally.

    Thank you

    Scott

    It is a common conception of GIS-ism/Linux.

    The system uses 661 MB of memory.  However, only 170 MB is used for applications.  Linux is actively using any otherwise unused memory for caching of file system, which is what you see here under "buffer" and "cache."  To the point that an application requests more memory, Linux will reduce the size of buffer and cache and give him more.  Here is a similar explanation: http://www.linuxatemyram.com/

    So if you want to monitor the memory usage, you must monitor (USED - BUFFER - CACHE), which is what gives you this second line.  So realistic, your system uses 170 MB for real applications and the RST for implementing caching file system.

  • REDO LOG BUFFER DOUBT

    Hi EXPERTS,

    IM on 11 G R2, RHEL 5 my question that when the data changes in the database buffer cache how immediately it is copied in the redo log buffer. I mean what process the copy. I read it in the oracle documentation only when waiting for event [log file command (private stream flush incomplete)] LGWR waits DBWR again complete flushing of buffers IMU in the recovery log buffer. Completion of DBWR LGWR can then finish writing the log in process and then move the log files.
  • Copies of unexpected CR in the buffer cache

    Hello

    While trying to understand the mechanisms of the Oracle buffer cache, I ran a little experiment and observed an unexpected result. I believe that my expectation was wrong, and I would be so grateful, if someone could explain to me what I misunderstood.
    From what I understand, a copy of coherent reading (CR) of a buffer in the cache is created, when the old content of a buffer to be read, for example to ignore changes made by a transaction not yet committed when you query a table. I also thought, that copies of CR in the buffer cache can be reused by subsequent queries requiring a roll back image of the corresponding block.

    Now, I ran the following experiment on a DB of 10.2 or slowed down.
    1. I create a BC_TEST table (in a non-SAMS tablespace)
    -> V$ BH shows an A buffer with XCUR status for this table - V$ BH. COURSE number is 4, which indicates a segment according to various sources on the internet header.
    2 session 1 inserts a row into the table (and not valid)
    -> Now V$ BH shows 8 pads with XCUR status attached to the BC_TEST table. I think it's the blocks of a certain extent be allocated to the table (I expected as a block of data to load into the cache in addition to the header that was already there in step 1). There are still buffers with CLASS A # = 4 of step 1, a buffer B with XCUR and CLASS status # = 1, which indicates a block of data, according to various sources on the internet, and other 6 blocks with FREE status and CLASS # = 14 (this value is decoded differently in different sources on the internet).
    3 session 2 emits a ' select * from bc_test ".
    -> V$ BH shows 2 extra buffers with CR and the same FILE status #/ BLOCK # as buffer B in step 2. I understand that it compatible read copy needs to be done to undo the uncommitted changes in step 2 - However, I do not understand why * 2 * these copies are created.
    Note: with a slight variation of the experience, if I don't "select * from bc_test" in Session 2 between step 1 and 2, and then then I only get CR 1 copy in step 3 (I expect).
    4 session 2 issues "select * from bc_test"new"
    -> V$ BH presents yet another extra stamp with CR and the same FILE status #/ BLOCK # as buffer B step 2 (i.e. 3 these buffers in total). Here I don't understand, why the request cannot reuse the CR copy already created in step 3 (which already shows B buffer without changes to the transaction not posted in step 2).
    5 session 2 questions repeatedly ' select * from bc_test "new"
    --> The number of buffers with CR and the same FILE status #/ BLOCK # as buffer B step 2 increases by one with each additional request up to a total of 5. After that, the number of these buffers remains constant after additional queries. However various session statistics 2 ("consistent gets", "Blocks created CR", "the consistent changes", "data blocks consistent reads - undo records applied," "no work - gets consistent reading") suggests, that session 2 continues to generate copies of current reading with each "select * of bc_test" (are the buffers in the buffer cache may simply be reused from there on?).



    To summarize, I have the following question:
    (I) why the insertion of a single line (in step 2) load 8 blocks in the buffer cache - and what does the CLASS # = 14 indicate?
    (II) why the first select statement on the table (step 3) creates 2 copies of CR (use single) data block of the table (instead of one as I expect)?
    (III)) why other issues create copies of CR of this block of data that is unique (instead of reusing the copy created by the first select statement CR)?
    (IV) which limits the number of CR created copies to 5 (is there some parameter checking this value, it is according to some sizing of the cache or is it simply hard-coded)?
    (V) what exactly triggers the creation of a copy of CR of a buffer in the buffer cache?

    Thank you very much for any answer
    Kind regards
    Martin

    P.S. Please find below the Protocol of my experience

    --------------------------------------------------
    Control session
    --------------------------------------------------
    SQL > drop table bc_test;

    Deleted table.

    SQL > create table bc_test (collar number (9)) tablespace local01;

    Table created.

    SQL > SELECT bh.file #, bh.block #, bh.class #, bh.status, bh.dirty, bh.temp, bh.ping, bh.stale, bh.direct, bh.new
    2 from V$ BH bh
    3, o dba_objects
    4. WHERE bh. OBJD = o.data_object_id
    5 and o.object_name = 'BC_TEST. '
    6 order of bh.block #;

    FOLDER # BLOCK # CLASS # STATUS D T P S D N
    5 209 4 xcur O N N N N N


    --------------------------------------------------
    Session 1
    --------------------------------------------------
    SQL > insert into bc_test values (1);

    1 line of creation.

    --------------------------------------------------
    Control session
    --------------------------------------------------

    SQL > /.

    FOLDER # BLOCK # CLASS # STATUS D T P S D N
    5 209 4 xcur O N N N N N
    5 210 1 xcur O N N N N N
    5 211 14 free N N N N N N
    5 212 14 free N N N N N N
    5 213 14 free N N N N N N
    5 214 14 free N N N N N N
    5 215 14 free N N N N N N
    5 216 14 free N N N N N N

    8 selected lines.

    --------------------------------------------------
    Session 2
    --------------------------------------------------

    SQL > select * from bc_test;

    no selected line


    Statistics
    ----------------------------------------------------------
    28 recursive calls
    0 db block Gets
    Gets 13 coherent
    0 physical reads
    size of roll forward 172
    272 bytes sent via SQL * Net to client
    374 bytes received via SQL * Net from client
    1 SQL * Net back and forth to and from the client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed

    --------------------------------------------------
    Control session
    --------------------------------------------------
    SQL > /.

    FOLDER # BLOCK # CLASS # STATUS D T P S D N
    5 209 4 xcur N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 xcur N N N N N N
    5 211 14 free N N N N N N
    5 212 14 free N N N N N N
    5 213 14 free N N N N N N
    5 214 14 free N N N N N N

    8 selected lines.

    --------------------------------------------------
    Session 2
    --------------------------------------------------
    SQL > /.

    no selected line


    Statistics
    ----------------------------------------------------------
    0 recursive calls
    0 db block Gets
    Gets 5 in accordance
    0 physical reads
    size of roll forward 108
    272 bytes sent via SQL * Net to client
    374 bytes received via SQL * Net from client
    1 SQL * Net back and forth to and from the client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed

    SQL >

    --------------------------------------------------
    Control session
    --------------------------------------------------
    SQL > /.

    FOLDER # BLOCK # CLASS # STATUS D T P S D N
    5 209 4 xcur N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 xcur O N N N N N
    5 211 14 free N N N N N N
    5 213 14 free N N N N N N
    5 214 14 free N N N N N N

    8 selected lines.

    SQL >


    --------------------------------------------------
    Session 2
    --------------------------------------------------
    SQL > select * from bc_test;

    no selected line


    Statistics
    ----------------------------------------------------------
    0 recursive calls
    0 db block Gets
    Gets 5 in accordance
    0 physical reads
    size of roll forward 108
    272 bytes sent via SQL * Net to client
    374 bytes received via SQL * Net from client
    1 SQL * Net back and forth to and from the client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed

    SQL >

    --------------------------------------------------
    Control session
    --------------------------------------------------
    SQL > /.

    FOLDER # BLOCK # CLASS # STATUS D T P S D N
    5 209 4 xcur N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 xcur O N N N N N
    5 211 14 free N N N N N N
    5 213 14 free N N N N N N

    8 selected lines.

    --------------------------------------------------
    Session 2
    --------------------------------------------------
    SQL > select * from bc_test;

    no selected line


    Statistics
    ----------------------------------------------------------
    0 recursive calls
    0 db block Gets
    Gets 5 in accordance
    0 physical reads
    size of roll forward 108
    272 bytes sent via SQL * Net to client
    374 bytes received via SQL * Net from client
    1 SQL * Net back and forth to and from the client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed

    --------------------------------------------------
    Control session
    --------------------------------------------------
    SQL > /.

    FOLDER # BLOCK # CLASS # STATUS D T P S D N
    5 209 4 xcur N N N N N N
    5 210 1 xcur O N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 211 14 free N N N N N N
    5 213 14 free N N N N N N

    9 selected lines.

    --------------------------------------------------
    Session 2
    --------------------------------------------------
    SQL > select * from bc_test;

    no selected line


    Statistics
    ----------------------------------------------------------
    0 recursive calls
    0 db block Gets
    Gets 5 in accordance
    0 physical reads
    size of roll forward 108
    272 bytes sent via SQL * Net to client
    374 bytes received via SQL * Net from client
    1 SQL * Net back and forth to and from the client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed

    SQL >

    --------------------------------------------------
    Control session
    --------------------------------------------------
    SQL > /.

    FOLDER # BLOCK # CLASS # STATUS D T P S D N
    5 209 4 xcur N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 xcur O N N N N N

    7 selected lines.

    --------------------------------------------------
    Session 2
    --------------------------------------------------
    SQL > /.

    no selected line


    Statistics
    ----------------------------------------------------------
    0 recursive calls
    0 db block Gets
    Gets 5 in accordance
    0 physical reads
    size of roll forward 108
    272 bytes sent via SQL * Net to client
    374 bytes received via SQL * Net from client
    1 SQL * Net back and forth to and from the client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed

    SQL >

    --------------------------------------------------
    Control session
    --------------------------------------------------
    SQL > /.

    FOLDER # BLOCK # CLASS # STATUS D T P S D N
    5 209 4 xcur N N N N N N
    5 210 1 xcur O N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N
    5 210 1 cr N N N N N N

    7 selected lines.

    What version of 10.2, on what platform, and enabled to RAC? What exactly was the tablespace definition?

    (I) why the insertion of a single line (in step 2) load 8 blocks in the buffer cache - and what does the CLASS # = 14 indicate?

    It sounds like you may have formatted all of the first measure - assuming that you use 8 KB blocks and allocated system extended. But it didn't happen when I checked 10.2.0.3 on a version of the single instance of the Oracle.

    Class 14 is interpreted as "unused" in all versions of Oracle that I saw. This would be consistent with the formatting, but it bringing is not below the high water mark. You could ' alter system dump datafile N block min X block max Y' for the segment header block, the block used and unused block in the discharge.

    (II) why the first select statement on the table (step 3) creates 2 copies of CR (use single) data block of the table (instead of one as I expect)?

    Maybe because the first copy clean uncommitted transactions and clones of the second copy of the result to return to a given SNA - but that's just a guess, I had not noticed this behavior before, so I have to do some experiments to find out why it's happening.

    (III)) why other issues create copies of CR of this block of data that is unique (instead of reusing the copy created by the first select statement CR)?

    The first block of CR you create includes a moment earlier that the beginning of the second query, so your session must start from the current. If you have set the isolation level to fix SNA session (for example, "set transaction read only") before the first application, in my view, you would see that the copies of CR will not increase after the initial creation.

    (IV) which limits the number of CR created copies to 5 (is there some parameter checking this value, what is according to some sizing of the cache or is simply badly coded)?

    Hidden parameter Dbblock_max_cr_dba which, by default, is 6. The code still does not seem to obey this limit, but generally you will see only 6 copies of a block in the buffer.

    (V) what exactly triggers the creation of a copy of CR of a buffer in the buffer cache?

    There are at least two options - (a) a session needs to see a copy of a block with recent changes removed, either because they are uncommitted transactions, the session needs to see the block he was when he started to run a particular query or transaction, (b) a session changed a block when he gets hold of the current version - and in certain circumstances (possibly when the update is through a analysis), it will make a copy of the block, mark the previous CR copy, mark the new copy as xcur, and change the copy.

    Incidentally, xcur is a RAC status - it is possible to have blocks in the buffer which are xcur, but not "obtained in current mode.

    Concerning
    Jonathan Lewis

  • SP2-0103: nothing in the SQL buffer to run.

    HI I have a simple procedure in my oracle 11g database which is like follows.i call this procedure from a shell script and I'm trying to redirect this dbmsoutput to a log file in the unix shell script.
    but after that the script runs when I chat log file, it says SP2-0103: nothing in the SQL buffer to run. What is the dbmsoutput not redirected to the log file?

    procedure
    CREATE OR REPLACE procedure display_line as 
    begin 
    dbms_output.put_line(' this is displayed in output file');
    end;
    /
    Unix script
    sqlplus -s scott/tiger@ORCL<<!>>$PWD/abc.log
    set server output on
    spool $PWD/abc.log
    exec display_line
    /
    spool off
    
    !
    Concerning
    REDA

    exec display_line; itself turns into

    BEGIN
       display_line;
    END;
    /
    

    You don't need a ' / ' at the end again.

    In addition, it seems that sqlplus does not record the history of previous orders, when you use the keyword EXEC.
    If you use the start... Keywords of the end, the previous block/statement executed is saved and run when we do a ' / '. Check this session below. I don't know why that is.

    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> set serveroutput on;
    SQL> exec dbms_output.put_line('hello...');
    hello...
    
    PL/SQL procedure successfully completed.
    
    SQL> /
    SP2-0103: Nothing in SQL buffer to run.
    SQL> begin
      2    dbms_output.put_line('hello...');
      3  end;
      4  /
    hello...
    
    PL/SQL procedure successfully completed.
    
    SQL> /
    hello...
    
    PL/SQL procedure successfully completed.
    
    SQL> exec dbms_output.put_line('Hello..How are you? ');
    Hello..How are you?
    
    PL/SQL procedure successfully completed.
    
    SQL> /
    hello...
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • Several problems with Satellite L40 - 18W

    My Dungeon movies on jump images and sound.
    1. this happens usually when I use Kmplayer, when I use VLC, it's fine, but sometimes even with VLC the problem remains.
    The film works very well on an Acer Aspire 4315 with even the Kmplayer.
    It's driving me crazy!
    I tested the video memory, motherboard, CPU, Ram and so on. Everything is fine! Just peachy!
    I even had a BIOS update 3 days ago the same problem!
    I use XP SP 2 uualy, now I use Win7, the problem is the same! I just can't understand it!

    2. two weeks the Toshiba would ' t boot, he keept restarting. When I tried to do a clean install, this allowed me to run the installer until the installation XP partion apeared. It didn't matter what I would press on install, delete, Format, etc. The result was the same, he kept always restarted at this point.
    I managed to locate the problem, the second location of the ram, but the RAM was ok. But eveytime that slot ocupied, kept restarting the laptop.
    With just a RAM, in the first place, the laptop was fine.
    Eventualy I did a BIOS update, and it seems it's ok. But still... what the hell?

    3 and the temperature of the Cpu on the "idle" mode is another about 70 every time. And no there is no dust in the cooling module, yes the fan works and yes I use event buffer external coolig. What is the right temperature? Normal?

    Post edited by: menssana1984

    # Kmplayer is unknown to me and I use VLC or Windows media player. I put t know what films you watch (DVD file or avi) and why this happens. It is not easy to discuss the problems that sometimes occur. Maybe an application runs in the background and when HARD drive is busy with something like this can happen.
    # More important, is that everything is OK now. :)
    # The CPU temperature is certainly not politically risky or critical. You can try to exchange the thermal grease, but be careful with this. Is Toshiba using own fat and you need to know how much should be placed here (usually 0.25 ml). I hope you know what you're doing.

  • Two PC on the lan connection problem

    I wanted to connect two PCs using lan via the TCP protocol. I run a simple customer data and simple data on my PC server. But when I opened the single database server on my PC and the client of simple data on the other PC then error 63 I think it's error.tell buffer overflow series me what I'll do. is it necessary to configure listening TCP by double clicking it and give it some values? I am new to networking so can not debug the error.plz tell me what to do? Also should what changes I to VI Server? Which port number should I enter?


  • RT COM4

    All,

    When you use the virtual com COM4 on a RT system port:

    1. can I send data to the RT via this port?

    2 is this port for playback only?

    I can see the boot data so I know that I speak of the RT.

    Thank you

    Hi Carmine,

    Yes, that's to be expected. The virtual COM port allows to receive also the real-time system debugging strings as well. You can use the "RT Debug String.vi' to write messages on the virtual COM interface.

    The reason for which you can provide only one entry to this console is because the underlying operating system in time real (Pharlap in this case), does not have the ability to input because it is pilot of the series, and he finds that virtual COM interface is owned by the kernel Pharlap. To summarize, Pharlap based real-time systems never try to read any input on the console serial interfaces.

    Overall, you can use the interface to virtual COM to the party real time status updates and might find particularly useful for debugging your application (if applicable).

    A flat note on the "RT Debug String.vi" is that it is not empty not until he meets a new line or until its buffer is full. What wants to say that if you want a status on the virtual console for each iteration of the loop, you'll want to concatenate a new line character to the string in the Debug String VI RT entry. Otherwise, you will see nothing for the number of iterations, followed by a large output on the virtual console (after filling the buffer).

  • Synchronous Digital and analog I/O daqmx

    I have 2 PCI - 6254 s in a linux machine and I am trying to sync the analog input (ai0:1) with the incoming digital data (port0) data.  I fed a sample

    clock to Dev1/PFI0.  (I currently use a little the e/s from one of the boards installed) Somehow, I can't align the analog and digital data.  I know because I use digital data to reverse the polarity of the analogue data still incoming digital data (print buffer) are correlated with what is happening in the name of the analog data.

    If I use the AI/sampleClock internal as the common Terminal analog and digital data seems functional and are repeatable.

    Thanks in advance for your suggestions.

    The problem is that the two tasks are not guaranteed to start at the same time because they are not sharing a common start trigger.  In other words, there will probably be a nondeterministic number of samples of phase difference between the two acquisitions.  Unfortunately, the digital I/o on this forum does not support any which trigger feature you can not use just a common starting trigger.  Probably the best thing to do in light of what you have described so far is to use PFI0 as the AI sample clock and change the clock for your digital/Dev1/I/SampleClock task.  You must then make sure you start your digital task before the task to HAVE it.  This should actually slave of your digital clock to the clock of the analog task and actually start both at the same time.  Given that each task physically uses a different signal than its clock (PFI0 vs an exported version of AI/SampleClock), there will be a small amount of latency between the two.  However, this should be the order of tens of microseconds, so I do not have a significant impact.  Also, as the digital task is actually controlled by the clock of the analog task, it will actually start and stop the analog task you called stop task on the digital task.  I hope that this will not be a problem for your application.

  • Synchronize subvis SMU and DAQ

    Hello

    I am trying to build a VI in which a DAQ 6368 outputs an arbitrary function, and a bed SMU4141 the trace underway, each sample to ~ 10 kHz. I want that the acquisition of data to read it's own output voltage at the same time. In this way, I get a trace of tension of the acquisition, data and track being SMU allowing me to make curves of IV. I want the voltage and current traces having the same number of data points and on/off switch at the same time.

    Now I think that my VI is too complicated - I separate subvis for DAQ and EMS equipment, and I'm trying to use triggers to synchronize their departures.

    Can someone help me along here? I use the right architecture still do this? I have attached a few screenshots of my attempt to trigger and the VI total.

    In classic mode, I was able to solve my problems as soon as I made them public.

    Basically, I have my DAQ output buffer manually the value 0 (required for PID loops). THE DAQ acts as a 'master', and it sends the trigger "/ XDAQ_1/AI/StartTrigger", which is read by the trigger measure SMU. Also, I realized that I had to make the largest buffer for THE DAQ (what that standard OR buffer table is). Finally, the PI/synchronization loop works best if the PI is 0,5 s as opposed to 1 s - more rapid turnover of data and less buffering, I guess.

  • Convert uint8 hexagonal table in reverse order double, uint16, channel, etc

    I get back an array of uint8 size 4 from a buffer that happens to what follows:

    C4 e5 d7 (hexadecimal) ed

    and need to convert it so that it reads:

    d7e5edc4 (hex)

    3622170052 (decimal)

    I know it can be done in a loop using some<'s or="" something. ="" i="" can't="" remember="" all="" this="" low="" level="" stuff="" so="" help="" would="" be="" greatly="" appreciated. ="" i="" can="" rearrange="" the="" initial="" data="" array,="" but="" not="" sure="" how="" to="" convert="" to="" decimal="" number. ="" i="" assume="" a="" simple="" for="" loop="" starting="" at="" the="" end="" would="" be="" the="" easiest="" way="" to="">

    PS on this subject, where is a good place which explains all the uses of < or=""> > or ^ = etc.

    Thank you

    I happened to use this routine in the past to accomplish a task like yours:

    string to unsigned char [5];

    int number;

    String [0] = 0xc4;

    String [1] = 0xed;

    String [2] = 0xe5;

    String [3] = 0xd7;

    String [4] = 0x0;    string terminator

    number = (string) conv_dword_to_int;

    int conv_dword_to_int (unsigned char * buf)
    {
    Return ((*(buf + 3))< 24) ="">
    ((* (buf + 2))< 16) ="">
    ((*(buf + 1))< 8)="">
    ((* buf + 0));
    }

  • Series read, store queue and time-evenly continues treatment, but the data is mixed now

    Hello, all,.

    I send MCU APR data to the PC via a serial interface, 16bytes each time interval of 50 ms, if I donot use queue, the data read visa are the same as sent. But reading and in turn within a while loop is not time efficiently as the multiple loops with queue processing.

    I have a byte (0 x 55) as the first byte of the data transmission, with multiple with queue loops, but now the 0 x 55 position is changed all the time, and most probably present at the 8th byte data.

    Thanks for any help.

    Ted

    Houde, dai wrote:
    [...]

    The data received with VISA read are unstable even without connection to the other party, as the screenshot displayed. [...]

    With best wishes,

    Ted

    Ted,

    What do you mean by 'unstable '? And I saw that in your simple loop VI, you are always empty the buffer after each reading, what you don't do in the loop number VI. Maybe it's the origin of the problem.

    However, IF the rinse, the root cause is not VI, but your connection (or the equivalent of your program). Since removes VISA Read already the amount of reading of data from the buffer, the data must be resent / captured again in the buffer...

    hope this helps,

    Norbert

Maybe you are looking for

  • Can I remove profiles that are not in the Bishop profile?

    When I run the Profile Manager only two profiles appear. One is the default value and the other is the current.When I look in the C:\users\[name]\appdata\roaming\mozilla\firefox\profiles directory, there are six listed profiles:http://www.zobbel.de/c

  • machine virtual Java and jdk 1.4.2

    page of the Bank not opening not n, it is in error that your browser have not java. your browser is used in Samsung tab 2. with android 4.3

  • Double Sided Printing with HP 8550GN

    I have a question, I have two printers laserjet 8550 and I would like to use them for print pages double sided.  When I try to send a print job to the 8550 printer it tells me that I have manually pass the second side.  I thought that the 8550 printe

  • Questions to fill two AIR-BR1310Gs

    I configured two 1310 s according to the guidelines of this (http://cisco.com/en/US/tech/tk722/tk809/technologies_configuration_example09186a008058f53e.shtml). The association seems to have occurred (the two APs say in their log book), but now I am u

  • frame the values in quotes

    HelloI want to include the values separated by commas in quotationsWITH STR AS (SELECT ' GPCD, USP, OCMG, WMGF, WNID, WNEF, INY, INMS, IPAD, ITX, NIJ, CFMD, WHO, WTO, OCTD, MY, XLHD, SAL, XOK XMIR' MODEL OF DOUBLE)SELECT THE MODEL OF STRI want to oup