LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can plot 2 channels through a DAQ assistant using NI 9239?

The thing is that the old version is currently using ai0 and ai1 both channels, and I get both signals correcty. So, reinstalling might make a difference?

 

I tried to inspect via Open Front Panel but it does not work.

 

I checked in the Measurement and Automation Explorer and the NI 9239 is related to pressure. HOwever, when I run the program it says Device Identifier invalid but then it says Device Specified: Empty String, why is this?

0 Kudos
Message 11 of 16
(577 Views)

Reinstalling is a shot in the dark.

 

Some way or another, the DAQ assistant is not building the underlying code correctly.

 

What do you mean "Open front panel" doesn't work?  Does it mean you can't open front panel on that Express VI?  Or you did open it and convert it to a subVI, but your VI is still giving you the error?

 

If the former, then that is one more reason why I think the script building behind the DAQ assistant is broken and reinstalling the DAQ drivers might help.

If the latter, then you should be able to open the subVI put probes in there to see why it thinks the the device string is empty.

0 Kudos
Message 12 of 16
(571 Views)

I mean that the vi, after Open Front Panel, does not work.

 

Apparently everything is good, check the screen shot I got. The error seems to be in the daqmx on the right. 

0 Kudos
Message 13 of 16
(569 Views)

And did you probe the wires going into that?  Particularly the array of strings that is coming from the upper left which where the channel names are defined?

 

It seems odd that the Device name constant (purple) is empty.  It is also empy on my PC, but I also don't have a DAQ device installed, and certainly not one I called "Pressure" in MAX.

 

What does your Devices and Interfaces part of the tree show in MAX?

 

What if you change the name of the device to something else and reconfigure your DAQ assistant to use the new name?

 

Devices tend to be called "Dev1" or "Dev2" by default when installed.  Renaming it to "Pressure" is kind of unusual, but I don't see why that is should cause a problem, and it isn't a problem for the regular DAQmx functions.

 

If you can't get this working at some point, you should just go ahead and use the regular DAQmx functions  But you can see that the DAQ Assistant uses regular functions in pretty much the same order that you are using in your working VI.

0 Kudos
Message 14 of 16
(567 Views)

I put the name pressure in the physical channels and it seems it works. However, can I still see the window of the DAQ assistant I was seeing before converting to the Open Front Panel?

 

0 Kudos
Message 15 of 16
(558 Views)

No.  Once you convert it using Open Front Panel, it is no longer an express VI and you can't use the dialog box to configure the code for you anymore.

 

Express VI's are great for getting code up and running quickly (except maybe in this case for whatever reason.)  But ultimately you are better off using real LabVIEW functions.

0 Kudos
Message 16 of 16
(556 Views)