LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Source Code for DAQmx Test Panel

 

In MAX, you can select a DAQmx device, and open a Test Panel.

 

Is the source code for this available anywhere? This program is almost what I need, and if I could get the source, make my mods and use that, it would save me from reinventing the wheel.

--

Brian Rose
0 Kudos
Message 1 of 11
(4,147 Views)

Have you looked at the DAQmx examples available through the Help menu?  They're pretty close - you just have to know a teensy bit more about what you need.

0 Kudos
Message 2 of 11
(4,126 Views)

 

The DAQ examples are OK, but the test panel is more robust and full featured. It can easily switch between a low end 6008 and a more complex 6259 very easily. It would take me some time to code all that up with proper error checking, etc, using example code.

--

Brian Rose
0 Kudos
Message 3 of 11
(4,078 Views)

I guess NI won't disclose this to you. Furthermore I think I've read somwhere (here on the forum), that it's written in CVI and not LV.

You'll need to do it on your own or supply MAX to your customers (you can use 'global channels' to use MAX for configuration and then make the remaining changes in your own software).

 

Felix

0 Kudos
Message 4 of 11
(4,068 Views)

 


@mister Rose wrote:

 

It can easily switch between a low end 6008 and a more complex 6259 very easily.


 

It can?  Don't you have to reopen the test panel for each device? 

 

The analgous solution would be to create separate VIs from example code, each with the configuration options you need.

0 Kudos
Message 5 of 11
(4,060 Views)

All I wanted to do was to be able to format the axis. I have a calibration routine that requires that the signal get as close to 5 V as possible. When you get to less than 10mV, you the numbers on the vertical axis go from 5.01 to 5. I'd like to be able to have it retain the three decimal spaces so I can see where I end up when I am less than 10mV away from a whole digit.

 

I guess I'll put in a feature reequest.

--

Brian Rose
0 Kudos
Message 6 of 11
(4,058 Views)


Re:

kehander

 

The analgous solution would be to create separate VIs from example code, each with the configuration options you need.

 

I'm trying to avoid having to code all that up. If I could just get the source and tweak the format string for the vertical axis, I'd be golden.

--

Brian Rose
0 Kudos
Message 7 of 11
(4,044 Views)

The source for the Test Panels would be such a fantastic asset.  I see an IEPE checkbox on my test panel, translating this to "AIExcitationSource.Internal, 0.02" was not in any way clear.  The test panel for my 9234 also has MeasurementType of Voltage, but the only funtion that uses IEPE is CreateAccelerometerChannel, which would indicate G's were being returned and not voltage.

0 Kudos
Message 8 of 11
(2,562 Views)

@JoePoerschke wrote:

The source for the Test Panels would be such a fantastic asset.  I see an IEPE checkbox on my test panel, translating this to "AIExcitationSource.Internal, 0.02" was not in any way clear.  The test panel for my 9234 also has MeasurementType of Voltage, but the only funtion that uses IEPE is CreateAccelerometerChannel, which would indicate G's were being returned and not voltage.


You can use the 9234 as a regular Analog Input channel which has the internal excitation. I do it all the time. Set up a task with Analog input then use a DAQ Channel Property node to set the excitation for EACH channel. You will need a For loop for this.

 

You can also use property nodes to see what excitation values are allowed.

 

mcduff

 

Snap15.png

 

Snap16.png

0 Kudos
Message 9 of 11
(2,552 Views)

That Test Panel is part of NI-MAX, almost certainly written in C++ (or maybe C#) and there is zero chance to get the actual source code for that and even if you did it wouldn't compile without about a few zillion other software components that are part of NI-MAX.

 

The DAQmx examples are pretty much the closest you can get to this. Depending on how many different hardware boards and sensor types you need to support, this could indeed get a bit of serious work, but why are you trying to get such a generic application in the first place? Start simple and easy and then start adding features for new sensor types as you go. DAQmx is a very generic application interface so that will not be the problem. Your main problem will be to get the user parameters to pass to the DAQmx functions verified as the user enters them in the control, to make certain controls available or not based on the functionality of the board or sensor and some cosmetic things like to adapt the graph axis labels to the actual measurement units of the analog channel.

Rolf Kalbermatter
My Blog
0 Kudos
Message 10 of 11
(2,533 Views)