The reading of data acquisition via tcp

Hello

I am building an application that controls an acquisition of data via tcp.

I have a JAVA program that communicate with labview, give a command and data acquisition starts. (So, I read the correct Java data at Labview)

My problem is if I try to read data acquired by data acquisition (continuous sample 1 k samples), I've read strange values.

I transform of double values in the string and send it via tcp.

How can I read it in Java? What type of socket should I use? What is a rate problem?
I also tried to transform small/big-endian byte order, but it does not work.

I enclose a sketch of this part of the application.

Please help me, I try for 2 weeks!
Thank you all...

I find the solution in the lavag forum.
I post here, if it can help someone.

http://lavag.org/topic/16359-sending-LabVIEW-data-via-TCP/page__pid__99983#entry99983

Tags: NI Software

Similar Questions

  • Configuration of the two of the same model data acquisition

    Hello, community of NOR.

    I'm an intern in mechanical engineering with experience in base with LabVIEW.

    I would like to speak to OR directly on this issue, but I don't have a service contract and my company wants me to understand this before you buy LabVIEW.

    I hope that someone has experience about my question, and I would be very happy to help.

    We intend on purchasing an expansion card for our acquisition of data (OMB-USB-2416), but unfortunately it is offline and no custom would not happen in time.

    So, I need LabVIEW to read voltage HAVE two of the same model of data acquisition, which would amount to about 30 channels.

    Is this possible with LabVIEW?

    Thank you.

    Measurement computing says that the "physical channels" dropdown list is automatically filled in once both devices are configured.

  • How to increase the speed of data acquisition?

    Hey, currently I using 6210 OR of data acquisition and control switch. I used labview to periodically check the 7 switches and read data from 7 channels in the meantime (1 sample on request). I ran 70 loops for 10 groups of data, the cost of the time looked like 2.2 seconds.

    I would like to end a 700 loops in 2 seconds, is it possible to improve?

    Thank you

    PEM

    Look at the Terminal stop of the DAQ Assistant Express VI. You are starting and stopping of the task for the acquisition of data on each iteration of the loop.

    Starting from the help file:

    Stop

    Specifies to stop the task and release device resources when this Express VI ends execution. For ongoing tasks, this entry is FALSE by default, which means that the task is running until the application terminates. To stop the task, you can use the device again in the same application, wire control wire you the Conditional stop this entry to the same terminal of the while loop. For single-point and finished tasks, this entry is TRUE by default, which means work stoppages after all samples are acquired. To optimize the performance of single point when using this Express VI into a loop, wire control wire you the Conditional stop this entry to the same terminal of the while loop.

    Also from the help file:

    Continuous single point of entry or exit, the of VI Express DAQ Assistant cannot allow optimal operation. See Acq & chart voltage-Single Point optimization VI in examples\DAQmx\Analog In\Measure Voltage.llb for an example of techniques to create more powerful applications, single point of I/O.

  • BNC-2110, 6023E PCI card and Labview V9.0: is the sensitivity of data acquisition (change more little detectable voltage) 0.002V?

    BNC-2110, 6023E PCI card and Labview V9.0: sensitivity of data acquisition (change more little detectable voltage) is 0.002V

    Hi, I use the software/hardware above to read a voltage of a potentiostat world Precision Instruments No..

    I'm trying to record changes in voltage as low as 0.0003V but using the wizard DAQ, I seem to be limited to a sensitivity of 0.002V.  This is the limit of real sensitivity or have I missed something?

    Any help would be greatly appreciated.

    Hi DCAM77,

    Thanks for joining the forums!

    The PCI or 6023E has a 12-bit ADC.  In other words, it can make the difference between 4096 (2 ^ 12) different levels within the range of cards.  The card you have has a selectable range by ± 10 V, ± 5 V, ± 500 mV or ±50 mV software.

    This means that the minimum detectable variation will be 4 mV, 20 mV, 244 µV or 24, depending on the chosen range µV.

    You should be able to use the ± 500 mV or ±50 mV to get the least significant bit (LSB) value, you need, even if it means that your signal is located between these values.  If not, then you need to consider other materials to the application, or the addition of external circuits across the signal.

  • TDMS write a comment in the middle of Data Acquisition

    Hello

    I am currently using TDMS for my data record. Currently I log data from a Keithley module via GPIB connector.

    Essentially, I want to save data in intervals and during the recording of data, I want to have a comment section where I can write the changes that have been made.

    It connects every minute and I want to add a comment in the minute 5 for example. What is the right way to apply it.

    Thank you

    I would use a loop that is dedicated to writing in the PDM file.  You can then send commands/data to this loop in a queue.  You could a single command to write your DAQ data and another for observational data.  I would connect all the data data acquisition in a group and observational data in a second group.  That will make your file much easier to understand.

  • Is it possible to change the name of data acquisition device?

    Hi all

    Is it possible to change the name of device of data acquisition in a pragmatic way?

    I wish I had at the beginning, when I start the data acquisition control a name that my .net program assigns to the DAQ card. Is this possible?

    Thank you

    Virginia

    Ashly thanks!

    Virginia

  • How to implement the reading of data from a matte file on a cRIO?

    Hi all!

    I'm still not sure, it is plausible, but I'll ask rather before you begin complicating. So far, I found no useful information on reading in the data to a device of RT from a file (type of a simulation test - data is simulated).

    I have the MatLab plugin that allows the storage of data read a MAT file, which has a number of columns that represent the different signals and lines representing the samples at a time (depending on the time of the sample - sample every time has its own line of signal data).

    I have no idea how to implement this at cRIO.

    The idea is:

    I have some algorithms running on the controller of RIO in a timed loop. As the entries of these algorithms I need to access each of the values of columns in the row, which is the time of the sample (sort of a time series - without written actual times).

    I am fairly new to RT and LV development, so any help would be appreciated.

    Thank you

    Luka

    Dear Luka!

    I think the reading of all the samples in a single channel is exactly what you need here, because reading the files may take some time and is not deterministic, so it is best to read all the data in memory (or if this is not feasible due to problems of size, fairly large pieces may be sufficient). The table read can be provided and then in the loop simulating outings, something like this:

    I used here separate channels so it's more graphic, but you can build all the channels in a 2D array and array index corresponding to the samples fom 1 who. You can also use for loops with indexing as tunnels are setup and then you won't need the index functions and the number of iterations is also set automatically, but you have to take care of synchronization settings.

    Best regards:

    Andrew Valko

    National Instruments

  • delay between the trigger and data acquisition

    Hi, I use NI SMU-6368 as a tool for data acquisition. In my experience, I use an external digital trigger to start taking measures of a thermistor.

    However, before the experience, I want to know the time that elapses between the detection of the trigger signal and data acquisition start time.

    Is there a way to do this?

    Here's the kind of thing I configure to get an accurate measure of time of t = 0 trigger signal to the

    the actual first A/D conversion.   It may be too much for a measurement of the temperature, but you should get

    the right track.

    -Kevin P

  • the relay control data acquisition

    I am creating a vi that controls (press and release) several relay using a USB 6501 data acquisition. This should be a task relativily easy but I get flumoxed by errors. I tried to use the examples, but I get an error telling me that I need to use the mode of generation 1 sample (on request). Help, please

    Sure. The easiest way is to have a DAQmx writing followed by a function of delay, followed by another entry, followed by another period. Simply plug the error links in order to control the flow of data. However, the VI would be insensitive so you can use a state machine or function elapsed time so that the VI can be stopped without waiting for waiting for him at the end.

  • Is the iPad limit data usage via personal hotspot from my iPhone?

    I have unlimited use of data in the Netherlands, but in France the use of the data is limited. I don't want my iPad to consume all the data because of unwanted downloads.

    The iPad is aware that he uses a personal hotspot from my iPhone. It modifies the behavior of data then use?

    Using an iPad with an iPhone 5s mini3. Both running latest version of the OS.

    Bolderbast wrote:

    The iPad is aware that he uses a personal hotspot from my iPhone. It modifies the behavior of data then use?

    No, the iPad doesn't "know" that you have a limit on your data. It does not change the behavior of use based on the type of connection (other that it will not download files more 100 mg on cell phone).

  • Write equations on the front for data acquisition

    Hello

    I was wondering if its possible while a VI is running for:

    1. Write an equation custom on the façade.
    2. Use the equation on data acquired since the VI is running.
    3. Draw the calculated data.

    See you soon

    I think you should take a look at the examples (help > find example... > tab "search" > try with formula or equation), it is one that shows in a simple way, look here: C:\Program NIUninstaller Instruments\LabVIEW 2011\Examples\measure\maxmpl.llb\Waveform Formula.vi using generation

    hope this helps

  • Best practices for the reader to 'Data' between VM?

    Hello

    So on my box ESXI, I have a 250 GB drive. I was wondering what the best practice is to have a 'data' drive shared between VM? I'm pretty new to virtualization so would like to view

    I would basically following drive configuration...

    Win 2008 R2 - 60 gb

    Win 2008 R2 - 60 gb

    Ubuntu 10.10 - 20 GB

    (Shared between the two areas of 2008) DATA - 100 GB

    Thank you.

    The only way to do this is to assign the drive to a virtual machine and create a network share. Unless you use a file system that supports concurrent access to files, an attempt to present the disk to several systems would probably end by the corruption of data.

    André

  • Using the channel of the flaws with the reading of data

    Is it possible to substitute a model output when I want real data playback using the stim profile editor?

    I understand how to use the flaws of the stim profile editor to replace an unique to a single value output channel, but is there a way to "fault" of the channel to the data I read (.csv file)?

    Don't know how I missed that...  Exactly what I was looking for.

    Thank you
    Matt

  • Change the speed of data acquisition

    I record the temperature using a PSC-2120 (cFP-TC-120 + capable). Could someone please explain me how to slow the acquisition of data to make each minute rather than each MS that's for two reasons. First the data file are produced get so large that excel do not all data from a spreadsheet and Notepad can not open them. I had a .lvm file which was more than 700 MB of the day to the next. Second, the data is displayed on a graph when it is saved (left hand on the vi graph), but he is drawn as a variant rates. Sometimes it's every millisecond, others it's every few seconds.

    I enclose my VI, but I can't reach my text file is too lig must be downloaded (it was after 10 min data recording)

    Thank you

    Chaz

    Hi Chaz,

    Thanks for the post and I hope that your well.

    To change the rate of datalogging, you will need to use the timing of the loop. You can do this with a (better) timed loop or with vi timing structure (for example, wait until the next multiple) in the loop (good). This knowledge base article, he explains in detail,

    How to set the analog input of my FieldPoint Modules rate?

    http://digital.NI.com/public.nsf/allkb/3DCBB324D23FD637862571320066AA7A?OpenDocument

    Hope this helps,

  • pl/sql block, reading the reading of data from the table to a single point in time

    I'm trying to figure out if several cursors in a PL/SQL block are executed inside a single Point in time, and so don't see no updates of paintings by other processes or procedures running at the same time.

    The reason why I ask is I have a block of code as an initial extraction of data, with some Sanity Check before the code runs. However, if another procedure might modify the data between the two, then the mental health check is not valid. So I am essentially trying to know if there is consistency read in a PL/SQL, preventing updates to other processes to be seen.

    Anyone who has an idea?
    BR,
    Chambaz

    Google SET Transaction.

    or

    Follow this link

    http://download-West.Oracle.com/docs/CD/B12037_01/server.101/b10759/statements_10005.htm

    Kind regards
    Prazy

Maybe you are looking for

  • NO WIFI

    Hi, I have a problem with my old macbook aluminum unibody late 2008 model (el capitan), it there is no way to find the "WIFI" icon on the status bar, also when I open 'report system' and made scroll to "Wifi" cela it as information shows: Then when I

  • can connect by using the ip address, but not by using web address settings?

    Try to connect to the internet using access point mobile Windows 7 Firefox browser.I can access a Web site by using the ip address using however nothing www.msn.com or whatever it is.In the connection to the internet in Network Options window that I

  • Gen iPod 7 too tight charging port...

    Hey everybody, Then I come myself an iPod nano 7th generation and I think the charging port is too tight. While plugging in, you really need to press it and all by removing the plug, so pull hard, unlike my iPhone, which does not require to pull me s

  • Airport Extreme is not able to join the network

    I'm trying to implement a repurposed Airport extreme in Bridge mode. Before, I was always able to use the "join the network" option, but now it only gives me the option to create, expand or inactive. I have a model a1521 (6th generation) that I have

  • My Skype crashes whenever I'm doing first call/reception of the first call

    My Skype crashes whenever I do the first call or receive the first call. Whether by Skype phone or Skype to Skype. I have to sign out of Skype and then reconnect you for each call.