odinhg Posted October 16, 2009 Report Share Posted October 16, 2009 Hi! I have a cDAQ which is reading a voltage value from a massflow sensor. The output voltage is not linear with the massflow, which makes things a little bit more difficult. Here is the voltage/massflow table from the sensors datasheet. And by using the "Scaling and mapping" express VI I get the results I want. But I've heard that using DDT isn't a good practice, and the express VI contains a lot of things I don't need for this. So the question is, is there any way to do this without using express VIs? Is the DAQmx custom scales useable for this purpose? All input is appreciated! Thanks in advance Quote Link to comment
asbo Posted October 17, 2009 Report Share Posted October 17, 2009 You can right-click the Express VI, select "Show Front Panel" and have it converted to a normal subVI, at which point you have a foundation you know works. You then have the ability to trim out excess code that you don't need. Quote Link to comment
crelf Posted October 17, 2009 Report Share Posted October 17, 2009 And by using the "Scaling and mapping" express VI I get the results I want. But I've heard that using DDT isn't a good practice, and the express VI contains a lot of things I don't need for this. I only use the scaling functions in LabVIEW if I absolutely can't get real world signals in. You can (and should) define DAQ channels/tasks/scales/etc in the LabVIEW project - click on your target in the project window and select "New..." - then all of your DAQ settings can stay with your project (btw: I think this is an excellent feature - thanks NI ). Quote Link to comment
odinhg Posted October 21, 2009 Author Report Share Posted October 21, 2009 I only use the scaling functions in LabVIEW if I absolutely can't get real world signals in. You can (and should) define DAQ channels/tasks/scales/etc in the LabVIEW project - click on your target in the project window and select "New..." - then all of your DAQ settings can stay with your project (btw: I think this is an excellent feature - thanks NI ). Thanks asbo and crelf! I think I'll rewrite the DAQ part of my program and use tasks, channels and scales defined in the project. Didn't know about that nice feature Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.