Hi!!I have some problems with the synchronization of my system, and I don´t know how I can solve this!
My system consists of differents vi´s.Some of them are used to read analogic inputs and digital inputs, using the serial port.
The values that I read, go through differents vi to be proccesed, and at the end, these values are written in a file, all the values in the same file.
My problems of synchronization are:
1. I have one vi per input, and all of them use the same serial port. How can I synchronize them to avoid serial port conflicts? (using queues??) And how can I do, to get differents number of samples/sg with every vi? I have to introduce them in differents loops?
2. The other problem is that, for example, I want to read 8 samples/ s but I only want
to write two samples every second. How can I do to avoid stoping the data flow?
Maybe, my problem is that I want to see the system like
one block, and I am ignoring that, although all the system works like a block, every part works using a different "speed". I don´t know how tools can I use to combine two ideas, working like an only system( data dependence, some vis need the data of others vi to be able to work) and working getting differents numbers of samples/s.
I have seen that there are synchronization vis. I am going to glance at them, maybe I find something interesting but I amsure that your help will be very useful?
Thanks in advanced!!
Graci
I think you are pretty much on the right track with Queues. I have implemented a very similar system myself using queues. I have even different systems connected to the serial interface, but I can synchronise them all easily using the following method:
1) Make a VI for opening the serial port and reading the data. The data (parsed to extract the numbers required) are then stored in an array (Shift register). If the pre-determined time delay is reached (say 5 seconds) the values are averaged and written to a Queue with a defined data type. Save the VI as a VI template.
2) Make a VI which starts an instance of this template VI for every channel you require. You can use VI Server to set values on the new front panel before you set it's property to "running". Setting a timer value for all can help ensure that the X-Axis of your timing values (if you require) are synchronised. The clue here is to define and initiate a QUEUE per channel. (RS-232_1, RS-232_2 and so on). The QUEUE name needs to be passed to the VI Template before running so that each VI running in the background has an individual link to the main program.
The second part of this VI simply uses an array of QUEUES, polling them one after another with a timeout of, say 5 ms. If data is found, append accordingly to an XY-Graph.
I also add in some "Auto termination" in the VI template (MAx number of values allowed in the QUEUE for example) to allow for the background processes to find out if the front-VI is still running or not. There are many different ways to do this, shoose the best for your application.
With this approach, it's not even important what instrument is connected as long as data is written in a specified format into a known QUEUE. I have also developed systems where I can transparently (almost) drop in VI Templates for instruments with similar functionality (output data) from different suppliers.
I would post an example, but the time it would take me to clean it up is too large. Sorry. If you have any further questions, don't hesitate to ask further questions.
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Similar Messages
-
I authorized my home sharing on my itunes for mac to share to my itunes on windows PC, but for some reason my music isn't fully sharing/syncing. Does anyone know how I can solve this problem?
Hi, Dave.
If you're using the BlackBerry browser, you can't configure anything to bypass the RIM servers. I believe you may do so by using the Opera browser, but I haven't tried it myself so cannot comment with authority.
I hope that clears up the issue for you.
- If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated. -
I have a problem with the synchronisation of my iPhone and iPad with Outlook 2007 on my 64-bit Windows 7 PC. For several years,
I have had no problems with the synchronisation by cord connection and iTunes between these programmes. However, a few months ago I decided to use Mobile Me. However, there were problems with duplication of calendars and then “rogue events” – which could not be deleted – even if deleted on Outlook and on the iPhone (or both at the same time) – they would just reappear after the next synchronisation. All other synchronisation areas (eg Contacts, Notes etc) work fine.
I have looked for help through the Apple Support Community and tried many things. I have repaired my Outlook. I have repaired my .pst file in Windows. I have re-installed the latest version of iTunes on my PC. I have re-installed the firmware on my iPhone. I have tried many permutations on my iPhone. I have closed down all Mobile Me functions on the iPhone. I have spent upwards of 24 hours trying to solve this problem.
What am I left with? Outlook works seamlessly on my PC. My iPhone calendar now has no events from my calendar, but does not synchronise through iTunes. Nor does it send events initiated on the iPhone to the Outlook. I am at the point of abandoning iPhones and iPads altogether. I need to have a properly synchronising calendar on my phone. Do you have any suggestions?In the control panel goto the "Lenovo - Power Manager" and click the battery tab, there is a maintenance button in there that will let you change the charging profile for your battery. (from memory, so exact wording may be off)
The lower the numbers you use there, the longer the battery *should* last. These batteries degrade faster at higher charge levels, however storing them at too low of levels is also not good for them... I've read that 40% is optimal, but just not realistic if you use your computer.
--- ThinkPad T61 / Win 7 / Core 2 / 4gb RAM / Nvidia / Still used daily --- ThinkPad Edge 15/ i5 / Win 7 / TrueCrypt / 8gb RAM / Hated it, died at 1 yr 1 mo old --- ThinkPad T510 / Win 7 / TrueCrypt / i5 / 8gb RAM / Nvidia / Current primary machine --- ThinkPad X220 / i7 / IPS / 4gb / TrueCrypt / My Road Machine -
i have problem with the firmeware file...and I do not know what is that
Make sure you are updating your phone the correct way, by connecting to iTunes and clicking Check for Updates on the Summary tab of your iTunes sync settings. Do not try to download the firmware file from the internet first. Also be sure iTunes is up to date before updating.
Delete the existing firmware (.ipsw) file and try again. You will find it at one of the following locations:
Mac OS X: ~/Library/Application Support/MobileSync/Backup
Windows XP: %AppData%\Apple Computer\MobileSync\Backup
Windows Vista: %AppData%\Roaming\Apple Computer\MobileSync\Backup
Windows 7: %AppData%\Roaming\Apple Computer\MobileSync\Backup -
hello i have been trying to install i tunes 10 on to my pc but as i get to the end of installation it comes up with the message windows installer package failed contact support or vendor how do i solve this im running vista of an acer laptop many thanks
Let's try the following user tip with that one:
"There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows -
I have a iPod touch and i installed it on my other laptop until i had just got another one it says unable to connect to iTunes and i forgot my password and i delete the email and i don't know how i can get my i pod touch to work with my new one email.
I JUST NEED HELPI would contact Apple under your warranty. I doubt you received a new iPod since Apple's policy is to give you a refurbished iPod.
-
i got new iphone and when i connect it to my pc, it lost all my current data and replaced it with the backup on my computer, which is from april. so i have lost all my calendar information and schedule. does anyone know how i can reverse this and get my information back?
Every backup replaces the old one, so, unless you included the backup folder in your computer backup routine, you can't get back your calendar info.
The only time iTunes will not replace a backup is, when you use it to restore from, this one will stay in the backup list in iTunes.
More info on backups here: http://support.apple.com/kb/HT1766 -
I have just got the new iPod touch. Everything is working except my iMessage and I don't know how I can set it up.
Illaass
Gave my grandsons iPods for Xmas. Looks like one of them downloaded an app (text+) and must/may have deleated on hisiPod the iMessage app that was included on both with both iPods.
I want to ditch this new app (text+) and return iMessage to his phone as they both are wifi only and iMessaget is what they should both use. Ialso have a iPad (wifi only) and a iphone (both on iOS5) and a MacBook on 10.7.2
Any help as to how to do this (I would prefer not to due a full restore to the affected iPod if possible) -
my iphone screen has gone white with a few grey lines down the right hand side.. Has anyone any idea how I can solve this and get my screen back to normal..? Thanks
Hi tag71,
If you are having issues with the display on your iPhone, you may find the Display portion of the following article helpful:
iPhone: Hardware troubleshooting
http://support.apple.com/kb/ts2802
Regards,
- Brenden -
Tables with more than one cell with a high number of rowspan (ej. 619). This cell can not be print in a page and it must be cut. But I don’t know how indesign can do this action.
set the wake-on lan on the main computer
The laptop's too far away from the router to be connected by ethernet. It's all wifi.
No separate server app on the laptop, it's all samba
The files are on a windows laptop and a hard drive hooked up to the windows laptop. The windows share server is pants, so I'd need some sort of third party server running. Maybe you weren't suggesting to use Samba to connect to the windows share though?
I'm glad that you've all understood my ramblings and taken and interest, thanks The way I see it, I can't be the only netbook user these days looking for this kind of convenience, and I certainly won't be once chrome and moblin hit the market.
Last edited by saft (2010-03-18 20:38:08) -
Hi ,, I need to reset my security question but the email that I should reserve the reset link has changed , and i don't know it ,, what can I do ????.
If you still have problem, call Apple to help reset your Security Question.
http://support.apple.com/kb/HT5699 -
I have somehow managed to lock my phone to one laptop, like I cannot put music on my phone from another laptop and i have to put in screen lock for it to even play! Anyone know how I can fix this ?
AshleyG0990 wrote:
I have somehow managed to lock my phone to one laptop, like I cannot put music on my phone from another laptop
What you did was sync it to a computer. The iPhone can sync to ONLY one iTunes library at a time. you can't put media on it from multiple computers. It's been this way since 6/29/2007.
i have to put in screen lock for it to even play
Completely different issue. What did you think it would do when you set a passcode for the phone? -
I accidently deleted the today icon in history and I don't know how to get it back.
Where the history icons are located with today, yesterday, a week, etc I accidentally deleted the today icon and I don't know how to get it back.
Today will automatically reappear once there is history for today. However you can't recover the history that has been deleted.
See also:
*Tools > Options > Privacy > Firefox will: "Use custom settings for history" -
my scrollbar has unexpected moved to the left side of the screen in stead of the right side, and I don't know how to move it back. This only occurs in Firefox.
Set the pref layout.scrollbar.side to ''2'' to place the scroll bar at the right side.
See:
* http://kb.mozillazine.org/layout.scrollbar.side (default is 0: user interface) -
or does anybody, know how i can chance my Account that I can use the Dollar gift Card?
If it's a US gift card then it is only valid in the US with US accounts. If you are in the US then you can try contacting iTunes support and ask them to remove the balance from your account : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
Maybe you are looking for
-
After HP replaced the motherboard, and few days later I got a black desktop and windows not genuine afterwards. Any suggestion what I should do. I tried to use Microsoft support website on the server, and it will not let me proceed to any of their si
-
Hi All I am doing exercise of book "Modern Compiler Implementation in JAVA" by Andrew Appel. It is first exercise and have to develop two functions maxargs to find the maximum number of arguments for print statements ..I am not able to understand the
-
Lazy loading differences Toplink vs. Hibernate - plz. explain
I'm in the process of evaluating both Toplink and hibernate as potential ORM framework to use for a project I'm currently involved in. My question is about how Toplink resolves lazily loaded associations. In hibernate I have to perform a query inside
-
Hi people out there, me facing a problem on replacing the image. I have a array of images. When i double clicked any of the image, there will be a file chooser appeared. This allows the user to choose another picture to replace the current image. So
-
Problem with tiger to snow leopard upgrade
Hi, I wanted to upgrade from Tiger to Snow Leopard and bought a retail 10.6 Snow Leopard install disc MC223Z/A. on the box. 2Z691-6428-A on the disc. It would not let me install it unless I erased and partitioned the destination disc thus losing my s