Acquiring two signals and saving at a Table

Good Morning,
I'm new to LabVIEW, and I need help at a Data Acquisition. Let me explain it, so I hope you guys can help me.
I need a graph, and a Table displaying two signals acquired at a Field Point conection: Pressure and Temperature.
At this measurement, I need the VI to measure every five minutes, during one minute every measure.
And I need to save the signals to '.txt'.
I need the Table to save both signals, and a "cronometer', to keep in control of any existant difference in the signals, observing the exact time the signals changed, if it changes.
Sorry for the bad English, I'm an aprentice, using the User of the Area's Supervisor.
Thanks.

Check out the examples that ship with LV you will find something to get you started. Then if you have specific problems we can help more.Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • How to acquire analog signal and send a TTL pulse at the same time based on PXI 6123

    Hi,
    I am using a PXI-6123 data acquisition card, as the picture show in the attachment ,I want to acquire the analog signal of ai0 through reference analog window and at the same time send a TTL signal to trigger my camera. I have tried two methods, one is using the DAQmx Export signal.vi another is using DAQmx connect terminals, but when the data acquisition card acquire the analog signal, the DAQmx Export signal.vi and the DAQmx connect terminals sometime can send an TTL pulse ,sometime can not.
    I don’t know why?  or some other method that can achieve my arm is appreciated.
    Regards
    chunlei
    Attachments:
    method export signal.vi ‏21 KB
    method connect terminal.vi ‏36 KB
    Send a TTL pulse.JPG ‏288 KB

    Hi,
    Have things changed over the years?
    I need to syncronise a digital output (Modul NI9474) and an analoge input (AI-Modul NI9203) module. I need to measure time intervals from a flank in signal A to a flank in signal B. I would like accuracies of the order of 1 ms. Currently, the signals are not synchronised, with errors of the order of 2 times the block length (block size x sample rate), sometimes much higher. The best I got so far was a block size of around 20 with a sample rate of 1 kHz.
    If I use the master and slave settings on the RTSL settings, my program doesn't run properly.
    If I use digital signals for input and output, I can syncronise them with RTSL settings and everything is good, but I can't always do that.
    Also, if I do anything in the GUI (such as scrollowing something or going to another window), my output gets screwed up properly.
    1. What can be done to synchronise AI with DO?
    2. Is there something that can be done to avoid messing up the output when something happens in the user interface? (I know that I am messing up the outputs as they make some valves switch and that is loud).
    Thanks in advance!

  • How to acquire two signal values from the same GPIB

    I have a power meter which provides two values,  the power and wavelength simultaneously.  So when I'am giving in the GPIB write command probe a joint command is not provided by ILX light wave. So how can i get the values simultaneously.
     Please help

    Hi perumpadapu,
    you should read the manual of your device/software. There you should find the answer.
    Or ask the customer support for that device.
    As long as you don't even provide a name of your device we cannot provide much more help!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Deep structure to XML and saving in SAP tables

    Hi all,
    ich habe filled an internal table (deep strucure) with mutiple fields. Most of these fields are defined as structure.
    Example: 1st field ist document number, 2nd field is defined as TLINETAB, 3rd field ist another document number, 4th field is filled with node table of a column tree, 5th field ist filled with the item table of a column tree and in the last field I save the ALV properties of buttons, defined with lvc_t_styl.
    So my problem is that I want to save all these contents in database tables and restore in my application when the user ist starting again. How can I save this and how have I define the database table to save? I thought 1st field is e.g. document number, 2nd is a counter and 3rd field is a CHAR field. Then the internal table will be converted (XML?) and the result will be append to my table line by line.
    Thanks for help and regards
    Michael

    Hi,
    This looks like a perfect use for the Shared Objects functionality, introduced in SAP Web AS 6.40. See some [SAP documentation|http://help.sap.com/saphelp_nw70/helpdata/en/14/dafc3e9d3b6927e10000000a114084/frameset.htm] for this feature and an [example of use|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/900e3d9d-559e-2910-9dae-b132157a220f?QuickLink=index&overridelayout=true].
    Hope this helps,
    Grzegorz

  • Trying to generate a signal from two signals (EMG) that I have acquired from my NI USB

    I am able to aquire two EMG signals that I am sending into a NI USB-6251 using signal express. However, I would like to generate an additional signal which is based on the two signals I've sent in. For example, I would like to show a signal in real time that takes the two signals and divides one from the other in order to show the percent contribution of each signal.
    How would I go about doing this?
    Thank you

    You should be able to use the Arithmetic Step (Add Step Button under Processing\Analog Signals) to divide the signals and then use that output as the input signal for a DAQmx Generate Step.  If you want to just view the divided signals you can display the result of the Arithmetic on the Data View by dragging the output of the Arithmetic Step to the Data View.

  • Two signals at two waveform graphs

    Hello Everyone! 
    I got some problems with my software for data acquisition. 
    I got two signals and I have to show two signals at two different Waveform Graph. 
    How to seperate signals?
    Solved!
    Go to Solution.
    Attachments:
    separate.png ‏37 KB
    spearate.vi ‏23 KB

    I read DAQmx help and what I know is that Each row corresponds to a channel in the task. Each column corresponds to a sample from each channel.
    I really don't know how to wire Index Array... Can you explain it to me, please?
    Look at the attachment, is it ok?
    Attachments:
    explain.png ‏8 KB

  • Acquiring two input signals simultaneously

    Hi,
    I have an LVDT and a force sensor (both attached to a motor) plugged into my SC board and I am trying to read out & save the output data from both sensors simultaneously while the motor is in motion. The SC-2350 board is connected to the laptop via DAQCard 6036E . Two questions:
              1) in my block diagram, the DAQ assistant blocks for both sensors are wired to their respective waveform graphs (one for the LVDT signal and one for the force signal), the whole being included in a while loop (which remains true until the motor stops moving). When running the program, only one signal is read out at a time and I have no control on which signal is transmitted (this seems to occur in a random fashion). Do I need to "link"/synchronize the two DAQ assistants in some ways so that both signals will appear simultaneously? If so, how would it be possible?
              2) ideally, I'd like to read out both input signals on the same graph (with 2 different y-scales but the same time scale) to observe the phase shift. I tried to "bundle" the two data output coming from the two DAQ assistants but it resulted in an error saying that the two outputs were of different types. Is there a way to plot these two physical quantities on the same graph even though they're different and come from different sensors?
    Thanks for your help!
    Thibault.

    Hello Dani,
    I assume, based on your position sensors and the image you posted, that you are using counters to acquire your data. Is this correct? If so, it is important to note that you cannot add multiple counter operations to a single task because they have different timing requirements and all channels in a single task must share the same timing and triggering. In fact, if you attempt to add a second counter channel to a DAQ Assistant for a counter operation, you will receive the following error when you try to close the configuration window:
    So, you will have to use two different tasks to acquire your counter data. You can do this either by using two separate DAQ Assistants or by using two different tasks in the NI-DAQmx sub-VIs in LabVIEW. Since you are trying to compare the phase difference between the two measurements, you will also need to synchronize the operations so that you are reading from both counters simultaneously. There are several resources online which discuss synchronizing counters, and I have linked some that I thought might be useful below:
    KnowledgeBase 1JPES6LL: How Do I Synchronize a Buffered Quadrature Encoder Measurement to a Signal
    KnowledgeBase 3GGATSCC: Hardware Counter Start Trigger for Counter Synchronization
    It would probably be easier to use the NI-DAQmx Sub-VIs to implement this synchronization because they give you more control over specific parameters of your task. You can use the NI Example Finder to browse some examples which use the NI-DAQmx sub-VIs for counters. You can open the NI Example Finder by going to Help>>Find Examples... in LabVIEW. Once in the NI Example Finder, you can find the counter examples by selecting the Browse tab and navigating to Hardware Input and Output>>DAQmx>>Counter Measurements; then you can select the Position category (shown below) to find the Position measurement examples.
    Let us know if you have any other questions about taking position measurements.
    Message Edited by Matt A on 04-09-2008 03:55 PM
    Matt Anderson
    Hardware Services Marketing Manager
    National Instruments
    Attachments:
    Error -200147.jpg ‏32 KB
    Example Finder Position.jpg ‏124 KB

  • Two Simultaneous USB Camera Image Acquisition and Saving

    Hello everyone,
    Recently my friends and I have begun a project which requires the simultaneous acquisition of images from two independent USB cameras. Throughout our project research we have encountered many difficulties. The major problem appears to be how to successfully interface two USB cameras and properly save the image to a median for further processing down the road.
    Our first attempted at this was with the USB IMAQ drivers. Unfortunately, to our surprise, it does not support two independent and simultaneous camera acquisitions. To combat this problem we implemented a crude loop of closing a camera reference, then opening the other, acquiring an image, then closing, etc... This did provide us with functionality but was very inefficient, resulting insufficient acquisition speeds.
    Afterwards we began looking at other ways of capturing and writing the image, which are listed below.
    Various Acquisition Interfaces / Strategies
    USB IMAQ Driver - USB interfacing kit available for public download, (not officially supported by NI) zone.ni.com/devzone/cda/epd/p/id/5030
    Status - Abandoned because of the lack of dual web camera support
    Avicap32.dll - Windows 32 DLL responsible for all web camera communication, and other media devices.
    Status - Currently acquired two streams of video on the front panel but with no way of saving the images
    Directx - The core Windows technology that drives high-speed multimedia on a PC.
    Status - Currently researching.
    .NET - Microsoft .NET framework, possibly a valid interface to a video stream.
    Status - No development until further progress.
    We are still currently developing the Avicap32.dll code but the major bottleneck is the learning curve on the property nodes, library calling nodes, .NET and other references. So far it’s been a tedious effort of trying to understand example code and piece them together. As a former programmer of C I know this is not the proper way of writing code web I can’t seem to grasp how these functions work. (Property nodes, library calling nodes, .NET and other references). Learning this may allow us the knowledge to code a proper system. Does anyone know any good tutorials or learning material for such functions? So far my research has come up empty handed.
    We are currently working with these interfaces and other reference examples on the NI site. Unfortunately we cannot seem to properly integrate the code for our system. Does anyone know if this setup is even possible? Also, if anyone has any experience with similar systems and can offer advice, code snippets, or any other assistance it would be greatly appreciated.
    Our current projects will be posted below if you have any suggestions. (More will be added when I get to my desktop tomorrow)
    Two Camera Avicap32.dll - Currently stuck on how to save the image, various tweaks have gotten us stuck at this point ( will have another Avicap32.dll implementation posted tomorrow)
    USB Capture Example - This USB capture VI was an example that immediate had problems. We used it as a baseline for crude open-close camera image grabbing system. (Will also be posted tomorrow)
    Thanks for any help, it's much appreciated.
    Taylor S. Amarel
    Thanks,
    Taylor S. Amarel
    Learning is living.
    Co-Founder and CEO of http://3dprintingmodel.com/
    "If we did all the things we are capable of, we would literally astound ourselves."
    -Thomas Edison
    Attachments:
    Two Camera Avicap32.dll.zip ‏84 KB
    USB Capture Example.zip ‏17 KB

    Thanks for the information but that's not exactly what I'm looking for. I've been to that URL and read the information before. I don't mean to disparage you help but I'm looking for ways that I can successfully implement a functional system, not information on an unfunctional method. Maybe I was unclear before, I'm looking for any advice, knowledge or help on how to make this system properly work.
    Thanks, have a great day.
    Taylor S. Amarel 
    Learning is living.
    Co-Founder and CEO of http://3dprintingmodel.com/
    "If we did all the things we are capable of, we would literally astound ourselves."
    -Thomas Edison

  • Wireless signal acquisition and saving signal in text format simultaneously for 5 mins

    Hi,
    I am acquiring ECG signal wirelessly and displaying it in in waveform chart. And simultaneously i need to save it in Text format for 5 mins. The problem i am facing is that for saving the signal i am using Write to Measurement File which saves the file in text format..... but while saving the plotting speed decreases.
    i am very new to labview.. so plz can any one tell me whether i am missing any thing in it... plz help.....
     

    Why do people always post pictures of their VIs rather than the VIs themselves or at least Snippets?  We can't tell from the picture what Version of LabVIEW you are using (so if we post code, you might not be able to open it), and we can't "play with" your code and try it out without, ourselves, by hand, trying to recreate it from your (sometimes very tiny) diagram.  Please Help Us to Help You!
    Here's help anyway to get you started with the Producer/Consumer Design Pattern.
    Open LabVIEW.
    Click "File", choose "New ..." (not New VI), and choose (from the templates) Producer/Consumer Design Pattern (Data).
    Study the Template and adapt it to your problem.
    The Producer would be anything that Generates data.  Once you have the data, you put it on the Queue and send it to the Consumer for all the rest of the processing.  The idea is that the Producer has an inherent timing that it has to meet, otherwise you lose data points.  The Consumer, on the other hand, just needs to "more or less" keep up (actually, the Queue can/will expand, so if the amount of data isn't megabytes, the Consumer can really be quite slow, though you usually want the Consumer, on average, to be at least as fast as the Producer).
    Bob Schor

  • Send analog trigger every time data is acquired and saved

    I am currently writing a program that acquires and calibrates data from 32 channels of force plates.  Once the data is acquired and calibrated it is saved to a file.  I need to send a pulse to another computer running labview once every time data is acquired and saved.  I have written several versions of this code that send a continuous pulse train while data is being saved.  I need to modify the code so that it does not send a continuous pulse, but an individual pulse that is a set frequency every time I acquire data.  I believe that I need to use a software trigger to control the pulse, but I can't seem to find a way to have the hardware send a pulse only when I want it to.
    The program uses a boolean as a start trigger for the acquisition process.  In this manner when the data begins saving(i.e. the boolean is switched) it would send one analog pulse per iteration of the save loop.  Unfortunantly I only seem to be able to either send a continuous pulse that I start before the acquisition begins or am not able send any pulse.  During the time this pulse is being sent I am also constantly acquiring data from the card.  I was wondering if there is any way that I can have the pulse start and initialize before the loop begins and then have it send one analog pulse of a set frequency every time the loop is iterated.  I have tried both DAQmx and DAQ traditional solutions but have had no success.
    Hardware: PCI-6071-E and BNC-2110 boxes, so I have a large selection of ports and my card seems to be compatible with all the latest software capabilities.
    Thanks so much for any help!
    ~Matt

    Actually after tinkering with it for several hours I managed to figure out a way to solve my problem.  I'll explain it in case anyone else has a problem.
    What the software does:  The software is an acquisition loop that outputs a square wave pulse of finite frequency to another acquisition system at the beginning of each acquisition iteration while data is being saved.  This is so that the data from the two systems can be synchronized later.
    The program flow is this Send Single Synchronization Pulse-> Acquire Data->Calibrate Data->Save Data to file->Repeat
    The pulse is triggered once data begins saving, but the device begins acquiring data on execution of the software.
    To do this I set up the DAQmx Channl configuration to CO Pulse frequency.  I then set the timing up to be finite iterations and the number of iterations to 1.  Inside the acquisition loop I enclosed the whole acquisition process in a flat sequence.  In the first sequence, if the program is saving data it turns the pulse on, if not saving the task passes through.  The acquisition occurs in the middle sequence and in the final sequence if saving the task is turned off.  If not saving the task passes through.  This allowed me to send one pulse of a finite frequency every time the loop is run.
    Thank you very much for your response though.  If anyone else runs into a problem like this I can post a screenshot for future reference when I get a chance.  Thanks again.

  • Send a signal, acquire the response and analyse

    Hello,
    I am quite beginner in Labview.
    I want to send a signal to a loudpeaker and acquire the signal of a microphone and a photomultipier.
    I have already done the VI to acquire and record, and the VI to send the signal to the loudpseaker.
    Now , I would like to merge the both Vi to send and acquire simutaneously.
    I use labview v.8

    These is my two VIs.
    Moreover when I open and run the sinewavegenerator end then want to run the VI " pm+micro record" the error 50130 occures.
    I suppose that I have to change something in my Daqmx task but I dont kmow what:
    Thank you for any help
    Eva Comble
    Attachments:
    micro+pm record.vi ‏106 KB
    sinewavegenerator.vi ‏161 KB

  • How can i compare two databases and their tables

    i have a text.txt file then
    i will insert it into db_header and db_details
    db_header has tbl_pcountheader with fld_Rack_No(char) PK and fld_DateAdded(date) PK
    db_details has tbl_pcountdetails with fld_Rack_No(char) PK, fld_Barcode(char) PK and fld_Quantity(int)
    then i will lookup in db_products
    db_products has tbl_products and tbl_barcodes
    tbl_products has fld_ItemCode
    tbl_barcodes has fld_Barcode and fld_ItemCode
    now i want to make a prompt contains
    Rack No: Date:
    Counter No:
    Barcode | Item Code | Item Description | Quantity
    how can i fill up this by comparing db_details and db_products?
    Private Sub bt_upload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_upload.Click
    If saveCheckBox.Checked = False Then
    MsgBox("Please click the box to continue.")
    Return
    End If
    If lb_file.SelectedItem Is Nothing Then
    MessageBox.Show("Please select a file.")
    Exit Sub
    End If
    ' Obtain the file path from the list box selection.
    Dim filePath = lb_file.SelectedItem.ToString
    ' Verify that the file was not removed since the Browse button was clicked.
    If System.IO.File.Exists(filePath) = False Then
    MessageBox.Show("File Not Found: " & filePath)
    Exit Sub
    End If
    ' Obtain file information in a string.
    Dim fileInfoText As String = GetTextForOutput(filePath)
    'LookUP db_header, db_details and db_products
    Dim cs As String = "Database=;Data Source=localhost;" _
    & "User Id=root;Password=1234"
    Dim conn As New MySqlConnection(cs)
    Dim ds As New DataSet
    Dim da As New MySqlDataAdapter
    Dim cmd As New MySqlCommand
    Dim dt As New DataTable
    Dim stm As String = "SELECT tbl_pcountheader.fld_Rack_No, tbl_pcountheader.fld_DateAdded, tbl_pcountdetails.fld_Barcode, tbl_products.fld_ItemCode, tbl_products.fld_ItemDesc, tbl_pcountdetails.fld_Quantity FROM db_header.tbl_pcountheader INNER JOIN db_details.tbl_pcountdetails ON db_details.tbl_pcountdetails.fld_Rack_No = db_header.tbl_pcountheader.fld_Rack_No INNER JOIN db_products.tbl_barcodes ON db_details.tbl_pcountdetails.fld_Barcode = db_products.tbl_barcodes.fld_Barcode INNER JOIN db_products.tbl_products ON db_products.tbl_barcodes.fld_ItemCode_fk = db_products.tbl_products.fld_ItemCode GROUP BY tbl_pcountheader.fld_Rack_No, tbl_pcountheader.fld_DateAdded ORDER BY tbl_pcountheader.fld_Rack_No"
    ds = New DataSet
    Try
    conn.Open()
    da = New MySqlDataAdapter(stm, conn)
    da.Fill(ds, "tbl_pcountheader")
    DataGridView1.DataSource = ds.Tables("tbl_pcountheader")
    Dim headers = (From header As DataGridViewColumn In DataGridView1.Columns.Cast(Of DataGridViewColumn)() _
    Select header.HeaderText).ToArray
    Dim rows = From row As DataGridViewRow In DataGridView1.Rows.Cast(Of DataGridViewRow)() _
    Where Not row.IsNewRow _
    Select Array.ConvertAll(row.Cells.Cast(Of DataGridViewCell).ToArray, Function(c) If(c.Value IsNot Nothing, c.Value.ToString, ""))
    Using sw As New IO.StreamWriter("c:\report.txt", append:=True)
    sw.WriteLine(String.Join(",", headers))
    For Each r In rows
    sw.WriteLine(String.Join(",", r))
    Next
    End Using
    ds.WriteXmlSchema("Sample.xml")
    Dim cr As New CrystalReport1()
    cr.SetDataSource(ds)
    CrystalReportviewer1.ReportSource = cr
    CrystalReportviewer1.Refresh()
    Catch ex As MySqlException
    MsgBox("Error: " & ex.ToString())
    Finally
    conn.Close()
    End Try
    ' Show the file information.
    Dim PrintPrompt As String
    PrintPrompt = MsgBox(fileInfoText, MsgBoxStyle.YesNo, "ProofList")
    If PrintPrompt = vbYes Then
    'fileInfoText.print()
    If saveCheckBox.Checked = True Then
    ' Place the log file in the same folder as the examined file.
    Dim bakFolder As String = System.IO.Path.GetDirectoryName(filePath)
    Dim bakFilePath = System.IO.Path.Combine(bakFolder, "back-up.bak")
    Dim bakText As String = "Backed-Up: " & Date.Now.ToString & vbCrLf & fileInfoText & vbCrLf & vbCrLf
    ' Append text to the log file.
    'System.IO.File.AppendAllText(bakFilePath, bakText)
    My.Computer.FileSystem.WriteAllText(bakFilePath, bakText, append:=True)
    'My.Computer.Network.UploadFile(bakFilePath, "C:\Documents and Settings\SAPC-TECH\My Documents\back-up file.bak", "", "", False, 1000)
    'My.Computer.FileSystem.DeleteFile(bakFilePath)
    'Form2.Show()
    End If
    'Note: This message box shows that you've uploaded a file and back up it.
    MessageBox.Show("Already backed-up to ")
    Else
    'Me.Close()
    'Application.Exit()
    'End
    End If
    'Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
    'Form2.Close()
    'Me.Close()
    End Sub
    here's my final code that solves my problem.
    i just make the environment of vb into mysql console
    so that i can call all the database that i wanted.

    Private Sub bt_upload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_upload.Click
    If saveCheckBox.Checked = False Then
    MsgBox("Please click the box to continue.")
    Return
    End If
    If lb_file.SelectedItem Is Nothing Then
    MessageBox.Show("Please select a file.")
    Exit Sub
    End If
    ' Obtain the file path from the list box selection.
    Dim filePath = lb_file.SelectedItem.ToString
    ' Verify that the file was not removed since the Browse button was clicked.
    If System.IO.File.Exists(filePath) = False Then
    MessageBox.Show("File Not Found: " & filePath)
    Exit Sub
    End If
    ' Obtain file information in a string.
    Dim fileInfoText As String = GetTextForOutput(filePath)
    'LookUP comparison db_details to db_products
    'Dim connString As String = "Database=db_products;Data Source=localhost;" & "User Id=root;Password=1234"
    'Dim conn As New MySqlConnection(connString)
    'Dim cmd As New MySqlCommand()
    'Try
    ' conn.Open()
    ' cmd.Connection = conn
    ' cmd.CommandText = "SELECT Database1.dbo.TableName.ColumnName, Database2TableName.Name, 'The reason why Database 2 isnt defined is the fact that it has been defined in the connection" _
    ' FROM Database2TableName INNER JOIN _
    ' Database2TableName2 INNER JOIN _
    ' WHERE (Database1.dbo.TableName.ColumnName = '')"
    ' cmd.Prepare()
    ' cmd.ExecuteNonQuery()
    ' conn.Close()
    'Catch ex As Exception
    'End Try
    ' Show the file information.
    Dim PrintPrompt As String
    PrintPrompt = MsgBox(fileInfoText, MsgBoxStyle.YesNo, "ProofList")
    If PrintPrompt = vbYes Then
    'fileInfoText.print()
    If saveCheckBox.Checked = True Then
    ' Place the log file in the same folder as the examined file.
    Dim bakFolder As String = System.IO.Path.GetDirectoryName(filePath)
    Dim bakFilePath = System.IO.Path.Combine(bakFolder, "back-up.bak")
    Dim bakText As String = "Backed-Up: " & Date.Now.ToString & vbCrLf & fileInfoText & vbCrLf & vbCrLf
    ' Append text to the log file.
    'System.IO.File.AppendAllText(bakFilePath, bakText)
    My.Computer.FileSystem.WriteAllText(bakFilePath, bakText, append:=True)
    'My.Computer.Network.UploadFile(bakFilePath, "C:\Documents and Settings\SAPC-TECH\My Documents\back-up file.bak", "", "", False, 1000)
    'My.Computer.FileSystem.DeleteFile(bakFilePath)
    Form2.Show()
    End If
    'Note: This message box shows that you've uploaded a file and back up it.
    MessageBox.Show("Already backed-up to ")
    Else
    Me.Close()
    Application.Exit()
    End
    End If
    Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
    Form2.Close()
    Me.Close()
    End Sub
    here's my code wherein i have to compare the two database and save it into .txt file
    i just have to get this items
    Rack No:
    Date:
    Counter No:
    Barcode:
    Item Code:
    Item Description:
    Quantity:
    as a prooflist to be print out.

  • I need to acquire impulsive signal(s) and then write them to a file - but I need a good approach

    Okay, I am pretty new to Lab View, and would appreciate suggestions of how to approach a problem.
    My
    only LabView experience has been writing a simple .vi to acquire
    voltage signals in a loop at a certain sample rate, get 5 of them each
    time the loop iterated (it did so every second), average the 5 samples,
    and dump them into a file at every loop iteration.
    That
    was for continuous data acquisition while viewing/monitoring the data
    at the same time, and was probably not the most efficient way (or even a
    good way) to do it.
    Now,
    I am doing something different.  I want to record voltage signals but
    only after a trigger event has occured, and only until a certain time
    window after the trigger event. 
    Should I use continuous data sampling? 
    Or should I sample "N" samples?
    Should I use "producer / consumer" structure?
    Should I continuously log to a TDMS file (I just started reading about that.... I used lvm files before....)?
    I
    am very confused.  I have enough programming knowledge to be dangerous,
    but am very new to Lab View.  Any quick pointers to get me started? 
    This is sort of time-critical....
    Thanks a lot
    -Jay

    Jay,
    There are quite a few examples in the example finder of how to implement various types of triggers IIRC.
    How long is your time window and how fast do you want to sample?  That will probably determine whether you want to use N samples (for shorter time windows where all your samples will fit in the hardware buffer) or continuous (for when you will want to make several reads before you have enough data).
    Producer/consumer is a very versatile design pattern.  If you have a long running acquisition that you'd like to be able to cancel or update the UI mid run then you might want to use it.  If, on the other hand you are doing a quick (in UI terms) acquistion then there may not be any need.  Templates and design patterns also become more important the longer you plan to keep the code around -- the more you plan to maintain and add onto the VI the more thought should go into the design.
    File format is often a personal preference.  TDMS is a richer file format (faster, smaller, IMO normally better) than LVM (essentially just a text file).  TDMS files can be opened in Excel with a plugin or natively in any NI tools (LabVIEW, DIAdem etc.)  Text files such as LVM can be opened with just about anything.  One thing that may force your decision is if you are acquiring large amounts of data quickly (too fast to buffer in RAM) then you'd definitely want to use TDMS as it is much faster and gives your hard drive a chance to keep up with the inflow of data.
    Good luck, let us know how you get on.
    ~Simon

  • Why is the signal at my home so much weaker than when I moved here in February 2013?  I only get one or two bars and very poor data service if any at all.

    Why is the signal at my home so much weaker than it was when I moved here in February 2013?  I get only one or two bars and very poor data service if any at all.  Calling to ask the question results in a vortex of questions that have little to do with the problem and no  resolution or answer.

    I have a Droid Ultra phone.  The signal reduction seems to only be in the general area of my home.  If I go downtown, the signal improves to what it once was at home.  Everything at my home is as it was when the signal was good, including cable TV service.  There has been no new construction in the area that I know of.
    Thanks for trying to resolve the issue.  Just this morning while trying to view web pages, I found that I could not load any.
    Ron

  • Capture from Two Tables and Apply in one Table

    Hi All,
    Is it possible to capture from two tables (master and child table) and apply in one table?
    For example,
    1. DEPT and EMP tables in source database with relation
    DEPT table structure is like DEPT_ID, DEPT_NAME, LOC_NAME
    EMP table structure is like EMP_ID, EMP_NAME, EMP_DOJ, EMP_SAL, DEPT_ID
    2. EMP_DEPT_STAGING in destination database
    EMP_DEPT_STAGING table structure is like EMP_ID, EMP_NAME, EMP_DOJ, EMP_SAL, DEPT_ID. DEPT_NAME, LOC_NAME
    if there is any update in DEPT table, EMP_DEPT_STAGING should get populated with Department and its employee details. Similarly, if there is any update in EMP table EMP_DEPT_STAGING table should get populated with Employee details and along with department detail.
    Is it possible to accomplish this? If yes, could you please provide me some examples?
    Thanks & Regards
    Thiyagu
    Edited by: mt**** on Sep 4, 2011 11:22 PM

    like this
    INSERT @PlantNew  (PlantID, PlantName, PlantDirExists, PlantAssistantDirID, PlantDirID) 
    SELECT p.PlantID,
    p.PlantName,
    CASE WHEN pd.PlantID IS NULL THEN 0 ELSE 1 END,
    PlantAssistantDirID,
    PlantDirID
    FROM @Plant p
    LEFT JOIN (SELECT PlantID,
    MAX(CASE WHEN Assistant = 1 THEN PlantDirectorID END) AS PlantAssistantDirID,
    MAX(CASE WHEN Assistant = 0 THEN PlantDirectorID END) AS PlantDirID
    @PlantDirector
    GROUP BY PlantID)pd
    ON pd.PlantID = p.PlantID
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    You're missing a FROM
    insert into @PlantNew
    SELECT p.PlantID,
    p.PlantName,
    CASE WHEN pd.PlantID IS NULL THEN 0 ELSE 1 END,
    PlantAssistantDirID,
    PlantDirID
    FROM @Plant p
    LEFT JOIN (SELECT PlantID,
    MAX(CASE WHEN Assistant = 1 THEN PlantDirectorID END) AS PlantAssistantDirID,
    MAX(CASE WHEN Assistant = 0 THEN PlantDirectorID END) AS PlantDirID
    from @PlantDirector
    GROUP BY PlantID)pd
    ON pd.PlantID = p.PlantID

Maybe you are looking for

  • Fan spinning fast with noise

    Hi! I have HP Pavillion dv5 notebook.  i have a problem with the ventilation fan. sometimes when i move my laptop (for exemple if i tlift it from the table to put it somewhere else) then the fan  starts to spinn with an extremly high speed and it sou

  • Availability of JDAPI documentation

    Team, I am trying to locate the documentation available for JDAPI (Java Development API) for Oracle forms 9i. Does anyone has information about it? Would appreciate any help. Thank you, Rajesh Gupta [email protected]

  • Mediakit reports that the partition is too small

    Hi everyone, I have a NAS (QNAP TS-239ProII+) connected to my network. I have created a iscsi target and a LUN attached to that target (let's say 1GB - it's a test). That target is mounted on the iMac using GlobalSAN. So, that drive is seen like a lo

  • Externalise users from EAS related query

    Hi, In fresh installation when should we go for externalize users (using EAS right click 'Security' click Externalize Users). I mean should i go for externalse user: 1) after installing/configuration of Shared services, essbase client, Essbase server

  • Digital converter for smart tv?

    I want to cancel my direct tv since i have a smart tv that basically hasall the channels/movies I need already on my tv. do i need a digital converter to watch my local channels since that is the only thing i will be missing. any help  would be great