Synchronization with Serial read/write problems. can not get the functionality of the terminal emulator
Hello
I am writing a VI to control PWM with a microcontroller via a serial port. I wrote a simple code for the microcontroller that allows me to set the ratio of duty cycle on a scale of 0-65535. It works very well with Termite of Compuphase (RS-232 plug); The microcontroller invited me to an entry, expected that I would one, updates and expected another entry when I decided to send him. Now, I'm trying to get the same functionality on a LabVIEW vi but hit a snag.
When I tried to send my orders with a series read base and an example of writing, everything worked fine. I could see the prompt entry, write an entry and if I was quick enough, check out the update message. Even when I was not fast enough, I was able to check the update by monitoring the PWM pin with a Logic Analyzer. The problem with the basic example, however, is that I need to update the report to aura cyclical ratio, so I went for an example of reading continues writing. The problem I've met; is that I have to switch between reading and writing to make it work. When I do that, either I don't hold write it down long enough and nothing happens, or I get several updates when I switch to reading. Some of these updates don't even match and produce updates to defective upgrades for example; 16000 16000, 16000, 16000, 6000, 600, 60, 16000, 1600, 60, 0, 0, 0, 16000, 60, 0, 0 etc.
I tried which allows characters of endpoint in the hope that the writing would end at the end and go to reading where he would receive a termination character and wait for me allow writing once again, but nothing helped. I still have to alternate between the two and either get no response on reading several updates of variable accuracy. I tried to remove her allows read/write and their structures of matter in the hope that the loop flow, associated with the characters of endpoint would the case, but then the updates don't register at all. The funny thing is I did a VI like this before with an Arduino and that there not even no need to switch between writing and reading (I'm now using a Board of Freescale FRDM).
I was also the frequency of timeout errors; Error-1073807339 at VISA Read, reason Possible: VISA Hex 0xBFFF0015. I removed the option to stop the while loop if there is an error so I can run but always pops up an error on the judgment occasionally. Could the problem of synchronization always cause me problems?
Would appreciate all advice really, I am providing my slightly modified example screws and can provide the code for microcontroller on request, even if it's very simple.
Thanks in advance, it is
Yusif Nurizade
In other words, frankly, a good bad example you according to your code. Also, you have the order of writing and read upside down in your amendment if the instrument requires a command to return something. It should really be using a structure of the event. The structure of the event around a write and read and use a value change event. I have attached a quick change. This mod is still a reading after writing. If necessary, you may have two separate events to write and read.
Tags: NI Software
Similar Questions
-
Thunderbird: In write mode can not find the tool bar (or menu bar), then how should I send my email?
Well you can press Ctrl + Enter or you could re - turn on the menu and the toolbar https://support.mozilla.org/en-US/kb/display-thunderbird-menus-and-toolbar .
-
I have adobe reader xi and can not find the "create button" in order to combine several files into a single pdf
Hello
Reader is software to view PDF' only.
You must either a pack PDF to perform the function of thin or Acrobat.
Reader is not the software to perform editing functions.
Concerning
Sukrit diallo
-
I bought Photoshop Element online 19/01/2015 and have AD015439775 number, but not the serial number. How can I get the serial number, please?
Mylenium
-
Can't see the terminal emulator port after all control with VISA
Hello
I created a LabVIEW VI to control cycle to PWM channels on a microcontroller FRDM KE02Z reports. The microcontroller, programmed in CodeWarrior, is set up to receive an an input of the terminal string and break it in two parts (the channel name and ratio), which are then applied to the PWM. The code works and I tested with the 2.9 Termite and a Logic Analyzer before ordering through LabVIEW. The problem I had, though, is that I have to completely close LabVIEW to see the port on the new Termite and vice versa.
Previously, I had problems with VI after I something else in it, even a VI almost identical, more open as he was using the same port. I get errors and be unable to get my VI to work again unless I restarted LabVIEW. I was able to fix by adding a VISA flush the IO buffer according to a discussion earlier (http://forums.ni.com/t5/LabVIEW/Timing-issues-with-Serial-Read-Write-can-t-achieve-terminal/m-p/2636... once the configuration of the Port series and at least now I can jump between the screws I am still unable to see the port jumps between LabVIEW and termite, unless I close one;) Close VISA and the closure of the VI are not enough, I must close LabVIEW himself. Is it possible to achieve only within the VI? For example using a VISA or VISA clear Flush at the end (after closing VISA)? If Yes, what is the difference/preference between them?
As I mentioned previously, the VI is functional, but I would like to know what is happening for future considerations. Would appreciate any advice.
Hope to hear from you,
Yusif NurizadeYou have not wired resource VISA through the stop event name so it doesn't close anything.
-
I have a new mac air and can not get the bookmark to be deleted in Safari.
I have a new mac air and can not get the bookmark to be deleted in Safari. It has default Favorites - I don't want to see them--when I right click and select Remove - I get this error message.
You are using Safari with bookmarks, history, and imported passwords of Firefox. To change your Favorites, you must first keep or delete data from Firefox.
When I click on "do not keep" nothing happens.
Please, back up all data before proceeding.
Triple-click anywhere in the line below on this page to select this option:
~/Library/Preferences/com.apple.Safari.plist
A right click or Ctrl-click on the line and select
Services ▹ reveal in Finder (or just to reveal)
of the contextual menu.*, a file must open with a selected item. Quit the application runs. Move selected item to the office, leaving the window open. Restart the application and test. If there is no change, leave again and place the item you back where he was, crushing the that may have been created in its place. If not, remove the item you moved. If possible, restore from a backup prior to the problem.
* If you do not see the item context menu copy the selected text in the Clipboard by pressing Control-C key combination. In the Finder, select
Go ▹ go to the folder...
from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.
-
I can not get the norton for 36 firefox toolbar. Have run Norton live update repeatedly. He updated of all good and applied a patch. When I go to the firefox menu > Modules > extensions, toolbar Norton is grayed out and says he is not compatible with firefox 36 and is disabled. Help! I need my Norton safe.
Hi Cathie7372, according to Norton the latest version of the toolbar is compatible with firefox 36 is 2014.7.10.26 - your watch as 2014.7.10. 16...
as norton distributes the updates themselves we are probably not able to help much - please contact norton support if you do not receive the last update, even after running liveupdate repeatedly. they should be able to help get their product to date.
-
I use the old style Firefox browser and can not get the password manager to remember a password of my main site. How can I do this?
Thanks for the advice, I went to another program... Last time... and saved my passwords with it. I find it easy to use and non-intrusive, and it has several features that are very convenient for me.
-
why I can not get the same apps I have on my iPad?
why I can not get the same apps I have on my iPad?
Because they are different versions for different operating systems.
-
I have Firefox 8.0.1 and since the update to it, some sites, I need to go so that Firefox will not accept certificates which is accepted in the previous version. I can not get the permanent exception and must uncheck permanent
You can use this button to go to the Firefox profile folder:
- Help > troubleshooting information > profile directory: opens showing the file
It is not usually necessary to create an exception for the certificates.
Possible causes are that a server does not send the full (intermediate) certificate chain or self signed certificates. -
I download the latest version of Firefox, but when I go to sign up for google + it tells me that my browser is no longer supported. I tried uninstalling and everything, but can not get the new version appears. Any Suggestions?
Please see that.
-
Hi everyone, this is my first post, also help on the post would be appreciated.
I bought ipad air 1 after that 2013 but can not get the pages for free. Numbers and imovie I can. IOS9 running at the moment. I have pages when I connect on icloud on my pc. Can I transfer iPad app, because it is not in the ILO purchased in itunes.
Thanks in advance
Newbie
The only way to install an ipad app is through the app store. PC or Mac software does not run on the ipad. Search in the contacts link at the bottom right of this page. Give apple a call.
I guess is the icon for pages in icloud for storing documents pages. At the same time, apple had a cloud based pages. Not sure what happened to her.
R
-
Device, I have an archos 605 WiFi and can not get the Conect to my pc that like Windows 7
I have an archos 605 WiFi and can not get the Conect to my pc that like Windows 7
http://www.ARCHOS.com/support/support_tech/index.html?country=us&lang=en
-
I can not get the latest version of photoshop on my laptop, my office has 20151114.r.301 x 64 my can of laptop ONLY get 20150529.r.88 x 64.
What gives?
Hi again,
Use this link to make a direct download - http://blogs.adobe.com/crawlspace/2011/03/keeping-photoshop-up-to-date.html#cc2015
Concerning
Rohit
-
Bought Lightroom CC for 2 devices. One installed fine but can not get the LIBRARY to work on the 2nd unit. 2nd camera, it is the menu bar, but nothing other than a gray screen, 1 device has all the tools. If anyone can help.
Thanks Tanuj,
After reloading the software it seems to work now.
Maybe you are looking for
-
App accidentally tampered with the Mail application resources file, will not be open.
I use a Macbook Air in 2015, I tried to clear up space on my disk hard when I moved the folder "Resource" in the Mail app package content to the trash. Realizing it was a mistake, I put it back where I found it only to find out that the app does not
-
Thunderbird has a function of QuickView like windows live mail?
This feature offers a view of all e-mails in all mailboxes for all e-mail addresses.
-
Qosmio X 70 - name Qosmio on the lid does not illuminate
You just bought the laptop Toshiba Qosmio X 70, but the name Qosmio on the lid does not,Anyone offer help please?
-
Looking for drivers for Satellite A300 - 1-4 Ubuntu
Hello I bought a new laptop A300 - 1 4 & I installed Ubuntu 7.10 OS on & my problem that some drivers were not working.So if anyone could help me by sending the Wirless Card & Lan drivers & generally all the appropriate drivers for Ubuntu I will be g