09-02-2015 06:24 AM
I'm using my NI 9237 with four pressure sensors which works fine as long as all the readings from all four pressure sensors are on the same graph. However, what I need them for I would need each of the pressure sensors to be on their own individual graph but when I try this I keep getting an error that the device is already being used.
So at the moment I can only get one graph either showing all the four pressure sensors or just one graph showing one pressure sensor but I need four graphs showing their own pressure sensor. Any suggestions?
Thanks for any help
Solved! Go to Solution.
09-02-2015 06:40 AM
I suggest you show us your code so we can see what you are doing. It sounds like you've just duplicated your DAQ code 4 times which won't work as the first one to execute will reserve the hardware.
What you need to do instead is to split the data into individual channels and then wire each of those into a different graph. How to do this depends on your code - it might be as simple as an 'index array' function dragged down to index the 4 channels individually.
09-02-2015 07:23 AM
I've attached an image of what I've done when the 4 sensors are dispalyed on one graph. Sorry I've never set up anything before this. I had just dublicated the code for time.
Would the index array placed at the data?
09-02-2015 07:27 AM
As you're using the Express VIs and the dynamic data type, use the 'Split Signals' function from the Signal Manipulation palette, drag it down to make it have 4 outputs and wire each one to a graph.
09-02-2015 07:32 AM