Serialize the data into several messages from serial port
Hello
My current LabVIEW project, I want to read data from the serial port and store the (transformed) response in a file.
Since my design model is based arround the Manager of messages queued waiting my serial communication is also build around that. (see this post for my original question).
But now I have the following problem:
In the loop 1 I put several messages in the queue of loop 2.
Loop 2 processes these messages and sends them to the print queue of loop 1.
Loop 1 gets several messages that need to be combined into 1 string and (with other data) in a file.
Just to clarify:
Loop 1, I have send 3 messages for each connected device. Even though I have a separate file for each device, the response to the messages must be in 1 result string.
(Note on the picture: there are other loops running at the same time you will also need to access the serial port for the port for loop 1 is not an option)
Hope you can help.
A next attempt to download the code
The attached Code is provided as is. It has not been tested or validated as a product for use in a deployed application or system, or for use in dangerous environments. You assume all risk for use of the Code and the use of the Code is subject to the license terms of Sample Code which can be found at: http://ni.com/samplecodelicense
Tags: NI Software
Similar Questions
-
Divide the data into several lines in the table
Hello
I use apex of Oracle 10 g 3.2.
I have a requirement like this.
I have a table like TableA
Col1 Col2
90 1
91 1:2:3
92 3
I want the data as
Col1 Col2
90 1
91 1
91 2
91 3
92 3
How to do this?
Thank you
Published by: user13305573 on August 3, 2010 20:16with your_data as ( select 90 as col1, '1' as col2 from dual union all select 91, '1:2:3' from dual union all select 92, '3' from dual ) select y.col1, regexp_substr(y.col2, '[^:]+', 1, t1.column_value) as col2 from your_data y, 13 table(cast(multiset(select level from dual connect by level <= length (regexp_replace(y.col2, '[^:]+')) + 1) as sys.OdciNumberList)) t1 14 / COL1 COL2 ------------------ ----- 90 1 91 1 91 2 91 3 92 3 5 rows selected. Elapsed: 00:00:00.05 ME_XE?select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for Linux: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production 5 rows selected. Elapsed: 00:00:00.03 ME_XE?
-
Add data from serial Port in the indicator series front panel?
Hello! Everyone,
I'm new to LabVIEW but has prior programming experience.I have to develop a front for my camera and this is why I need LabVIEW, data comes from serial Port, so I started internet research / LabVIEW forums and found various tutorials by the help I am able to do the part Serial Communication, but has got stuck in one thing.
Whenever data from serial Port, it gets displayed on the indicator chain but clears quickly, but I want some data comes it does not erase the old data and new data to add with the old data.
I read the string concatenation will work in this case, but I am not able to use it.
Please take a look at my VI attached to this mail.
You must use a shift register to keep your story.
I recommend you go to some of the tutorials available. They will help you a lot to get off on a lot of things like that.
Introduction of 3 hours
Introduction of 6 hours
Bases LabVEW
Paced self-study for students
Self Paced Training beginner to advanced, required SSP
LabVIEW training Wiki
OR learning
Getting started with products OR -
Have windows 7 64 bit, andf Intuit quickbooks pro, Amyuni PDF printer will not save to the PDF format. Message from readings of intuit library printers 'could not print to the printer. Check your printer selection. Impression was canced from another program.
Hi rkusa1,
Thank you for using Microsoft Windows forum
QuickBooks worked very well under Vista? It should also work reliably on Windows 7.
However, you may want to follow these steps.
1. right click on your quickbooks start exe file and open properties.
2. on the Compatibility tab, select the compatibility mode and run this program in compatibility mode for Windows using the following link: http://windows.microsoft.com/en-us/windows7/Make-older-programs-run-in-this-version-of-Windows (only if she worked very well with former Windows operating system)
3. the control privilege level "Run this program as Administrator". Press apply/OK to close properties.
4. start - devices and printers - add a printer - add a local printer - create a new port - local port and name it QBD_PDF.
5. Choose install AMYUNI Technologies - Amyuni Document Converter 300 (click the button update windows if it is not on your list).
6. If windows detects you already have a driver and then choose to replace the current driver. The printer name Quickbooks PDF Converter - do not share the printer - NOT set as the default printer. Finishing
7. start right click - devices and printers - printer QB, choose printer - properties and go to the Advanced tab.
8. remove the checkmarks in the 4 elements with square next to them (lower part of the screen) boxes, and then select "Print directly to the printer" press OK to close the window.
9 restart you computer and open Quickbooks. Open the file - printer installation and make sure of Quickbooks PDF Converter is selected for any operation PDF printer that you use frequently. (on rare occasions, you will see not of Quickbooks PDF Converter on the list, reboot again and you'll get it).
You can now perform operations of PDF in Quickbooks (works for 32 and 64-bit Windows 7)
For a similar question, see: http://social.technet.microsoft.com/Forums/en/w7itproappcompat/thread/2bd30024-0a64-4f6b-a831-8cb7c1e4cce5
If the steps above do not post your question in this link: http://community.intuit.com/quickbooks
Kind regards
Aziz Nadeem - Microsoft Support -
I'll provide too much information because those of us who are computer knuckleheads think that everything is important since it is a mystery to us.
My main computer crashed and the data has been retrieved from the hard drive, including all of my Outlook Express dbx files. There are four years of e-mails in these files and critical that I be able to open them.
My only working computer running XP. It has Outlook Express is installed on it and was once used for e-mail, but not more and not implemented with my ISP to send or receive if it matters at all. Other that the sending and receiving of all the other functions of the OE program appear to be operational.
I have read many explanations on how to open the files dbx on different sites - all is completely different and most seem well beyond my skill level.
There is a fairly painless way to open these files? I don't want to try anything that could damage them. Please... any solution please guide me through in its simplest form - I am 64 but pretend you are explaining the process to a 7 year old. Yes, I'm that lame!
Sorry for writing a novel and thank you to all who take their time to help the ignorant!
I advise you to immediately copies of your DBX files restored. Save the duplicates in a place safe, and don't mess with them.
Then try using one of the various tutorials that you have found on the Internet by using a copy of your DBX files restored.
I did it a few times, but years ago and I DBX http://www.techrepublic.com/forums/questions/how-i-open-corrupted-dbx-files-in-oe/ visualization tool
You just continue to make attempts, using a tutorial after another.
As long as you have these unchanged copies of backup of your DBX files, you should survive it - other than frustration. Email PC remains a mess. -
I've been using a Dell xps 420, 32-bit Vista since 2008. I just bought a new Dell xps-8700, 64-bit with windows 7 preinstalled. I would like to transfer all THE DATA, SETTINGS AND PROGRAMS from my old computer to the new computer. I bought a cable easy transfer of Dell for windows, xp, vista, windows 7 and 8. I read somewhere that the method of cable will transfer all my installed programs. Is this true?
Can someone give me the better, easier and faster method available. At least give me a step by step procedure for this task.
I am 81 years old and not too computer savvy. Any help you can give will BE appreciated. bobnancy
From Internet Explorer
Original title: Transfer all data and program files from old computer to the new computer
I've been using a Dell xps 420, 32-bit Vista since 2008. I just bought a new Dell xps-8700, 64-bit with windows 7 preinstalled. I would like to transfer all THE DATA, SETTINGS AND PROGRAMS from my old computer to the new computer. I bought a cable easy transfer of Dell for windows, xp, vista, windows 7 and 8. I read somewhere that the method of cable will transfer all my installed programs. Is this true?
No, it won't, it will transfer personal files and settings. You will have to reinstall your applications from the original installation files or install CDs and DVDs.
Can someone give me the better, easier and faster method available. At least give me a step by step procedure for this task.
If you really want to move your applications to the Vista computer, you will need to buy a commercial programs such as Laplink PC Mover that will allow you to move your programs:
Laplink PCmover® | Laplink.com
I am 81 years old and not too computer savvy. Any help you can give will BE appreciated. bobnancy
From Internet Explorer
Original title: Transfer all data and program files from old computer to the new computer
-
ADF progress indicator to insert the data into the file table.
I have a requirement where the progress bar should indicate the percentage of completion to insert the data into the tables of database files in a given folder path. I found an article that explains how to get the progress indicator when downloading a file in
http://www.gebs.ro/blog/Oracle/Oracle-ADF-progress-indicator-in-Fusion-Middleware-11g/. I believe that I must first get the total number of files in the folder and then begin to compare with the number of files that are inserted into the table similar to what is done by downloading (getting the file size and download size), but I don't know how to do this. Can anyone help?May be that this example allows you to
* 042. Dynamically change the color of progress bar based on its current value *.
http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/index-101235.html
-
Loading the data into Essbase is slow
Loading the data into Essbase is slow.
Loading speed of 10 seconds on a record.
It is used standard KM.
How it is possible to optimize the loading of data into Essbase?
Thank you
--
GeloJust for you say the patch was released
ORACLE DATA INTEGRATOR 10.1.3.5.2_02 UNIQUE PATCH
Patch ID - 8785893
8589752: IKM SQL data Essbase - loading bulk instead of rank by rank treatment mode when an error occurs during the loading
See you soon
John
http://John-Goodwin.blogspot.com/ -
Hi all
How can we limit and end user of "droping a table."
For example: I created an array of login admin and gave access to "SQL workshop" for the end user. but after that I have created a table, the end user cannot access object browser shop and drop a table. one thing we can do does not have access to the SQL workshop. However, my requirement is the user needs to access the data workshop, which is located under the SQL workshop but they it should not access the tables.
Kindly let me know how we can do this?
Thank you
Vinod Paparaju
User13309437-Oracle wrote:
Please update your forum profile with a recognizable username instead of "User13309437": Video tutorial how to change username available
Always include the information referred to in these guidelines when you post a question: How to get the answers from the forum
How can we limit and end user of "droping a table."
For example: I created an array of login admin and gave access to "SQL workshop" for the end user. but after that I have created a table, the end user cannot access object browser shop and drop a table. one thing we can do does not have access to the SQL workshop. However, my requirement is the user needs to access the data workshop, which is located under the SQL workshop but they it should not access the tables.
Kindly let me know how we can do this?
There is no way not to restrict access to individual tools in the workshop of SQL. Rather than give the developer-level end-users to access the SQL workshop, create applications containing data support Wizards, where end-user access can be controlled using the standard APEX authentication and authorization schemas.
-
Divide the line into several columns
Hi all
I have a question where I want to divide the line into multiple columns based on the delimiter ' |'.
Staging of Table structure: People_STG, I have people in it.
Create table People_STG(col1 varchar2(4000));
Insert into People_STG(Emp_id|) User name | FirstName. LastName. JobTitle | hire_date | Location_id)
SELECT REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 1) EMP_ID, REGEXP_SUBSTR ( COL1, '[^|]+', 1, 2) USERNAME, REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 3) FIRSTNAME, REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 4) LASTNAME, REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 5) JOBTITLE, REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 6) HIRE_DATE, REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 7) LOCATION_ID FROM PEOPLE_STG WHERE length(regexp_replace(COL1, '[^|]', '')) = 14;
But I am facing a problem here, as in some lines, function is null, but when I run the above query, it is not recognizing the empty element and inserting Hire_date values of function and location_id in Hire_date where function is null.
for example: 1 | akash51 | Akaksh | C | 22/11/14 | 15
Here the function is null, so when I run top to divide query it will insert 11/22/14 in the function column and 15 in Hire_Date.
Please need help on this one.
Oracle Version: 11.2 g
Thanks in advance,
Akash.
There are different techniques to cope with this. Is a simple...
SQL > ed
A written file afiedt.buf1 with t as (select 1 | akash51 |) Akaksh | C | 22/11/14 | 15' as col1 of union double all the
2 Select 2 | akash52 | Akaksh | C | Jobs jobs | 23/11/14 | 15' of the double
3 )
4 --
5. end of test data
6 --
7 select trim (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 1)) EMP_ID,.
8 toppings (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 2)) USERNAME,.
9 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 3)) FIRSTNAME,
10 pads (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 4)) LASTNAME,.
11 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 5)) JOBTITLE,.
12 pads (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 6)) HIRE_DATE,.
13 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 7)) location_id
14 * from (select replace (col1, ' |)) ',' | as col1 of t)
SQL > /.EMP_ID USERNAME FIRSTNAME LASTNAME, JOBTITLE HIRE_DATE LOCATION_I
---------- ---------- ---------- ---------- ---------- ---------- ----------
1 akash51 Akaksh C 22/11/14 15
2 akash52 Akaksh C Job 23/11/14 15 -
inserting data into a table from another table
Hello
I have a to insert a data in the other table.
My requirement is I field Date_effect_date in the departments, I would copy the details field in dept_effect_date of employees.
I used the query
Insert in the dept_effect_date of certain employees (dept_effect_date) departments;
and the result is:
SQL error: ORA-01400: cannot insert NULL into ('HR'. "'"' EMPLOYEES'."" EMPLOYEE_ID')
01400 00000 - "impossible to insert a NULL value in (%s)."
MY DB: oracle 10g XE
Sainaba
You can do this by UPDATE not INSERT.
Sudheeryekkala wrote:
Hello
I have a to insert a data in the other table.
My requirement is I field Date_effect_date in the departments, I would copy the details field in dept_effect_date of employees.
I used the query
Insert in the dept_effect_date of certain employees (dept_effect_date) departments;
and the result is:
SQL error: ORA-01400: cannot insert NULL into ('HR'. "'"' EMPLOYEES'."" EMPLOYEE_ID')
01400 00000 - "impossible to insert a NULL value in (%s)."
MY DB: oracle 10g XE
Sainaba
INSERT the results of will by adding new lines to the table so you have the above error. In your case, you must update the value of the existing column
(or, if the volume is large, then fill the data -
join the table two in a new table CREATE TABLE EMP_NEW AS SELECT * FROM EMPLOYEES, DEPARTMENTS
. fall of
; Rename emp_new to
; * constraints/indexes if necessary be supported...
)
E employees update
Set e.dept_effect_date = (select d.dept_effect_date
departments d
where e.dept_id = d.dept_id);
Concerning
Biju
-
Need help to extract the data into a string of separate brackets
Hello
I have a scenario where I have to extract data into a string that is enclosed in [].
Here's what I want to do...
entry:
[name_first] [name_mi] [name_last]
required output: this must return all data that are placed between square brackets.
name_first
name_mi
name_last
I tried the "REGEXP_SUBSTR' but my version of the database is 9i, and it is available only from 10 g.
Thanks in advance.Hello
You can use SUBSTR and INSTR
This should work in Oracle 9:WITH cntr AS ( SELECT LEVEL AS n FROM dual CONNECT BY LEVEL <= 3 ) , got_pos AS ( SELECT x.txt , c.n , INSTR (x.txt, '[', 1, c.n) AS l_pos , INSTR (x.txt, ']', 1, c.n) AS r_pos FROM table_x x CROSS JOIN cntr c ) SELECT txt , n , SUBSTR ( txt , l_pos + 1 , r_pos - (l_pos + 1) ) AS sub_txt FROM got_pos ORDER BY txt , n ;
Sorry, I don't have an Oracle 9 database now; I had to test this in Oracle 10.
jimmy437 wrote:
... I tried the "REGEXP_SUBSTR' but my version of the database is 9i, and it is available only from 10 g.It's true. Regular expressions are very useful, but they are not available in Oracle 9 (or earlier).
Oracle 9 has a package supplied by Oracle, OWA_PATTERN, which provides regular expression features:
http://docs.Oracle.com/CD/B12037_01/AppDev.101/b10802/w_patt.htm
I know it's the Oracle 10, documentation, but there are in Oracle 9, too.Oracle 9 is very old. You should consider the upgrade.
-
Loading the data into Essbase (add the crash)
Hello
We are loading data from oracle to target Essbase cube table. How to manage ODI loading data to add to rather than replace the last value?
Ex: We have the data source with the mapping of M:1, so we court statement case [case when the Group has, B, C and D] is there a setting in ODI who allows to add (add) instead of overwrite data?
Currently, the value of data in C is loaded into D instead of A + B + C in D.
Thank you.You can put the CASE WHEN, in the mapping target and continue to use a rule to load a load rule has nothing to do with what you are doing in target mappings.
See you soon
John
http://John-Goodwin.blogspot.com/ -
How to put all the data into one phone to another?
Okay, so I have an iphone 5 c and I want to spend it with old iphone my mother 5 s. I want to move all the data from the 5 c to 5 s. but I don't know how to do it? I'm sure that you connect the 5 c with itunes on a computer to do. Help?
You can do it. First of all, make sure that the 5s are deleted properly: what to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support
Then you can transfer the contents of the 5 c to 5 s: transfer content from your old iOS device to your new iPhone, iPad, or iPod touch - Apple Support
-
DAQ Assistant acquires the data into segments
I'm writing a code that reads and records the voltage, temperature and pressure on a cdaq-9174 using or 9221 and cards or 9173. The problem is that when the daq assistant is set to N samples outputs the data blocks in the graphics. I wish it were a continuous stream so I can see what is actually happening. I tried to change continuously, but it gets an error or is has data about 16000 points in 10 seconds, which is a lot more that I prefer. The code I am using is borrowed from another person and then the installation exactly it works on this computer, but not mine. Does anyone have any suggestions on how to solve this problem. I enclose the code as well as the sub live he uses.
Thanks for all the help. I didn't know at first that the NI 9237 card has a minimum sampling rate of ~ 1600 Hz. I am now able to taste to 2000 Hz then use decimating continues to write in my file at 200 Hz.
Maybe you are looking for
-
I have my Presario CQ42-268tx since 2010 last and I want to update (I havedrive SSD and its processor i3 to i5 ts) I really like this loptop because it always works as well as other new models... what should I do first to find the right spare wheel t
-
Satellite L300 - 12K PSLB0E: hardware upgrade
Hello! I would like to increase my ram, but the Toshiba site, the specifications indicate that the max ram is 2048.Is this correct, or if I can replace my 2 x 1024 for example putting 2 x 2048? I want to upgrade the processor too. Is this possible? T
-
Office Jet Pro 8740: product is no longer supported?
No matter what I do my printer will not use tray 2. I have the latest version of the driver, under the utility's watch there two trays, tray 2 as the tray by default, but it prints always always always only from Tray 1. But more frustrating is I bou
-
I'm having trouble installing KB2443685; Help, please!
-
Greetings workshop__
I installed Greetings Workshop, but cannot open it because the computer says that "there is a problem with the database