How to get CAN message periodicity programmatically?
When I have messages with different periodicity in CAN data base file(.dbc), how do I programmatically know what is the periodicity of a given message? In the X-Net data base editor I can see the periodicity, but is there any way to get it in labview code?
Also, some of the messages are to-be-transmitted and some are to-be-received. How can I separate these channels/messages programmatically?
Solved!
Go to Solution.
First the Automotive subforum maybe of more help if you don't find the answers you need here.
Next I'd like to say I despise that conversion library and wish NI would take it off of this site. It hasn't been updated in 5 years and it won't be updated again. XNet has the same frame signal conversion functionality, and you don't need a XNet hardware to use it. It also has bugs that I've reported to NI and their suggestion was to just use XNet so that is my suggestion to you.
Now back to the original question. No the older cheap NI-CAN devices do not have a hardware retransmit functionality. You must call the write function every time you want to perform a write. This usually means a while loop which just runs, and resends out all the frames you want ever N milliseconds. You can do this easily with the elapsed timer VI or make your own timer.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
Similar Messages
-
How to get automatic message output
Hi,
How to get automatic message output while creating po cause i have done all setting in the config but still it does not work what else i have to do.
And 1 more thing how we can maintain condition record for Printoutput & External send for one output type.
Regards,
AnantHi,
Please follow the below steops for the Output of Purchase Order
1. Condition Table
SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
Select:
Purchasing Doc. Type, Purch. Organization, Vendor
2. Access Sequences
SPRO -> -> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
3. Message Type
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
*4. Message Determination Schemas*
4.1. Message Determination Schemas
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
4.2. Assign Schema to Purchase Order
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
5. Partner Roles per Message Type
SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
6. Condition Record
Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data-Messages- MN04
Here you can maintain the condition record.
All above steps u can do from transacton NACE also
now when u create po in the messages u will get the out put method as u have maintained in the above steps.
Regards,
Manish -
Before page refresh how to get alert message
Hello ..
If user refreshes webpage then from flex side how to get alert message.
Thanks in advance.If you don't want it to say "Microsoft Internet Explorer," you can use a different browser. :-)
But, seriously...
If you really want to customize the appearance of a dialog, you can make one with DHTML that looks like anything you want. You can make it look like a system dialog if you want, but you don't have to. (In fact, if you make it look like a Windows dialog, it will stick out like a sore thumb if someone is using another OS.)
I had to create some of these for an online testing application I wrote, because they wanted the tests to be timed, and I discovered that, in Internet Explorer, you could stop the clock just by opening certain dialogs, so I had to suppress "right-clicking," remove the menu bars, and use custom dialogs to communicate with the user. Since then I've re-used these dialogs in a number of other projects. They're pretty handy. -
How to get Mac Messages to NOT save chats?
How to get Mac Messages to NOT save chats?
I went through the Preferences but I do not see where I can check/uncheck save chats. Will someone help direct me?Hello mayonnaise18,
Thank you for the question. You can disable the option to save chats in the Messages tab in Messages>Preferences:
Automatically save conversations when you close them
Choose Messages > Preferences, and then click Messages.
Select “Save history when conversations are closed.”
These steps are to enable the option to save messages, but you would want to uncheck the option to "Save history when conversations are closed." You can find the full article here:
Messages (Mountain Lion): Save conversations
http://support.apple.com/kb/PH12012
Thank you for using Apple Support Communities.
Best,
Sheila M. -
How to get the split period wage type amount in payslip?
How to get the split period wage type amount in payslip?
Payroll period for 01.01.09 to 31.01.09.
1. Employee is active from 1.1.09 to 10.01.09
2. Employee is inactive from 11.01.09 to 20.01.09
3. Employee is again active from 21.01.09 to 31.01.09
In Result Table three split periods are created.
From 01.01.09 to 10.01.09 u2018Basic Salaryu2019 Wtype 1101 amt is 20.00
From 11.01.09 to 20.01.09 u2018Basic Salaryu2019 Wtype 1101 amt is 00.00
From 21.01.09 to 31.01.09 u2018Basic Salaryu2019 Wtype 1101 amt is 10.00
My requirement is to print only the last split period in payslip from 21.01.09 to 31.01.09. May you please help me in this regard.
Thanks in advance
Regards,
Rajesh.Hi
Try to read the below:
WPBPC : Distribute Lump Sum Wage Elements to WPBP Periods
Object
Operation
Use
Operation WPBPC distributes the amount of the current wage type to the
active WPBP periods in the payroll period.
Input
The current wage type in the header entry of table OT is used as input
for this operation.
Procedure
Within payroll, wage types are assigned to a fixed WPBP period by
infotype 0014 Recurring Payments/Deductions, for example. However, you
may want to distribute this payment to all active WPBP periods, which is
what would happen if the wage type were entered in basic pay. Therefore,
various specifications exist for parameter S:
o If the specification is 'A', and if several active WPBP periods
exist, the amount is simultaneously reduced on a calendar-day basis.
o If the specification is 'D', the wage type is distributed to all
existing WPBP periods without the amount being reduced.
o If the specification is 'S', and if the validity period starts or
ends during the period, the entry in table WPBP is split using this
date. The wage type is stored in table OT for the corresponding WPBP
period.
This parameter is only allowed if processing was accessed using
function P0014.
In this case, infotype 0014 must be processed before absence
valuation and function PARTT. Otherwise, rejections occur during
payroll processing.
o Specification 'X' is the combination of 'A' and 'S'.
This parameter is only allowed if processing was accessed using
function P0014.
o If the specification is 'W', and if the validity period starts or
ends during the period, the entry in table WPBP is split using this
date (as with option 'S'). Unlike 'S', the wage type is not stored
in table OT.
This parameter is only allowed if processing was accessed using
function P0014.
o If the specification is ' ', the wage type is stored in table OT for
each WPBP period in which the validity interval fits.
This parameter is only allowed if processing was accessed using
functions P0014 or P0015.
If the WPBP split is set for a wage type, the wage type is stored
without changes in table OT. If you specify a different wage type name
in the second parameter, the wage type is stored with this name in table
OT. Before you execute operation WPBPC, you may therefore need to delete
the split using operation ELIMI.
If a country-specific split (C1, C2, or C3 split) is set, the operation
interprets it as an error. The employee in question is rejected by
payroll. All other splits are transferred as they are.
Output
The processed wage type, or the wage type specified in the operation
call, is written to table OT (output table) with the appropriate split
indicator and reduced amount as operation output for each WPBP period.
Parameter specification 'W' is the only exception.
Syntax
OOOOOSVVVV
OOOOO WPBPC Operation name
S
blank distribute to all WPBP periods
S split and distribute WPBP
W split but do not distribute WPBP
A distribute to active WPBP periods
with calendar-day reductions
D distribute to all existing
WPBP periods
X combination of 'S' and 'A'
VVVV Results wage type
blank input wage type = results wage type
wage wage type name of input wage type is replaced
type by wage type name of results wage
name type
Wage type before operation:
Example
M100 02 3000
WPBP split
01 June 01 - June 20 active
02 June 21 - June 30 active
VVVV Results wage type
blank input wage type = results wage type
wage wage type name of input wage type is replaced
type by wage type name of results wage
name type
Wage type before operation:
Example
M100 02 3000
WPBP split
01 June 01 - June 20 active
02 June 21 - June 30 active
Wage type before operation:
WType WPBP Amount
M100 00 3000.-
M200 02 2000.-
Operation: WPBPCA
Wage type after operation:
WType WPBP Amount
M100 01 2000.-
M100 02 1000.-
M200 02 2000.-
Operation: WPBPC
Wage type after operation:
WType WPBP Amount
M100 01 3000.-
M100 02 3000.-
M200 02 2000.-
Regards
Team Member. -
How to get flagged messages in to tasks or alternatively view another users to do list.
If someone could just help me out I would be extremely appreciative.
2 of us work in one mail box together called admin. when one of us is away we like to use the flags to create follow ups for each other on certain email items.
Firstly, I can only see my main accounts to do list
Secondly, when I flag a contact / message / anything in fact, in any mailbox it only appears in their respective to do lists and not in their tasks. Thus I cannot see what I have flagged for them at a glance as I can not find a way to view other peoples
to do list. i.e. neither of us can see any of the flags in the shared mailbox we use (admin) unless we log in under a different profile, which is troublesome as it takes way to long to switch back and forth.
I presently use colour categories to delegate who is currently in charge of answering certain emails and use custom flags to note what we are waiting for in particular to a certain email and then mark a tick when it has been dealt with. Simple system but
not currently working in full due to the follow up flags not appearing in tasks.
This also affects my task synching on my mobile where once again it only shows what is in tasks... i.e stuff I have physically typed in outlook rather than flagged content; mails, contacts etc.
Any ideas how to get the follow up flags appearing in tasks or an ability to see other peoples to do lists... the first is more preferable but I will take what I can.
Kindest Regards
WoodyJust add the 'admin' mailbox as additional account in Outlook, as opposed to additional mailbox (i.e. don't add it from Accounts Settings -> More settings -> Advanced, but from File -> Add account instead).
It will then show flagged items and tasks from all accounts in the 'To-do' list. -
How to get a message in a view which was raised in another view?
Hi All,
I have used the view manager message serviice to add my custom error message in BT126H/Apptdetails view. So if the validation fails then the message is displayed on the screen . But when I am saving the transaction the error message is getting disappeared and I am able to save the transaction. So just before saving ie in the method EH_ONSAVE in overviewset view I will query that message but as it was added in the appt details view I am not getting that message in overview set .
Can anyone tell me how can I get that particular message in overview set?
Thanks and Regards
Swetahi,
In your Subinventory LOV add Bin variable using it Query tab. which has Bind VAriable And View Criteria section.use Bind Variable section. those are in the view object level.
then your all lov include view object select and choose it View Accessors section. it has your lov and Edit your Subinventory LOV and then popup dialog box. Inside it you can make Inside Parametor section select relevant bind variable name and it need value.
thaks. -
How to get the message from a Runnable class
The Schedule class is actually a JFrame, what I want to do is to "get" the message from Scheduler Class and display it in a JTextField, to let user know what is doing.
How can I approach this?
public class Schedule {
@SuppressWarnings("static-access")
public static void main(String args[]) throws InterruptedException {
final Scheduler s = new Scheduler();
Thread t = new Thread(s);
t.start();
public class Scheduler implements Runnable{
private static int actionType;
private static String msg;
public static void setMsg(String msg) {
Scheduler.msg = msg;
public static String getMsg() {
return msg;
public void run() {
//System.out.println((int)(Math.random() * 1000));
actionType = 1;
while(true){
try {
switch(actionType){
case 1:
setMsg("Process actionType: "+actionType);
break;
case 2:
Thread.sleep(2000L);
setMsg("Process actionType: "+actionType);
break;
case 3:
Thread.sleep(2000L);
setMsg("Process actionType: "+actionType);
break;
case 4:
Thread.sleep(2000L);
setMsg("Process actionType: "+actionType);
break;
actionType++;
if(actionType>4){
actionType = 1;
} catch (InterruptedException ex) {
System.out.println("Scheduler.run:"+ex.toString());
}Or with only one loop:
int actionType = 0;
while (true)
actionType = (actionType % 4) + 1;
msg = "Process actionType: " + actionType;
try
Thread.sleep(2000L);
catch (InterruptedException ex)
System.out.println("Scheduler.run:" + ex.toString());
} -
While posting material in mb1c i am getting error message period 012/2006
hi every one how ru n advance happy new year
while i was posting stock in mb1c i am getting an error message period 012/2006 is not open for account type S and G/L account 799999
so plz anyone help me in solving this error.
thanks & regards
venuprasadHi Venu,
Advance Happy New Year....
<b>OB52</b>
check the fiscal year variant assigned to comapny code and change the periods corresponding to account type blank, S, K to current financial year periods
spro...img...financial accounting...global settings...document...line item...fiscal year variant...define fiscal year variant
Also <b>MMPV</b>, Give the current date, company code and Run the transaction code and then try posting the document.
Hope this Resolves your Issue.
Cheers...
Santosh.
<i><b>Mark All Usefull Answers..</b></i> -
How to get the page layouts programmatically and create a page for that pagelayout
how get the page layouts programmatically and create a page for that pagelayout and add webpart
please help me with da code.Thanks
adityadugyalaHi if your page layouts alreday created then create new page programaticaaly and apply your page ayouts to that page by coding you can do something like following
PublishingWeb publishingWeb =
PublishingWeb.GetPublishingWeb(web);
PageLayout[] layouts = publishingWeb.GetAvailablePageLayouts();
PageLayout layout = layouts[0];
string pageName =
"MyPublishingPage5.aspx";
PublishingPage newPage = publishingWeb.GetPublishingPages().Add(newFolder.Folder.ServerRelativeUrl +
"/"+ pageName, layout);
newPageUrl = web.Url +"/" + newPage.Url;
newPage.Description = "This my sample publishing page";
newPage.Title = "My Publishing Page";
newPage.Update();
Please follow link
http://blogs.msdn.com/b/sowmyancs/archive/2008/03/15/create-publishing-pages-in-portal-sites-programmatically.aspx
Please mark answer , if you think answer is helpful or correct. -
How to get the message Sender's information in MSMQ?
Hi, everyone
I am going to develop a Windows server to monitor the messages in MSMQ. Now I wanna get the message sender's name(that is the API of this message, like class name or function name of who send the message.) I make a simple demo and it can easy to get
the message body. But is it possible to get the sender's info by using any MSMQ method ? Looking forward any answers. Thanks so much.
Shuo LeiHi,
Sender object is type of object any time if you want to use any property/attribute of sender object first you need to type cast it with your desire object.
For more information, you could refer to:
http://blog.jsinh.in/managing-msmq/#.VPe5mnkfqM8
http://forums.asp.net/t/343932.aspx?How+can+I+get+values+of+sender+object+in+C+
Regards -
Hi,
I have the following code
Folder folder=store.getFolder("INBOX");
Message[] message=folder.getMessages();
The getMessages method is supposed to return all the messages from inbox,but I only get new messages.I can read the new message but,how can I mark the message that I already read.When I run my program,it always reads all the new messages.What I mean is,in outlook,all the new messages are highlighted,my program can always read those.How can I make the message without highlight.I am using POP3 for incoming mail.
Thanks
Ravi.hello friends if you are reading mail from gmail use following properties
props=System.getProperties();
props.setProperty( "mail.imap.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
props.setProperty( "mail.imap.socketFactory.fallback", "false");
props.setProperty("mail.imap.port", "993");
props.setProperty("mail.imap.socketFactory.port", "993");// for gmail
props.put("mail.imap.host", "imap.gmail.com");
auth=new SMTPAuthenticator("[email protected]","password");
session=Session.getDefaultInstance(props,auth);
store=session.getStore("imap");
by checking flag values you can differentiate mail is read or unread
Flags flags=msg[k].getFlags();
Flags.Flag[] sf=flags.getSystemFlags();
for (int i = 0; i < sf.length; i++) {
if (sf[i] == Flags.Flag.DELETED)
System.out.println("DELETED message");
else if (sf[i] == Flags.Flag.SEEN)
System.out.println("SEEN message");
else if (sf[i] == Flags.Flag.ANSWERED )
System.out.println("ANSWERED message");
else if (sf[i] == Flags.Flag.DRAFT )
System.out.println("DRAFT message");
else if (sf[i] == Flags.Flag.FLAGGED)
System.out.println("FLAGGED message");
else if (sf[i] == Flags.Flag.RECENT)
System.out.println("RECENT message");
else if (sf[i] == Flags.Flag.USER)
System.out.println("USER message");
or check
msg[k].isSet(Flags.Flag.SEEN)
is true or false -
How to get bundled message resource in validation.xml?
Hi,
Is it possible to get a bundled message resource in the validation.xml? Basically i want to do the following validation:
<form name="testForm">
<field property="name" depends="required">
<arg0 key="form.testForm.name" />
</field>
</form>But the message "fom.testForm.name" is stored in a resource file stated as below in struts-config.xml:
<message-resources parameter="com.test.TestResources" key="test"/>Means if u want to use this message in jsp, u need to add bundle="test". In this case, how to write the validation? Possible to get this message?u can give your message key value pair the default
application resource bundle..Do u mean that here i could only use default application resource messages? Other resource messages could not be used for validation? -
So I have an Apple iPod the 5th gen and idk how to get my messaging to work
Hello?
My name is Hailey and I have the 5th gen of an iPod touch and my friend has the same one we'll she got her messaging texting thing working I was wondering how to get mine to work? Because it's not working and I've followed the instructions. Please help meSee:
iOS: Troubleshooting applications purchased from the App Store
Contact the developer/go to their support site if only one app.
Restore from backup. See:
iOS: How to back up
Restore to factory settings/new iPod -
How to get Request message routed to ESB (Mediator)?
Hi All,
We are using Oracle Fusion 10.1.3.4 . We are using ESB (Mediator). Is there any way to get request message, that were routed through ESB?
Thanks in Advance.
Edited by: vikky123 on Feb 14, 2011 4:54 PMHi
In your code the NullPointerException is expected as the message context is null and not initialized before you call getMessage method on it.
You can use soap handlers (client/server side handlers) to add the headers to the message before it is sent to the server.
Soap handler has methods like below in which you can add the headers.
* Handles incoming web service requests and outgoing callback requests
public boolean handleRequest(MessageContext mc)
System.out.println("Soap message is: \n " +
((SOAPMessageContext)mc).getMessage() + "\n");
return true;
More docs at http://e-docs.bea.com/wls/docs100/webserv_adv/handlers.html
Vimala-
Maybe you are looking for
-
How do I move large files from a Windows computer to my MacBook Pro? There are a lot of photos (tiffs, jpgs, some photoshopped files), iTunes library, word docs. Is there a particular type of external hard drive that can be used or am I limited to co
-
My iPad Air randomly restarts itself at least once a day. Any help?
My ipad keeps crashing and restarting itself and I'm not sure wether to take it into apple or how to fix it?
-
While loading data from r/3 to bw error 8 /error in source system is coming
while loading data from r/3 to bw error 8 /error in source system is coming . how can i solve this problem .
-
Ical loosing events / reappearing later after Lion upgrade
Hi all, This is a new one for me - now that we've upgraded our computers to Lion, we're seeing some weird activity on iCal. A newly added event will suddenly dissappear, then reappear later, and maybe go again again. We've got our calendars sync'd
-
Could someone tell me why my Help On Premier Elements 7 under HELP or F1 does not bring up help? I can get to online help but prefer first to try my programs knowledge base. Thank you Karl