LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 9237 pressure sensor graph error

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(3,131 Views)

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.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 5
(3,122 Views)

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?

0 Kudos
Message 3 of 5
(3,107 Views)
Solution
Accepted by topic author sarahbrady

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.


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 4 of 5
(3,101 Views)
Working perfectly. Thanks so much.
0 Kudos
Message 5 of 5
(3,093 Views)