LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with Labview code for DAQmx

I'm currently trying to write Labview code for some thesis research and am having problems.  I'm using the cDAQ 9172 with strain gage modules and two voltage input modules.  I'll be reading/recording a voltage from an external source on one channel, while recording strains and accelerations with the other channels.  I need to do all this simultaneously.
Everything I've done to this point has been in SignalExpress so I'm not sure how to program any of this.  I also need to be able to calibrate the strain gages prior to each set of recordings.  Any help you guys could offer would be greatly appreciated.  Thanks.
0 Kudos
Message 1 of 6
(2,843 Views)
Hi iwalker8,
you can start with the examples from the example finder. Search for DAQmx.
Mike
0 Kudos
Message 2 of 6
(2,840 Views)

I've tried that and come up with a few examples that might help. I'm only running Labview 8.0 so several of them won't open for me. Anyway I can get this example in compatible form for 8.0?  http://zone.ni.com/devzone/cda/epd/p/id/5399

Sorry if this sounds petty, I'm not familiar with Labview at all.  I'm having a tough time learning it. 

0 Kudos
Message 3 of 6
(2,830 Views)
Hi,
I'm not sure how much this will help you, but I've attached a screen dump of code from a project I did that sounds pretty similar to what you're working on. The code is from a subVI that I used to create the daqMX measurement task for my data acquisition. I was also using a 9172. This was written in 8.5, but the only thing that you may not have access to is the functions for null offset and shunt cal of the strain gage channels. Hopefully this will at least get you started on your way to setting this up.

Andrew Carollo
0 Kudos
Message 4 of 6
(2,807 Views)
The examples mentioned by Mike are available in LabVIEW if you go to the help menu and select 'Find Examples'.
0 Kudos
Message 5 of 6
(2,796 Views)
Yes, as mentioned before, the best place for you to start is with the LabVIEW Shipping Examples in the Example Finder. In order to find these examples, go to the Help menu in LabVIEW and click on "Find Examples..." Once in the example finder, go to "Hardware Input and Output" then "DAQmx" then "Analog Measurements". There should be examples there similar to what you are trying to do.
Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 6 of 6
(2,771 Views)