Logging and analog data RS232

Hi guys,.

I try to save my RS232 instrument data and also include a couple of analog inputs.

The vi works 'ok', but not exceptional.  First, the frequency on the daq assistant must be placed very high to see a resonable on the screen refresh rate.   Second, the synchronization time is disabled on the data being saved rs232 (node of unbundling) and the analog inputs.

I like the wizard daq and writing table vi only because they are simple to implement.  Not too familiar with other methods.

Any thoughts on how to make these 2 numbers (and a few others) better?

Formatting of the front face is still be tweaked. See attachment.

It's an instrument driver updated the vi and vi instrument driver library.  I hope this works for you guys.  Thanks for the help.

Thank you

Darren

In the Point.vi of the value, there is a Subvi, called ReadSerialBuffer.  He reads port 1 byte at a time until he receives nothing or the carriage return character.  Then the loop ends and clears the buffer.

First of all, it shouldn't be necessary to clean the pads because you read essentially until the buffer must be empty.  It may take some time for VISA really clear stamps.  Since it is something that Hyperterminal certainly doesn't, it could be an explanation for the moment apparently longer.

It seems that you have the stop character in your INIT vi, but it is set to a default character of line jump.  Reading your ReadSerialBuffer vi is until you get a carriage return character.  It would be wiser to set your stop for the carriage return character, and then read quite a number of bytes.  It will be automatically terminated on the carriage return.  It would be much more effective, and then read one byte at the time and no loop would be necessary.

Tags: NI Software

Similar Questions

  • Sync video and analog data on the same GUI

    I am programming a request that will be followed and video recording IMAQ and given DAQ.  Is there a way to synchornize data during the processing of data on a GUI Viewer displaying the message?  I'm looking to start the video as if it were alive, and have the data displayed on a graph as if we were saving the data of this video.  A simple shared timestamp will work?

    How about tiara?  I have seen no support for files video tiara...

    eatherton says:

    How about tiara?  I have seen no support for files video tiara...

    Of course Diadem supports video files

    -Pre version 10.0: use Clip DIAdem.  See the knowledge base synchronization of data with video clip DIAdem.

    -Version 10.0 or higher: see the example "Video and data synchronization" (located in the finder DIAdem example under "Display and modification of the data")

  • Acquire analog data entry triggered by the great time and low time of a pulse meter

    Hi all

    I'm writing a VI in labview 8.1 version to test the sensors. The power supply of the sensor is pulsed and I need to get a value when turned on the power of the sensor and the power of the sensor is turned OFF (measure Max voltage when the current flows through the circuit and voltage min when no current flows through). My cycle is like ON 2 seconds for 8 seconds.

    And I want to acquire a reading in each of those States permanently. I am able to use a pulse meter to make the pulse but how can I tie this with the recording of data, then you can be sure that I log into a data point in the State ONE and the other to the OFF state?

    Thank you

    SJ

    Acquire the pulses of the meter on a different path to analog input.  When it is high your sensor is activated.

    Lynn

  • analog and digital data synchronization

    Hi all

    I would like to help with what I seek to accomplish, if you don't mind much.

    I'm trying to synchronize the acquisition of analog and digital modes using a common trigger that launches both types of data collection at the same time. What I've done so far, is wasting his time trying different combinations to gather examples of LabVIEW 2011 on the synchronization of data - namely the 'Multi-multifunction-Synch AI lu Dig Chan.vi' and 'Multi-Device Synch-Analog Input-Finite Acq-Analog Start.vi.

    I tried to combine the two, because one contains digital and analog, the other contains the trigger for multiple tasks.

    I guess I should place the trigger (either digital or analog-eventually I will want to choose) then call the "Get Terminal name with device Prefix.vi. But from there I'm not sure wheter to connect the name of the terminal of the sample clock digital channel or a digital leading edge of the digital chain trigger.

    Also, the way it is wired now I get errors at the local terminal name, so I don't know exactly where this terminal must come from.

    I try my best, I could use a little help, I have attached my attempt with the examples that I speak to you.

    Thank you.

    Hi beefcake.

    The CtrInternalOutput internal output line is used as sample for your digital output sample clock source clock. If you change the settings for your CO Pulse Time is Dev1 and your digital output is Dev2, you will notice that the name of the product terminal would give Dev2/CtrInternalOutput. So what you get here, it's as well as the digital output device sees his sample clock, instead of the clock itself.

    If you just want to use a digital/analog input as your trigger, you should do something more as in the example above. Do you use multiple devices, or are all your lines on the same device? This example is more complicated because it is synchronization of signals on several devices.

    Looking at how this VI is wired, you can see that the digital signal triggers the analog signal. You want the analogue signal must be started first, so that when the digital signal triggers the analog task is already running and can trigger immediately. If the digital task started first, it can trigger until the similar task had started, and they do not exactly trigger at the same time.

    I hope that clarifies things. Kind regards

  • acquisition and recording of analog data with producer consumer model

    Someone on this forum, in a separate last week discussion, suggested that I use the producer model consumer data acq.  My ultimate goal is to acquire analog channels 1-4 continuous data, display graphical band style and save the data on the boot disk when the user presses the 'Start Saving' button (and will continue to display recorder cards).  Economy will stop when the user presses the button "Stop Saving" but strip map will continue to operate.

    My attempt to use the producer-consumer model is attached (LV 8.5 only).  It does not work.  I have not tried to implement for recording user controls - just trying to make simple continuous display and save (1 channel) at this stage, using this model.  VI runs, but the graphic Strip is never updated with the actual data, and the data file that is saved has zero byte inside.

    Thank you.

    WCR,

    Looked at your code, and you are right.  It won't work.

    Take a look at this example:

    http://decibel.NI.com/content/docs/doc-2431

    The VI of the acquisition must be inserted in the loop of the producer.  In addition, you must tell him how many samples for (otherwise, it will get 0).

  • 'Resources in use' error during the acquisition of the analog data on AI0 with external clock on PFI0 and beginning of slope trigger analog on AI1

    Hello

    I use the card PCI-6111.

    I am trying to acquire analog data on channels dev1/ai0 ai1/dev1 using pulses of external clock connected to the PFI0 channel. I also want to trigger the acquisition, when the channel dev1/ai1 signal reaches certain level. I send a triangle wave channel dev1/ai1, and I need the data only for the front.

    I have configured the task in the following ways:

    However, I get the error-89137 after function DAQmx Start Task:

    Specified route can not be satisfied, because it requires resources that are currently in use by another route.

    Source device: Dev1
    Terminal of source: PFI0InputLockOut
    Target unit: Dev1
    Destination terminal: AnalogComparisonEvent

    Resources in use by
    Task name: _unnamedTask
    Source device: Dev1
    Terminal of source: PFI0
    Target unit: Dev1
    Destination terminal: AI/SampleClock

    Task name: _unnamedTask

    If I change the internal clock external clock - switch works. If I pull the trigger, the external clock works, too. But these two tasks do not work together.

    Help? Advice? Thank you!

  • Cache buffers DB, file Cache Redo, DBWR, LGWR and log and data files

    Hi all Experts,

    I m very sory for taking your time to a matter of very basic level. in fact, in my mind, I have a confusion about the DB buffer cache and the cache of log buffers
    My question is in the DB buffer cache are three types of dirty, pinned and free i-e data. and in Sales, they are all changed data data and are willing to empty in DBRW. and then he write data files.

    but again bufers also works for the CDC and all the changed data is temporaryliy chacheed bufers redo and the LGWR writes in the log files. and these data can be data are committed or not. and when the log switch is held, then it writes data to data files commited

    My question is that if a log file may have committed data type and stop and when a log switch takes place then only the data are committed are transferred to datafiles, then where are the data no go?


    If dirty pads also contain modified data so wath is the diffrence between the bufers and data log data incorrect.

    I know that this can be funny. but I m maybe wrong abot the concept. Please correct my concept about this

    Thank you very much

    Kind regards

    user12024849 wrote:
    Hi all Experts,

    I m very sory for taking your time to a matter of very basic level. in fact, in my mind, I have a confusion about the DB buffer cache and the cache of log buffers

    The first thing we do not mention this newspaper stamp in the log buffer cache. It won't make a difference to even call it that, but you should stick with the term normally used.

    My question is in the DB buffer cache are three types of dirty, pinned and free i-e data.

    Correction, it is the States of the buffer. These aren't the types. A buffer can be available in all of these three States. Also, note even when you would select a buffer, his first PIN before it can be given to you. Apart from this, there is a type more State called instant capture buffer aka CR (coherent reading) buffer that is created when a select query arrives for a buffer inconsitent.

    and in Sales, they are all changed data data and are willing to empty in DBRW. and then he write data files.

    Yes, that's correct.

    but again bufers also works for the CDC and all the changed data is temporaryliy chacheed bufers redo and the LGWR writes in the log files. and these data can be data are committed or not.

    That is partially right. The buffer which is written by DBWR in the data file is a full buffer while in the log buffer, it is not the entire block that is copied. Oracle enters the log buffer called vector of change . It's actually the representation of this change that you made in the data block. It is the internal representation of the change that is copied into the log block and is much smaller in size. The size of the buffer of paper compared to the buffer cache is much smaller. What you mentioned about the writing of written data room again or not committed is correct. His transactional change that needs to be protected and therefore is almost always written in the restore log file by progression of the LGWR.

    and when the log switch is held, then it writes data to data files commited

    Fake! To the command log, Checkpoint is triggered and if I'm wrong, its called point of control of thread . This causes DBWR write buffers dirty this thread in the data file regardless of whether or not they are committed.

    >

    My question is that if a log file may have committed data type and stop and when a log switch takes place then only the data are committed are transferred to datafiles, then where are the data no go?

    As I explained, it is not only the validated data are written to the file data but committed and not committed is written.

    If dirty pads also contain modified data so wath is the diffrence between the bufers and data log data incorrect.

    Read my response above where I explained the difference.

    I know that this can be funny. but I m maybe wrong abot the concept. Please correct my concept about this

    No sound is not funny, but make sure that you mix in anything else and understand the concept that he told you. Assuming that before understanding can cause serious disasters by getting the concepts clearly.

    Thank you very much

    HTH
    Aman...

  • acquire and log and remove

    Hello

    I'm stuck on a problem of deletion of file data signals acquisition tdms 3 analog data with an acquisition of DAQmx module. Analog signals are sampled 4MS / s and I keep the offset of the data file (ms). I also have an overflow of memory after some time the tracks of VI.
    The commitment in question, I created a snipette VI.

    Hello
    I found a solution using the creation of a new module of TDMS files after a time delay, I keep only the last two files recent and most other I erase them gradually.

    Now I want to concatenate the two to come and erase that are concatenated together. but in the concatenated file, it I created another group of the same file you added titles and not add them at the end of each path that is the same.

    Community AND I need your help to solve this problem without using the DIADEM because I did not...

    I post annex VI, recording and erase the part is complete...

    NOR community thanks...

  • How to record measured analog data on the PC?

    Hello

    I am a beginner in the real-time hardware. I have the cRIO-9024 controller and the cRIO-9112 chassis. I have a few questions:

    (1) I can't see the examples because Labview 2009 shows that The NI Service Locator is not running. I just installed Labview 2009. How can I solve it?

    (2) what is the best way to filter the measured analog data? There are hardware module filtering or I have to use Labview tools as filters pint? I would like to read data to the time step 1 Ms.

    (3) how can I save measured analog data on the PC? I tried to use 'write to file measured', but he did my program slower and I couldn't get my 1 mS of a cycle. Can I use cRIO-9024 memory somehow and after when the programme is complete to save the files to the hard drive? Maybe it would be faster?

    Thanks for any help and examples, whether it would be possible.

    Hello Rodzynek,

    If you do not have the FPGA module (or just for now) the solution you gave with the filter would be OK. Place a second loop for file IO (and possible your communication to the user Windows interface) would be a good idea. Do not forget that you are using on the function of file create the file path represents the drive of the controller cRIO (which is mostly a c drive). You can send via FTP to the RIO DC (using the IP address) and have a look at the files.

    A suggestion to get this file programattically is that the cRIO controller sends the file name of the Windows user interface (after the closing of the record), with the Windows user interface, you can use the FTP functions in Labview to get the measures file.

    Best regards

  • digital triggering of stop/start of analog data acquisition

    I want to use a signal from a digital line to start and stop analog data acquisition. The signal can change levels several times during a race of the VI so I have to start and stop several times data acquisition and store each session data in a different file.

    I tried to play with the following screw: digital triggering of break, DigitalStartandStopTrigger and ContAcq_DigTrig. None of them doesn't seem to work for my configuration. I also do continuous data acquisition so I can't use a reference. I use PCI 6259 DAQ.

    I used the "P0" pins rather than PFI pin on the grid BNC-2090. I know... stupid enough.

  • 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.

  • The family safety activity log shows no data for Facebook

    Original title: Family Safety + Chrome + Facebook

    The latest version of Live Essentials is installed on Windows 7

    Parental controls will not register the Chrome Facebook activity.
    I see in the activity that children use, for example, 0.5 hours of chrome, but there is no granular information.
    My daughter spent 2 hours on Facebook and the Family Safety activity log shows no data to Facebook.
    The computer is a new installation of Windows 7
    Live essentials have been installed yesterday.
    All web links for accounts for children have been created yesterday
    Does anyone have a suggestion on how to see real activity?
    Also, before someone suggests using another browser, is not an option, IE is uninstalled.
    Chrome is the only browser used because of all the android devices, we have.
    Thank you

    Client Windows Live Family Safety currently not reported HTTPS traffic unless the web of the child, filtering mode is set to "notify on the adult.  Facebook who worked in HTTP mode has recently moved that the HTTPS site and that's the reason to not see, Facebook or any other site that is HTTPS in the progress report on Windows 7 machines.

    It is resolved in Windows 8 and activity reports should show HTTPS traffic.

    Current work around that for Windows 7 client

    -Set the mode of web filtering to ' warn on adult "- child will receive a warning message if they go to all the adult sites and the parents will be informed in the annual report if the child decides to go to the site.

    Sorry for the inconvenience.

    Thank you

    Shankar

  • Store (arduino) analog data in a 2D matrix

    Hello

    I need to store analog data in a 2D array. I can't use 2 for loops, because I get complete data at the end of two loops. So I need to use 1 loop for and store my analog data in an 8 x 8 matrix in this loop. (A for loop so I can store data at run time and I don't have to wait until the end of the loop for).

    If you an idea how I can get it please let me know.

    OR

    Initialize a 2D array

    integer divide the 'i' of your loop by 8.

    Serve the rest as the quotient of the row index and column index and replace data at this level of R/C with the new data.

  • writing digital and analog/PDM

    Hi I have a PCIe6351 and try to read a digital port starting with a trigger and activating an analog trigger acquire analog data

    is there a way to do it and write a single file in a PDM

    in general, this is what I need, but for now I can not write digital TDMS when I try the collapse of the program without error message

    Each channel to a TDMS file can have a different data type.  What do you mean "the program collapses?  Have you tried to write to different groups in the file?

    If the data cannot be written to the file at the same time (in other words, if data is written sequentially in the file), you can do with the TDMS recording feature built into DAQmx: http://zone.ni.com/devzone/cda/tut/p/id/9574

  • How can I impliment a delay between the analog output and analog input (started by an external analog trigger)?

    I am acquiring several channels of analog voltage input at the same time, I need to send an output analog two seconds after the start of the entry.

    I'm running an experience with accelerometers on a query table.
    I start the trigger and the table remains still for two seconds, which allows a reference level for all sensors.
    Then the output signal of the VI removes the break in the motor controller.
    The speed measured by the encoder is sent to one of the input channels.

    In this way, our accel and speed data are synchronized.

    After it acquired the analog input data out put must be reset to zero.

    MULTI.vi

    I've updated the link above works of VI, I used a property node to solve the problem.

Maybe you are looking for

  • How can I remove a 10 iOS app? There is no mention that a menu

    How can I remove a 10 iOS app? All 10 iOS did when I press and hold, is to bring up a menu - which is a feature new, unexpected and undesirable new iOS operating system 10. This action is used to make the icons to move, I could press the "x" on the a

  • try to download facebook seems the app store is frozen on the page account

    try to download facebook app store takes me the page account doesn't let me do anything else.  Anyone know why this would be?

  • Controls created as dependencies

    All, I created some 20 more controls for my application (LabView RT 2011). The application works as you wish. All controls are dependencies in the project folder. With the exception of one on them. It is in the section 'My Computer' of the project. N

  • Pack k - lite codec is safe?

    Hello! I installed jetaudio player & the sound doesn't work, download pack k - lite codec & now his work. My question is that (is it safe to use it with Windows xp?) Luv http://answers.Microsoft.com/en-us/protect/Forum/MSE-protect_start/k-Lite-Codec-

  • HP Officejet Pro L7590 - cannot scan - the installation program does not scan Betacam

    I have a HP Officejet Pro L7590 all-in-one connected to my iMac OS X Lion 10.7.4 running, and I can't Scan functionality. When I set up the device, it does not recognize that there analysis ability, if I try to scan from the Preferences/Print & Scan