How to split one modbus serial output port into two?
Hi all,
Current Situation
My company has a instrument measuring emission in flue gas. The instrument has only one serial port for "modbus" output. The serial port is being used to sending the data collected by the instrument to our DCS.
My Question
I have a separate data acquisition computer which is also able to collect data over serial modbus. Is it possible to split the existing serial modbus output port into two so that both the DCS and my data acqusition computer can collect data from the instrument at the same time? If yes, what software and hardware do I need? One more point, high reliability is required for both data collection processes - to the DCS and to the data acquisition computer.
Thanks and regards,
Roger
What serial protocol are you using? RS-232 or RS-485?
If it is 485, then it is a multidrop bus, so you can just hook up both receivers to the transmitter via a RS-485 hub. If it uses the 232 protocol, then this would not work as only one device can receive data at any given time, so you could set one node up to repeat the signal to the second hub or use LabVIEW Shared Variables.
A Quick Comparison of RS-232, RS-422, and RS-485 Serial Communication Interfaces
Regards,
Peter Flores
Applications Engineer
Similar Messages
-
How to split one shared iTunes library associated with two iTunes accounts?
My boyfriend and I share one computer and have one shared iTunes library on that computer. We both maintain our own separate iTunes accounts. We have very different tastes in music, literature, film, etc. the library has become quite large and my boyfriend is frustrated by the complexity of synching his devices to just his selections and would like to separate our purchases into two separate libraries based on our iTunes account purchases. What is the easiest way to split into two different libraries?
To my knowledge, there's no quick way.
-
How to partition one column of the resultset into two columns
Step 1
Row_Num | Col1 | Col2
1 52 100
1 52 101
1 52 102
1 52 103
2 52 200
2 52 201
2 52 202
2 52 203
2 52 204
2 52 205
Step 2
Row_Num, Decode(Row_Num,1,Col1,Null) Col1_1, Decode(Row_Num,2,Col1,Null) Col1_2,Decode(Row_Num,1,Col2,Null) Col2_1, Decode(Row_Num,2,Col2,Null) Col2_2
Result
Row_Num | Col1_1 | Col2_1 | Col1_2 | Col2_2
1 52 100 Null Null
2 Null Null 52 200
1 52 101 Null Null
2 Null Null 52 201
1 52 102 Null Null
2 Null Null 52 202
1 52 103 Null Null
2 Null Null 52 203
2 Null Null 52 204
2 Null Null 52 205
What i want it is something as below.
Row_Num | Col1_1 | Col2_1 | Col1_2 | Col2_2
52 100 52 200
52 101 52 201
52 102 52 202
52 103 52 203
Null Null 52 204
Null Null 52 205
Null Null Null Null
Null Null Null Null
Null Null Null Null
Null Null Null Null
Which means move nulls to the last in a group
I don't need Nulls at the end. I have added that just to show all rows.
I would also like to know whether any analytic functions can be used to bring the desired result.
please consider the columns as varchar type even though it has numeric values.
thanks,
renga
Edited by: user12367921 on Dec 18, 2009 5:25 PMBoth Solomon's solution and Frank's one are based on the sequence of the row. Let's delete the (1 52 102) row from the table, the two queryes will behave the following way:
Solomon
SQL >with t1 as (
2 select 1 row_num,52 col1,100 col2 from dual union all
3 select 1,52,101 from dual union all
4 select 1,52,103 from dual union all
5 select 2,52,200 from dual union all
6 select 2,52,201 from dual union all
7 select 2,52,202 from dual union all
8 select 2,52,203 from dual union all
9 select 2,52,204 from dual union all
10 select 2,52,205 from dual
11 ),
12 t2 as (
13 select row_number() over(partition by row_num order by col2)
14 dense_rank() over(order by row_num) rnk,
15 col1,
16 col2
17 from t1
18 )
19 select distinct case rnk
20 when 1 then col1
21 else lag(col1) over(partition by rn order by rnk)
22 end col1_a,
23 case rnk
24 when 1 then col2
25 else lag(col2) over(partition by rn order by rnk)
26 end col2_a,
27 case rnk
28 when 2 then col1
29 else lead(col1) over(partition by rn order by rnk)
30 end col1_b,
31 case rnk
32 when 2 then col2
33 else lead(col2) over(partition by rn order by rnk)
34 end col2_b
35 from t2
36 order by col2_a nulls last,
37 col2_b nulls last
38 /
COL1_A COL2_A COL1_B COL2_B
52 100 52 200
52 101 52 201
52 103 52 202
52 203
52 204
52 205
Frank
with t1 as (
select 1 row_num,52 col1,100 col2 from dual union all
select 1,52,101 from dual union all
select 1,52,103 from dual union all
select 2,52,200 from dual union all
select 2,52,201 from dual union all
select 2,52,202 from dual union all
select 2,52,203 from dual union all
select 2,52,204 from dual union all
select 2,52,205 from dual
got_rs AS
SELECT row_num
, col1
, col2
, ROW_NUMBER () OVER ( PARTITION BY row_num
ORDER BY col2
) AS r_col2
FROM t1
SELECT MIN (DECODE (row_num, 1, col1)) AS col1_1
, MIN (DECODE (row_num, 1, col2)) AS col1_2
, MIN (DECODE (row_num, 2, col1)) AS col2_1
, MIN (DECODE (row_num, 2, col2)) AS col2_2
FROM got_rs
GROUP BY r_col2
ORDER BY r_col2
OL1_1 COL1_2 COL2_1 COL2_2
52 100 52 200
52 101 52 201
52 103 52 202
52 203
52 204
52 205In both resultsets the code 103 is now associated to the 202. Is it correct?
My query assumes (and is a strong assumption) that two rows of the source table can be associated only if they have the same last two digits of the col2 column.
SVIL>with t0 as (
2 select 1 row_num,52 col1,100 col2 from dual union all
3 select 1,52,101 from dual union all
4 select 1,52,103 from dual union all
5 select 2,52,200 from dual union all
6 select 2,52,201 from dual union all
7 select 2,52,202 from dual union all
8 select 2,52,203 from dual union all
9 select 2,52,204 from dual union all
10 select 2,52,205 from dual
11 ),
12 t1 as (select * from t0 where row_num=1),
13 t2 as (select * from t0 where row_num=2)
14 Select t1.col1 col1_1, t1.col2 col2_1,t2.col1 col1_2, t2.col2 col2_2
15 from t1 full outer join t2 on t1.col2+100=t2.col2;
COL1_1 COL2_1 COL1_2 COL2_2
52 100 52 200
52 101 52 201
52 103 52 203
52 205
52 202
52 204The results are quite different.
I don't know what is the correct approach (or whether both of them are wrong), hope Renga will clarify.
Max
[My Italian Oracle Blog|http://oracleitalia.wordpress.com/2009/12/19/totali-parziali-con-group-by-rollup/] -
How to map one modbus register to another modbus register in labview?
How to map one modbus register to another modbus register in labview? For example, let 40001 equal to 30001. Thank you.
StevenHello Steven,
Sorry, I was under the impression that you were using the complete Lookout development software (as opposed to just the Lookout Protocol Drivers). You cannot do any development (connections, mapping, etc.) with the Lookout Protocol Drivers (LPD). So, you were right. We have to do this in LabVIEW.
I ain't sure how exactly the Modicon floats work, but assuming what you're saying is correct, in your LabVIEW VI(s) you would read the DataSocket item corresponding to 40yyy+1 first, and then write this value back to the DataSocket item corresponding to 40xxx. Similarly, you would read the DataSocket item corresponding to 40yyy and then write the value read back to the DataSocket item corresponding to 40xxx+1.
A tip: I wou
ld at first make sure I have the OPC communication between LabVIEW and LPD working. Make sure you can read and write to the LPD registers via their DataSocket/OPC equivalents in LabVIEW. You can then implement the mapping as described above.
Hope this helps,
Khalid -
How to SPLIT ONE STEREO TRACK'S L & R CHANNELS INTO TWO MONO CHANNELS
Does anyone know if this is possible: How to SPLIT ONE STEREO TRACK'S L & R CHANNELS INTO TWO MONO CHANNELS? There's got to be a way, but I just can't find out how.
I recorded a podcast -- me and a guest, with each mic going to its own mono channel. When I opened it in Audition it mixed them into one stereo channel.
Thanks in advance for any help.
Best,
ShawnYou're a big help! Thanks very much. Simple yet I must be going blind because I didn't see that in the menu.
Take care and THANKS AGAIN.
Shawn -
How to Split one SAP instance to Multiple Instances?
Can any one guide me how to Split one SAP instance to Multiple Instances?
Thanks in Advance.
Regards,
VBSure, just extract the pages to a new file. The form fields will stay in
place. -
i would like to ask about imovie. my project cannot output and how can i divide my project in imovie into two part??, i would like to ask about imovie. my project cannot output and how can i divide my project in imovie into two part??
Go to the Project Library View and select your project.
Then FILE/DUPLICATE PROJECT and give the duplicate a name like "your name - part 1".
Then duplicate it again and give the duplicate a name like "your name - part 2"
Now you can open "part 1" as a project and delete everything that is in part 2.
Open "part 2" as a project and delete everything that is in part 1. -
How can I make a detailed form widget into TWO columns?
how can I make a detailed form widget into TWO columns? I have a contact form with a lot of fields.
Hi Whatsmyjam9999,
You can place a blank composition widget then click tigger 1, click inside target 1 and from menu--> files--> place the image and adjust it's dimensions, you can repeat the same steps for trigger 2 and 3
Here is a video link http://ghai2.worldsecuresystems.com/jing/2013-07-22_1442.swf -
Hello,
I have managed to program a NI 6602 card in LabView to send pulses on three different output ports, one pulse on each output port (with individually chosen delays) for each input trigger pulse coming on a separate input port. It is the DAQmx Create Channel (CO-Pulse Generation-Time)-VI that I have used for this, see attached code. However, this VI controls both pulse delay and pulse width, and therefore uses two counters for each output port (although you only specify one counter in the VI input signals), as I understand.
In my application though, I only need to have the delay chosen, the pulse width can be arbitrarily short, and thus I should only need one counter for each output port. How do I accomplish to program this in LabView?
Best regards,
Claes
Attachments:
Configure Side Camera Flash 1 Triggering.vi 47 KBWell you're welcome to do that--it will work just fine as long as you are configuring a start trigger.
<rant>
However, personally I really don't like putting multiple counter outputs in the same task. I have seen so many people assume that the counter outputs would be synchronized due to having them in the same task when this is not the case (you need to configure a start trigger in order to synchronize the counter outputs even if they are in the same task). This is the only case I can think of where multiple channels in a DAQmx task are not automatically synchronized.
As an example:
Running this on my PCIe X Series gives a measured 2 edge separation of 1 ms + {7.78 us - 10.11 us}. This would likely be much worse on a bus with more latency (e.g. USB).
The resulting output is close enough to what you might expect that it might go unnoticed, but really these counter outputs are not synchronized and it would be easy to glance at the code and not even think twice about it. For the small amount of extra work on my end to create a separate task for each counter, it really clears up some ambiguity about what the counters are actually doing. For me it's worth it.
So again, for your case there really isn't a problem with having the counters in the same task since you are using an external start trigger anyway. I have just gotten in the habit of avoiding doing this.
</rant>
Best Regards,
John Passiak -
How to split one video in 2 screens?
Hello,
I have been trying to do this for a while but I can't find the way. Hopefully someone here will know how.
I want to be able to split one movie in 2 screens. The movie is panoramic format (1440 x 480). I have done it in the past but using DVD players and a syncronizer, which is complicated and expensive.
Using a computer, what tipically happens is that, for instance using QT, it asks you to use one or another screen, but it won't play in both.
An example of what I mean can be found here (first image on the top):
http://www.digitaltigers.com/dual-monitors.shtml
This is easy with a picture, I would like to do the same with video. I have contacted that company and they advised me to talk to Apple saying is probably an issue with the video card.
I heard there is video cards for PC that will do it, does anyone knows of a card for the Mac?
Thanks
Mac Pro 2.66 Mac OS X (10.4.8)Also, ideally I would like to connect 2 video
projectors to the computer and run the video in 2
screens.
If the projectors have VGA inputs you can use the Matrox DualHead2Go
<http://www.matrox.com/graphics/en/gxm/products/dh2go/home.php>
It will make the two projectors appear to the computer as one wide screen projector. You connect it to the computer's DVI port with a DVI to VGA adapter.
If the projectors are set to 1024 x 768, the computer will see a 2048 x 768 display. -
Hi guys,
I'm searching for some idea, how to split some information depending on a few rules.
Example:
We have the same accessory (product hierarchy = zx) in divisionX for product1 and product2 (another division Y and Z).
Now I want to split this one value from PH = ZX from division X onto Division Y and Z.
Of course there are another products in Division X as well, they have to be split on another Divisions depending on some rules.
PH ZX, from Division X = 100 (Split on Div Y = 45%, Div Z = 55%)
PH ZZ from Division X = 10 (Split on Div A 33, Div B 33, Div C 33)
Do you have any ideas how to solve this task? If yes, please describe some how to ....
Thank you very much for your valuable help
Regards
StandaHi Reddy,
thank you very much for your reply. I know this couldn't be done in one step and it might be uneasy, but I don't have any clue what do you want to say.
Could you be a little bit more specific? Some example how can I create an restricted key figure based on division and product hierarchy at the same time?
Thank you
Standa -
How effective splitting one file in to multiple in PI
Hi Forum,
Is it possible to split one file in to 20 or more using PI.
If yes,how effective it is.Yes. And there are various ways for doing this.
1. In the adapter engine while picking the flat file using option "Recordset per Message"
2. Using multi-mapping message split.
3. Using BPM loops.
The effectiveness would depend upon the size of message and no of records it contain. e.g. if the size is small, say only 20 records, then splitting the message in 20 parts would not be a good option. But if the size is too large with say thousands of messages, then splitting would turn out to be effective.
Regards,
Prateek -
How to split one page into different frames in ADF?
Hi,
Can any one please guide me how to split a jspx into different frames.
i.e., left frame contains <af:panelSideBar> which contains multiple <af:commandMenuItem> s. And whenver we click on the one <af:commandMenuItem>, it has to show the corresponing page inside center frame in this page itself. Is it possible in ADF? Which component we need to use?
Can anyone guide me on this?
Thanks in advance,
Regards,
Suresh KethireddyYou can use a combination of the ADF Faces 10.1.3 components like:
af:panelPage
af:panelSideBar
af:panelHorizontal
af:panelGroup
to organize the screen layout, but it is not the interactive splitter that the 11g product provides.
You can all all the 10.1.3 ADF Faces Components here:
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/imageIndex.html -
How to split one scene in two in iMovie HD 06
Hi there, is iMovie HD 06 able to split one scene in two? I am trying to insert slow motion for part of the scene but not the whole. Can I do that? Are there alternatives?
Easy. Select the clip you want to split, therefore highlighting it, move the playhead to the point that you want to start your slo mo, go up to EDIT and select Split Video at Playhead. Repeat for the end point of that slo mo bit and you are left with three separate clips.
-
How to split one pdf form into multiple forms
Is it possible to split one PDF form into three separate forms without recreating each one?
Sure, just extract the pages to a new file. The form fields will stay in
place.
Maybe you are looking for
-
Macbook no longer connects to internet
I recently purchased a used Macbook 1.1 with a fresh install of 10.5 and used it for about a month with no problems whatsoever. About two weeks ago I changed locations (I´m currently traveling around) and the Airport would not connect to the new netw
-
Creation of condition table without copy
During creation of Condition table ( without copying any condition from available tables), Is it possible to see all field catalouges available? and if possible then how can we see all fields available to add desired ones into our table?
-
Post Author: tegage CA Forum: General I have an application that was succesfully using the embedded version of CR (VS 2005). I upgraded to CR 2008 so that I could reorder parameters. The conversion seemed to go well and all runs fine in Visusal Stu
-
I am using an application called PdfName.exe to open an external PDF file, this application just runs and opens the file. I configure this app correctly and put it on an fscommand folder and when I double click it it open the file I need. However whe
-
Documents are not included in COPA
Hi COPA Experts, The accounting documents are not included in COPA KE21N settings. could you please assist us how to include accounting document in COPA.