Problems with the simple serial communication.
I followed a tutorial online to start learning basic communication series. The involved tutorial shorting pins 1 and 3 on port 1 Comm and write a simple program (attached). I've edited it a bit, the program to see varied results I get when trying to write and read a simple sentence via a serial port.
Could someone explain what causes the kind of result shown in "Serial Comm example.png"? I think it has to do with timing. Why would be transmitted only the parts of the sentence?
Thank you
Sarah
sarahzig wrote:
The involved tutorial shorting pins 1 and 3 on the Comm 1 port
What should be pins 2 and 3? On a standard serial port DB-9, pin 2 is the receive and pin 3 is the transmission.
Now for your code...
1. move the Serial Port to be before the loop to set it up. Simply configure the port once.
2. close the port after the loop.
3. managing your error after closing.
4 stop your loop on an error or the stop button has been pressed. You will need a RC in there.
5. no need to Flush Buffer function. Remove it.
6. using the bytes to the Port is a dangerous thing. It introduced all kinds of race conditions that are interesting. Instead, say VISA reading to read the number of bytes that you expect to read.
6a. Moreover, don't forget to send a character to end of line at the end of your data and all the number of bytes to read something a lot more than you ever expect read. The VISA read will stop reading when he a) sees the number of bytes, it was said to read, b) sees the stop character (currently enabled and set to a line break, which is part of the end of line), or c) the time-out occurs. Whichever comes first.
7. with 6, the wait is no longer necessary.
Tags: NI Hardware
Similar Questions
-
Problem with the simple query.
Hi all
I am facing problem with the query below
Select A.COL1, A.COL2
B.COL1, B.COL2
FROM TABLE1 A
TABLE 1 B
WHERE A.header = '123'
AND B.header = '123'
AND nvl (A.COL6, 'ABC') = 'ABC '.
AND NVL (B.COL6, 'DEF') = 'DEF '.
Basically, my requiremenyt is: I have only one table, TABLE1 here, which has a line two lines (for the same header) as "ABC" and another is "DEF". Table 1 has two columns (col1, col2) that should be displayed for both lines.
When the header has two records in table1 top query works. and but if I do not have a record for any header example there are a record for "abc" in col6 only. so my query above does not work because there is no record for 'DEF' in col6. But I want to again request to fecth the output (for b.col1 and b.col2 should have null values)
could you pls suggest me how to get the 4 columns.
Thanks in advance
Kind regards
UVA.
Try to place the status of outer join on column: analytical_criterion_code as
and nvl (AUDIT.analytical_criterion_code, 'AUDIT2') = 'verification2. '
.
.
and nvl (TRANS.analytical_criterion_code, 'TRANS2') = 'TRANS2.
In the sub query based on the opinions that you have given in post # 1, although there is no value "DEF * ' for col6 due to the condition of outer join on b.col6 (+) line is extracted with b.col [1,2,3] as NULL values. Try to remove the (+) sign b.col6 and test.
with t as)
Select 111 col1, col2 'aaa', 'ABC' col6 123 header of all the double union
Select 222 'bbb', 'DEF' col6, 123 double header
)
q as (select 123 double header)
Select A.COL1, A.COL2, A.COL6
B.COL1, B.COL2, b.COL6
q.header
T a
t b
q
where a.col6 (+) = 'ABC '.
and b.col6 (+) = "DEF."
and q.header = a.header (+)
and q.header = b.header (+)
-
Problem with the installation - serial number
I recently installed RH8 as an upgrade to X 5. There is no serial number anywhere on the DVD case, so I was only able to install it in trial mode. I spent an hour on the phone transferred back and forth between customer service and tech support, each insisting it was the other Department that should help me. No luck. Does anyone know a quick way to get this problem resolved?
Thank you!Discovered that we purchased through our representative of Dell, I have so I was able to get the serial number on his part.
-
Problems with the CS4 serial code
Hello, I have a copy of Creative Suite 4 that has not been used for some time and I want to use again. Installing the software and checked the serial number on the purchase of Adobe License Center, but the code will not work. Concerning
You get an error message? See if any the following look familiar...
Error "serial number is not valid for this product". Creative Suite
http://helpx.Adobe.com/Creative-Suite/KB/error-serial-number-valid-product.html
Error failed to validate the serial number | CS6
http://helpx.Adobe.com/Creative-Suite/KB/unable-validate-serial-number-CCM.html
Error "this serial number is not for a product calling it" | CS6, CS5.5, CS5
http://helpx.Adobe.com/Creative-Suite/KB/error-serial-number-qualifying-product.html
Using redemption code
http://helpx.Adobe.com/x-productkb/global/redemption-code-help.html
-
Problem with the simple Select statements
Hi experts,
I have with SQL Server and I'm going to hurt when I use the similar syntax in sqlplus to query an Oracle table.
For example... my table contains column SCHID SET in the numeric form. Table has thousands of lines and the SCHID column is filled.
Select TOP 100 AFTSCHAUXDATA SCHID;
Get the "Word FROM key not found where expected" error
Select DISTINCT from AFTSCHAUXDATA SCHID;
Download "no selected lines.
Can someone help me please?
Thank you, JohnCan someone tell me how to find the names of the 20 largest tables (bigger which means that most of the files)?
Once you have updated statistics on the table, you can query the DataDictionary: USER_TABLES/ALL_TABLES/DBA_TABLES.
I'm assuming that user_tables will do:select * from ( select table_name , num_rows from user_tables order by num_rows desc nulls last ) where rownum <= 20;
You can find more explanations about the DataDictionary in the Oracle Online Documentation.
Just do a quick and easy search
http://www.Oracle.com/pls/db112/homepage
or
http://www.Oracle.com/pls/db102/homepage
Depending on your version of the database. -
Communication problem with the printer
I'm trying to print on a printer Lexmark 1200 series of a Toshiba laptop. Laptop computer identifies the printer is the printer is displayed in the control panel. Whenever I try to print even if I get a message that says: "communication problem with the printer. Any help is appreciated.
Hi Nick,
1. What is the exact model of the printer number?
2 is this problem limited to any specific application such as Internet Explorer, Microsoft Word etc.?
It seems that some of the 1200 Series printers is not compatible with Windows 7. You can enter the number of exact model and research for more information.
If the printer is compatible and you are always faced with the question, you can proceed with the steps.
Method 1:
Run the troubleshooter and update printer drivers.
Solve printer problemsMethod 2:
If the problem persists. I suggest you perform the steps described in the article.
"Communication not available" or "Document Failed to Print" Error Message and the print job hangs in the print queue
http://support.Lexmark.com/index?page=content&ID=SO4473&locale=en&UserLocale=en_US
Note: Antivirus software can help protect your computer against viruses and other security threats. Have a computer without any security software can cause a potential danger to your computer. Therefore, make sure to activate the firewall and security software once you are finished with the test.
Hope this information helps. Response with status so that we can help you.
-
error message "there is a communication problem with the web server."
I'm trying to connect to three rivers FCU website www.3riversfcu.org and I get the message error "there is a communication problem with the web server." I am running Windows 7 on Toshiba laptop. No idea how to solve this problem? Something in the settings?
Hi, Mayhem15,
See if this troubleshooting help. It was written for Windows XP, but in many cases, these documents still apply for more recent versions of Windows.
How to troubleshoot possible causes of Internet connection problems in Windows XP
-
Problem with the serial number and to purchase
I have the problem with the reception of the letter with code or serial number. I bought a month ago creative cloud for the photographer and the payment made. A letter of confirmation. but still now series or code. Please help me with this
Some general information for a subscription of cloud
Cloud programs don't use serial... numbers you, connect you to your cloud account paying to download & install & activate... you may need to sign out of the cloud and restart your computer and log into the cloud for things to work
.
On this computer, your cloud subscription correctly displays on your account page?
https://www.adobe.com/account.html for subscriptions on your page from Adobe
If you have more than one email, you will be sure that you use the right Adobe ID?
.
If Yes
Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud
-Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
-http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
-ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
-http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
.
If no
This is an open forum, Adobe support... you need Adobe personnel to help
Adobe contact information - http://helpx.adobe.com/contact.html
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
-Select your product and what you need help with
-Click on the blue box "still need help? Contact us. "
-
Problem with the serial numbers on the laptop?
I have CC on my desk at work with a composition of the team, I was told that I could use this subscription even on my laptop at home to work at home. However, when I downloaded the CC and the programs I need, whenever I try to open a program, it tells me I need a valid serial number, who said an administrator at work that it was not necessary and should be a problem with the other adobe programs I. I recently reformatted my computer and only Adobe products, I think I would have left perhaps are pdf reader and flash for Web sites.
Hi linphoang,
I checked your account of the CTC, you have nt yet accepted the invitation send you in your mail.
Please check the Inbox, spam, unwanted of email & accept the invitation.
Once the invitation is accepted, please launch any product & the license of the software, identify yourself & it will be activated.
Hope this works for you.
Kind regards
Baudier
-
I have a problem with the HP Deskjet2545 do not print on the computer.
Printer does not print. Computer says "printer error". Convenience store said that the problem is resolved. The printer is 'ready' doesnot even impression. What is the solution?
Original title: hpDeskjet2545.
Hi Matt,
Thanks for posting your query in the Microsoft Community.
Printers to print documents, photos, cards and calendars. You have a problem with the printer doesn't work is not on the computer. It can be difficult when something that is important to you does not work as expected. It's pretty simple and we're here to help you solve the problem. We work as a team and get this sorted out.
Please answer these questions-
(1) what is the exact error message?
(2) have you tried the troubleshooting steps?
(3) what is the version of Windows installed on the computer?
(4) have you made changes on the computer before the show?
I would like more information about the issue.
Note: assuming that you are running Windows 7, I would like to suggest some troubleshooting steps.
Method 1-
I would have you look at the article-
Why can I not print?
http://Windows.Microsoft.com/en-us/Windows7/why-cant-I-print
Solve printer problems
Method 2-
I wish that you uninstall and reinstall the printer.
See the article-
Install a printer
http://Windows.Microsoft.com/en-us/Windows7/install-a-printer
Method 3-
I would have you go through the troubleshooting proposed by HP guide.
Check out the link-
Let us know if you need assistance regarding the issue. We will be happy to help you. We at Microsoft, strive for excellence and provide our customers with the best support.
Thank you.
-
I have a problem with the DVD drive not detected on Windows 7.
I built a new PC (I've built a few of them). This time is not considered my ASUS BD player with Windows 7 DVD burner. It is not in either Device Manager just do not at all recognized. The BIOS for the ASUS P9X79 of luxury see the SATA drive without problem. Sometimes after restarting the BD Player looks and functions perfectly, but when the computer goes to sleep or shuts down is usually not there when it is restarted. Please help me solve this problem :-)
Original title: optical drive not recognized...
Hello
Please contact the Microsoft Community.
You have a problem with the driver DVD being missing on the computer. It can be difficult when something that is important to you does not work as expected. It's pretty simple and we're here to help you solve the problem. We work as a team and get this sorted out.
Please answer these questions-
(1) that you get an error message or error code?
(2) did you have performed the steps in troubleshooting?
(3) have you made changes on the computer before the show?
I would like more information about the issue.
Method 1-
I wish that you are running the fixit-
Hardware devices do not work or are not detected in Windows
http://support.Microsoft.com/mats/hardware_device_problems/en-us
Method 2-
Note: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.
Back up the registry - http://windows.microsoft.com/en-US/windows7/Back-up-the-registryI would have you look at the article-
Your CD or DVD drive is missing or is not recognized by Windows or other programs
http://support.Microsoft.com/kb/982116#top
Let us know if you have other questions about Windows in the future. We will be happy to help you. We at Microsoft, strive for excellence and provide our customers with the best support.
Thank you.
-
I have a problem with the Narrator, repeating words and phrases.
original title: NARRATOR in WIN7 SUPPORT
I use windows7. The annoying Narrator sometimes voices repeat words and phrases. I also need help, change of voice and using Narrator to read aloud my text book I downloaded. It is in PDF format.
Original title: Narrator sometimes repeat words and phrases
Hello
Thanks for posting your query in the Microsoft Community.
You have a problem with the Narrator, repeat words and phrases. It can be difficult when something that is important to you does not work as expected. It's pretty simple and we're here to help you solve the problem. We work as a team and get this sorted out.
Please answer these questions-
(1) exactly where you run the Narrator?
(2) the Narrator extends from a particular document?
(3) have you made changes on the computer before the show?
I would like more information about the issue.
Method-
I wish that return you the items for assistance-
Narrator doesn't read what I expect him
http://Windows.Microsoft.com/en-us/Windows7/Narrator-doesn
Hear text read aloud with Narrator
http://Windows.Microsoft.com/en-us/Windows7/hear-text-read-aloud-with-Narrator
Let us know if you need assistance regarding the issue. We will be happy to help you. We at Microsoft, strive for excellence and provide our customers with the best support.
Thank you.
-
I just paid my creative service cloud for a month, but there is a problem with the service, is that someone has the same problem?
I paid with Paypal, which is linked to my debit card and already wait two days.
Thanks to the community
Please read https://forums.adobe.com/thread/1499014
-try some steps such as changing browsers and disable your firewall
-also clear the cache of your browser if you start with a fresh browser
-check the file hosts for blocked entries https://forums.adobe.com/thread/1912777
http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip.
https://helpx.Adobe.com/creative-cloud/KB/creative-cloud-desktop-application-failed.html
http://helpx.Adobe.com/creative-cloud/KB/failed-install-creative-cloud-desktop.html
or
Your subscription to cloud shows correctly on your account page?
If you have more than one email, you will be sure that you use the right Adobe ID?
https://www.adobe.com/account.html for subscriptions on your page from Adobe
.
If Yes
Some general information for a subscription of cloud
Cloud programs don't use serial... numbers you, connect you to your cloud account paying to download & install & activate... you may need to sign out of the cloud and restart your computer and log into the cloud for things to work
Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud
-Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
-http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
-ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
-http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
.
If no
This is an open forum, Adobe support... you need Adobe personnel to help
Adobe contact information - http://helpx.adobe.com/contact.html
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
-Select your product and what you need help with
-Click on the blue box "still need help? Contact us. "
-
I have Photoshop CS6 and Lightroom 5.7. They are currently installed on a PC with Windows 8.1 Professional 32-bit and 4 GB of RAM. I want to move to a PC with Windows 8.1 Professional 64 bit and 32 GB of memory, because I have a problem with the large RAW from a Canon 5 Ds R. What should I do?
You install exactly in the same way you did the 1st time... Put your disc in the drive, and enter your serial number when asked
Download & install instructions https://forums.adobe.com/thread/2003339 can help
-includes a link to access a page to download the Adobe programs if you do not have a disk or drive
Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq
-
iOS 10 problems with the Mail application
Dear Apple and community support,
Here's my problem:
I have upgraded to iOS 10 on my iPhone 5s this afternoon (September 13), and now I'm not able to open e-mail - Yahoo!, and Gmail. I can receive emails, I'm not able to view the body of these emails. When I press on them, all I see is a blank white page. I can't answer emails either. I can only their flag or remove them. However, I am able to compose new e-mail messages.
Here are the steps that I've taken to try to solve my problem:
- Restarted my phone
- Remove and re-add my Mail accounts
- Made a backup and a restore full while that plugged into my laptop with the latest version of iTunes.
I should be grateful if you would help or more information on this issue.
Thank you
Emily
I also have problems with the Mail application. On my iphone, ipad, and Mac Pro. I have several addresses, a MSN, another on Go Daddy and Gmail. I have various weird problems with threads and every day he re-charge my emails, like if I have never read before. Something is really problematic with Mail.
Can the people of APPLE, you help me?
Maybe you are looking for
-
At this player for a couple of years and it is all great and all, but recently, it does not read the DVD Blu - Ray is very well, but the largest part of my movie collection is now only so many beermats. I have updated the firmware and cleaned the len
-
Definite integral of matrix (50g)
Hello Integrating an INTVX matrix works well. Is it also possible to calculate the integrals (for example I want to integrate all the components of the matrix with x ranging from 0 to 1)? Concerning
-
Hi all, we have a HP Office Jet Pro 8600, running on a Windows 7 Professional (attached USB) Workstation. We found that when a file is scanned into a PDF file of the scanner, it has an option of security enabled by default (see screenshot below). Is
-
TZ300W - how to use the policy monitor host VPN network
is easy to create the network to any host Wan monitor policy. But if I want to monitor VPN host, how can I do...?
-
Test Mode Windows 7? OK, I see this watermark on my desk that says Test Mode Windows 7 Build 7601... I tried to get help for this Microsoft response team, or what ever and, apparently, the guys do not understand what I was talking about... My window