08-01-2008 03:17 PM
The product of our project will be a LabView subroutine that would take in a list of messages and output the responses to those messages. A named cluster might be an appropriate format for the output. The subroutine should be generic in that once it is fed the appropriate message(s), it can query across the CAN to the appropriate sensor. We need this capability because many new sensors that we use for testing come only with CAN outputs rather than the traditional voltage outputs. These are relatively simple transducers that don't have extensive vocabularies. Six messages may be sufficient for each of these applications.
CAN subroutine suggestions:
-six message (word?) capability These messages can be fed in as inputs specific to the particular transducer the routine to be used.
-named cluster output
-should be able to run in a 20 hz main loop if possible
**In order to proceed with this project, we need communication between the sensor and the bus, which is our main problem. When using MAX, we only get error transmission with a 100% bus load, does this means the sensor is actually working? Also, does anyone knows how to insert the sensor as a LV subroutine, once is communicating?
Thank you!
08-04-2008
02:36 PM
- last edited on
06-09-2025
03:23 PM
by
Content Cleaner
Hi Nones,
What happens when you try to communicate with the sensor in MAX? What CAN interface are you using, and are you using an NI-CAN cable? If you are using a regular null modem cable, you have to make sure that it is terminated properly as described here.
"When using MAX, we only get error transmission with a 100% bus load, does this means the sensor is actually working?"
Could you tell me what you were doing in MAX that you saw the above information? I would advise that you refer to the NI-CAN example VIs to test communication with your sensor. You can find this in LabVIEW by going to Help > Find Examples > Hardware Input and Output > CAN. You will have to choose between using Frame and Channel API, and the differences between the two are described well here.
Also, what exactly do you mean when yo usayd "insert the sensor in the LV subroutine"?
Let us know how it goes!
08-04-2008 03:36 PM
08-05-2008 08:13 AM
08-05-2008 03:28 PM
08-05-2008 04:35 PM
-six message (word?) capability These messages can be fed in as inputs specific to the particular transducer the routine to be used.
-named cluster output
-should be able to run in a 20 hz main loop if possible
Ay suggestions? Thanks!!!
08-07-2008 10:04 AM
08-07-2008 04:02 PM
08-08-2008 12:01 PM
08-08-2008
05:21 PM
- last edited on
06-09-2025
03:25 PM
by
Content Cleaner
For your named cluster, it sounds like you're looking to create a cluster as a global variable. There is more information about how you can do this here.
To log your data in an excel file, you can use the Write To Measurement File Express VI in the loop, with the append to file option on. You can also use the Export Waveform to Spreadsheet File VI, and wire a true to the append to file option.
I'm still kind of unsure as to what you mean by six message or word capability...