07-27-2017 04:28 PM
Hi All,
I attached a labview program where I have two control loops that read and control force via a load cell and pneumatic cylinder. In each control loop, the user can selected the channel that they have connected to the NI 9237 and the software will read the TEDS calibration information from the load cell.
The code currently works great as long as you have two load cells with TEDS connected to the selected channels. But when selecting a channel that does not have a load cell connected to it, the software gives an error that no TEDS file is detected and will stop. Is there a way to include for functionality where if a channel is selected without a load cell that it is simply ignored and the other channel can be read singularly without an error? It seems a bit difficult since the daqmx only allows you configure multiple channels with the one task flow. Any help would be appreciated.
Thank you,
Russell Simms
07-27-2017 04:53 PM
I think you would have to separate your physical channels so if one errors out the other channel is not affected. Once those are separated you can tell it what to do if an error exits.
07-27-2017 10:50 PM
Thanks for the feedback. Do you know a good way of doing this? When I attempt to split each channel into two separate tasks (essentially repeat the daqmx code twice), I receive read errors due to the daq being called too frequently from different VIs.
07-30-2017 08:48 PM
what DAQ model are you using?
07-31-2017 07:50 AM
cDAQ-9132 with a NI9237 module that is connected to the load cell.
08-03-2017 06:24 AM
Hi All,
I'm still looking for help in splitting up the physical channels that both configure TEDS. Does anybody have any suggestions to help achieve this?
The current issue is that if one channel does not have a TEDS load cell connected to it, that channel will error out and prevent the other loop from running. The goal of the software if you have only one or two load cells connected to the NI 9237, so I need to somehow figure out how to have the software with only one working channel.
Thank you
08-03-2017 08:06 AM
I found this link that can be useful to ignore the error
https://forums.ni.com/t5/LabVIEW/Ignore-Error-Messages-HOW/td-p/566139
I also separated the DAQ assist per channel. I'm assuming you are reading current for measurement.
Hope this helps.
08-03-2017 08:30 AM
Thanks for the response. I already turned off automatic error handling, and I'm actually referring to the load cell measurement, rather than the current, with the issue that I am having. Do you have an idea for splitting the physical channels for the analog input rather than the current output?
08-04-2017 08:12 AM
You would need another DAQ to split the physical channels. If you split them with only one DAQ it will give you an error since the sample clock is already reserved to be used in the physical channel that first called it.