How to equalize tcp/ip writing and reading rate?
I use NI CRIO-9073 and labview 8.6. I am sending & receiving of real-time data to the host (with swicth) pc. This interval of data communication is 8milisec and milisec 10 so how do I equalize my write and read rates for example 8 miliseconds. If I can do it, I can't lose my logging data.
In fact my real problem is that real time works 8 milliseconds to 20 milisecond (interval) for sending data, but datalos.vi reads 9 milliseconds and it works when RT works in milisec 8, when my reading speed is less than RT sending rate I see that my system is data loss
Tags: NI Software
Similar Questions
-
does anyone have example script writing and reading XML file
someone at - it an example script for writing to variables affecting and reading variables to an xml file.
Discover the second to the last link on this page:
There are some very good examples.
HTH, please rate all positions!
Chris
-
How can I track my questions and read responses
I posted 3 questions, but I can follow and read the answers
Discussions were merged.
Deleted duplicate.
After signing, your screen name (for example jeoffreherrada) will be in the upper right of any page of the site Microsoft Community. Click to access your profile with options page to view the Threads sorted and filtered as you wish.
-
Develooping app for Windows Store - writing and reading file: file came from another computer
I am developing an app Store Windows (XAML, c#) and I am writing a file to the user Documents folder. When writing is complete, the file is marked as «this file came from another computer and can be blocked to protect the computer» Of course, this isn't what I want - the file did not come from another computer. Subsequent attempts to read the file in the same application fail unless I have use Windows Explorer to unlock the file.
How can I write a file in a way that I don't let not blocked for the following readings?
I am developing an app Store Windows (XAML, c#) and I am writing a file to the user Documents folder. When writing is complete, the file is marked as «this file came from another computer and can be blocked to protect the computer» Of course, this isn't what I want - the file did not come from another computer. Subsequent attempts to read the file in the same application fail unless I have use Windows Explorer to unlock the file.
How can I write a file in a way that I don't let not blocked for the following readings?
Probably should be this announcement on the forums for developers (MSDN/Technet).
-
Simultaneous digital writing and reading w. measurement interval
Hi all
For the last couple days, I've been trying my brain trying to get a program to run.
I am trying to generate a camera digital 4 output bits then simulatanously count edges mounted on its LSB up to an arbitrary number set by the operator of the program, how the program should be a measure.
I note, however, that, on a certain edge County number growing (~ 950 or almost), the program crashes. The problem persists even when I remove the function that reads the LSB, although, in this case, accidents occur to a much higher number. What could cause this? Is there a way I can work around this problem?
Here is my code:
arraySizeInBytes2 = 8
bufferSize = 255ReDim readArray (arraySizeInBytes2)
publicLifetime = 100' use this to control the duration of the task takes
numSamplesToWrite = 10 * publicLifetime * numSample * 5
numSamplesInArray = 5 * 10 * numSample"the code that sets the analog and digital output signals
j = 0
k = - 1
<>
If SampPerCycle Mod d = 0, then k = k + 1 other k = k
For m = 0 to 3
If ((k) and (2 ^ m)) = (2 ^ m) then writeArray (m, j) = 1 Else: writeArray (m, j) = 0
Before m
j = j + 1
LooppublicStatus = DAQmxCreateTask ("", taskHandleDigitalOut)
publicStatus = DAQmxCreateTask ("", taskHandleAnalog)
publicStatus = DAQmxCreateTask ("", taskHandleDigitalIn)
taskIsRunning = TruepublicStatus = DAQmxCreateDOChan (taskHandleDigitalOut, "Dev2/port0 / line0:3","", DAQmx_Val_ChanForAllLines ")
publicStatus = DAQmxCfgSampClkTiming (taskHandleDigitalOut, "Ctr0InternalOutput", # 1000000, DAQmx_Val_Falling, DAQmx_Val_AcquisitionType_FiniteSamps, numSamplesToWrite)
publicStatus = DAQmxCreateAOVoltageChan (taskHandleAnalog, "dev2/ao0","",-10, 10, DAQmx_Val_VoltageUnits2_Volts, "" "")
publicStatus = DAQmxCfgSampClkTiming (taskHandleAnalog, "Ctr0InternalOutput", # 1000000, DAQmx_Val_Falling, DAQmx_Val_AcquisitionType_FiniteSamps, numSamplesToWrite)
publicStatus = DAQmxCreateDIChan (taskHandleDigitalIn, "dev2/port0/line7", "", DAQmx_Val_ChanPerLine)
publicStatus = DAQmxCfgChangeDetectionTiming (taskHandleDigitalIn, "dev2/port0/line7","", DAQmx_Val_AcquisitionType_ContSamps, 8 "')
publicStatus = DAQmxWriteBinaryI16 (taskHandleAnalog, DACwaveFormSize, False,-1, DAQmx_Val_GroupByScanNumber, buffer (0), sampsPerChanWritten, ByVal 0 &)
publicStatus = DAQmxWriteDigitalLines (taskHandleDigitalOut, numSamplesInArray, False,-1, DAQmx_Val_GroupByScanNumber, writeArray (0, 0), sampsPerChanWritten, ByVal 0 &)publicStatus = DAQmxStartTask (taskHandleDigitalIn)
publicStatus = DAQmxStartTask (taskHandleAnalog)
publicStatus = DAQmxStartTask (taskHandleDigitalOut)
publicStatus = DAQmxStartTask (publicCounterHandle)r = 0
< (publiclifetime="" *="">
publicStatus = DAQmxReadDigitalLines (taskHandle, 1, 5, DAQmx_Val_GroupByScanNumber, readArray (0), arraySizeInBytes2, SampsPerChanRead, numBytesPerSamp, ByVal 0 &)
If publicStatus = 0 then r = r + 1
If r Mod publicMeasurementInterval = 0 Then ' measure Code here
LooppublicStatus = DAQmxStopTask (taskHandleDigitalIn)
publicStatus DAQmxWaitUntilTaskDone = (taskHandleDigitalOut - 1).
publicStatus = DAQmxClearTask (taskHandleDigitalOut)
publicStatus = DAQmxStopTask (taskHandleAnalog)
publicStatus = DAQmxClearTask (taskHandleAnalog)
publicStatus = DAQmxStopTask (publicCounterHandle)
publicStatus = DAQmxStopTask (taskHandleDigitalIn)
publicStatus = DAQmxClearTask (taskHandleDigitalIn)
taskIsRunning = FalseThank you.
You were right: it was a buffer overrun. I was using integers when I should have used doubles.
Thank you for your help.
-
Spectrum of writing and reading spectrum
Hi, I am currently busy writing read an optics Oceans USB 2000 spectres + I need to take 20 lightspectra of samples and connect these Spectra I have a file for analysis later. Logging seems to be no problem but read the correctly. The Spectra does not have the right dimensions. Begin 188 nm and in the graph, it starts at 0. When I put an offset of 188 in the pic is not in line with the right wavelength. That will become clear in the images below. It's the same spectrum, but the reading part is false. Thanks for help.
You must use an XY graph, whose data are a group of two tables: the array of X (wavelength) and the array of Y (intensities).
-
Writing and reading the same excel file
Hello.
I wanted to write a few values in the excel sheet and after doing some math here I want to read the same file.
Can I do this? Or there is a better way to accomplish the same task.
Kindly help.
Thank you
To do this you don't need a file. See the attached example, I guess it will work
-
How to activate Windows 7 open and read works database
Why Windows 7 my friend not able to read my Works spreadsheet? What should we do for work and compatible Windows 7?
Discussions in microsoft.public.works.win
You will be easier with your question work when repost you it in the above works Newsgroup.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For any question on Windows 7:
http://social.answers.Microsoft.com/forums/en-us/category/Windows7
Link above is Windows 7 Forum for questions on Windows 7.
Windows 7 questions should be directed to / stationed there.
You are in the Vista Forums.
See you soon.
Mick Murphy - Microsoft partner
-
Keyboard for blackBerry Smartphones stuck in portrait mode when writing and reading messages
Hi all
I really hope you can help me solve my problem. Since a few days, my keyboard is stuck in portrait mode when I'm in the Messages menu. No matter what I do, it cannot switch to see the landscape. I tried to rotate in all directions, but without success. Apart from the Messages menu, the keyboard orientation changes as it should. But at the time wherever I press the Messages button, the display immediately switches to portrait. Apparently I blocked it somehow, but I can't unlock it now. I tried all the options, I changed the sensitivity of the change of the screen, but nothing. It's really boring to write e-mail messages using a SMS keyboard. Can someone give me advice how to restore the display of the landscape keyboard?
Thank you very much in advance.
Hi and welcome to the Forums!
Whenever random strange behaviors creep, the first thing to do is a battery pop reboot. With power ON, remove the hood back and remove the battery. Wait a minute, then replace the battery and cover. Power on and wait patiently through the long reboot - about 5 minutes. See if things return to functioning. Like all computing devices, BB suffers from memory leaks and others... with a hard reboot is the best remedy.
Best!
-
How to set and read cookies in adobe edge animate
Hi all
I need help with writing and reading cookies using the tip of adobe, is there a way to do I serached internet, but I found something simlliar?
Thanks in advance
To test with this plugin in a simple HTML page, you also need to include jQuery itself.
For example:
...
...
There are several different ways that you can load the jQuery.cookie plugin in your composition. Regardless of the method, I recommend loading compositionReady relaxation. It is the trigger that triggers once the composition is ready to play.
This blog shows a way to load in external .js files:
Here's how you would apply this method for the jQuery.cookie plugin:
Enter a code similar to this:
() yepnope
{
Nope:]
' / path/to/jquery.cookie.js'
],full: init
}
);function init() {}
create initial values of your cookie here
}
Who is responsible in the jQuery.cookie plugin.
It would be for you to create/manipulate data of the cookie as necessary for your needs. Most likely, you would do scroll down to a point in the script where you want the data editable or read, add a trigger, and then insert the necessary code.
-
How controls are grouped in the front pannel "write basic series and Read.vi.
I wonder how the controls are grouped on the front. An example is the "basic series write and Read.vi. The rocker of Scripture and the 'rope to wirte' are grouped in a raised area. I couldn't move individual out of this box control when I tried to arrange the controls. How they are grouped and how do I move them individually?
Thank you.
Select the Group of controls you want to Group/Ungroup and select the option group/ungroup as shown above.no wonder in this
-
my window was turn around how do l replace its hard to type and read
original title: happychick
my window was turn around how do l replace its hard to type and read lol
Hi happychick,.
Name like that, very cheerful...
In any case, I think I know what that your implementation to...
Once connected windows press on and now the ctrl and ALT keys Then press the arrow pointing upwards on the keyboard... some graphics drivers have revolving facilities with shortcut keys to activate. Hold ctrl and alt and then pressing the arrow flips/turns keys the entire screen.
Hope that helps!
-
I want to open and read the tax document encrypted from my class last year, how can I do?
Do you remember the password?
Did you change your computer, or reinstall Windows after you saved the file?
What version of Windows you have now? And what version you have when you saved the file? Specify the service pack level.
How do you encrypt and save last year?
What tax preparation software you use?
-
I bought a webcam hp 3110 download stopped and read I need a service pack 3 CD drop a bunch of wied numbers appeared was supposed to type in? or how do I get it
Community thanks for time. I don't know what or how, but the wizard has taken over and I restarted my computer an everthing works now I hope rthanks new norm
-
How to open a pdf and read/print using Microsoft Works file?
Error message: Works cannot open "C:\Users\Desktop\Zeke's Menu.pdf. The file may be in use by another application, the file format is not supported by any of the installed converters or the file may be corrupt.
How to open this file and read/print using Microsoft Works or Notepad or something else?
You can't with these programs - (there is no same Modules for these programs) - you need another program. You must download the free Acrobat Reader http://www.adobe.com/products/reader/ allowing you to read and print PDF files (but you will not be able to edit/modify them with this program).
To edit/change you need another program like free PDF Editor: http://www.freedownloadscenter.com/Business/MS_Office_Add-ins/Free_PDF_Editor.html. You can also download the free OpenOffice Suite 3.2 http://www.openoffice.org/ which is capable to download and work with PDF files (via the writer program). The good thing about OpenOffice is that you can then save the file in another format which CAN be read and used by Microsoft Works or Notepad (even though it may look very different without the features of PDF). OpenOffice is very similar to Microsoft Office and most of the people who do not want to pay for Microsoft Office get OpenOffice instead because it is by far the best alternative (and some say that it is even better - although I don't agree with that).
I hope this helps.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
Maybe you are looking for
-
Problem of monitor Satellite 1410 303 after Windows XP pack 2
After you install Windows XP Service Pack 2 on my Satellite 1410 303, a vertical strip about an inch of width is lost and remains black on the right side of the screen. Is their a way to fix it?Thanks in advanceGeorge
-
Cracked Laptop Screen - what can I do now?
Hi all I have a laptop Toshiba A100-049, I bought in a shop of the comet. Today, I left my laptop on my bed, when I was about to leave the room to go to the bathroom, my cat jumped on my bed and the laptop fell and cracked the screen (I wish the floo
-
RPDF files missing.never post private information such as numbers of mail or telephone! Ideas: pdf files are missing and error 646 You have problems with programs Error messages Recent changes to your computer What you have already tried to solve the
-
error 0641 net4 installation updates the other updates were ok
What are the important dates (2) I tried numrous times and thet echouer fail other updates run okay. I checked on this program and the box was shady as it is not fully enabled will this error code cause the 0641?
-
I forgot my password on windows vista professional and I can't get on windows. How can I solve this... If I can get on, my computer is a compaq Presario 2100