08-31-2009 05:30 AM
Hi All,
How to transmit multiple messages over CAN ? With all three messages i want to send the system time & date also.
How can i get the timestamp in DBL format (Since the timestamp in the input of ncWriteNetMult.vi is a DBL). If possible kindly share the code in Labview 7.1 also.
Thanks in advance.
J
09-01-2009 01:15 AM
The NI-CAN driver brings examples for nearly every use case. Driver version 2.4 or later has the Write multiple function to write multiple frames at ones. There is an example available for LabVIEW, CVI and VC/VBasic called CAN Transmit multiple.
Also check the attached VI and the Can manual: http://www.ni.com/pdf/manuals/370289m.pdf
What do you mean by converting Timestamp to DBL? Timestamp contains all date and time information. You can convert it into string format as shown below and then use the relevant data from it by string operations.
Hope this solves your problem.
 
09-01-2009 01:25 AM
Hi,
Thanxs for the reply.
Ya in LabVIEW there is ncWriteNetMult.vi function. If i want to transmit multiple frames i can use this function.
But Input of this function, Data Array consists of Timestamp, DBL data type.
How to enter timestamp programmatically ?
09-01-2009 02:01 AM
Hi,
To convert your timestamp to DBL use the 'DBL' function in the conversion palette. This will take a timestamp as an input.See the below screenshot.
Hope that solves your problem.
Kudos are welcome.