LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for 6.1 Acquire N - Multi-Analog Hardware Trig.vi and calls out AI Config, AI Start, AI Read, AI Control, and AI Clear.vi

Solved!
Go to solution

I have some missing LabVIEW vi's and could use some help in a project that is written in 6.1.  It turns out this originates from an example that is no longer available through NI written in 4.0.2 most likely compatible up to version 6.1 DAQ Libraries.

 

I only have LabVIEW 2011.  There is some good documentation in the source code and I can tell it is derived from Acquire N - Multi-Analog Hardware Trig.vi and calls out AI Config.vi, AI Start.vi, AI Read.vi, AI Control.vi, and AI Clear.vi.

 

I'm hoping I don't need to switch to the new NI-DAQmx module, since this might have its challenges.

Here is a tutorial describing the changes, look at the AI input section and it shows a picture of the old vs. new vi’s:  https://www.ni.com/en/support/documentation/supplemental/06/transition-from-traditional-ni-daq--lega...

 

If they made a tutorial of it chances are it’s complicated enough that it has challenged many new users that have switched.

Are there 6.1 DAQ Libraries included somewhere in LabVIEW 2011, that should include the Analog Input vi’s?  Or do I have to upgrade to NI-DAQmx to move up to LabvIEW 2011?

 

Thanks,

 

-SS



0 Kudos
Message 1 of 10
(2,910 Views)

SS:

 

Not sure of campatability of 2011 and DAQ since I have not used traditional DAQ in ages.

 

 

-AK2DM

 

 

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 2 of 10
(2,906 Views)
Solution
Accepted by topic author ShotSimon

Doesn't look promising regarding 2011 and DAQ, see here:

 

https://www.ni.com/en/support/documentation/compatibility/16/ni-daqmx-and-labview-compatibility.html

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 3 of 10
(2,904 Views)

AK2DM,

 

I figured as much but figured I would ask the forums incase I was making things more complicated for myself than I needed.

 

Thanks,

 

-SS



0 Kudos
Message 4 of 10
(2,895 Views)

Look at that chart again. Traditional DAQ 7.4.4 supports LabVIEW 2011. It just doesn't support LabVIEW Real-Time 2011.

Message 5 of 10
(2,889 Views)

And of course if you are using an os later than xp, you can't use traditional DAQ. While painful, the conversion to DAQmx will probably have to be done eventually.

Message 6 of 10
(2,885 Views)

I'm running Windows 7 Professional and changing the sub vi's to DAQmx.  -SS



0 Kudos
Message 7 of 10
(2,879 Views)

I replaced the DAQ code with DAQmx equivalent and I'm using NI 6040E on Window 7.  Or at least what I think is the equivalent and keep getting an Error -200282.

 

I was able to to create a task and get my signal to trigger with Measurement Explorer so I'm pretty sure I'm missing a setup step.

 

Any idea what I'm missing?  Please see attached png.

 

Thanks,

 

-SS 



0 Kudos
Message 8 of 10
(2,856 Views)

Sorry, figured out the error already.  I ended up using the Trigger - Reference Analog Edge and removing the hysteresis property node and updated the new error code for the timeout.  -SS 



0 Kudos
Message 9 of 10
(2,843 Views)

There's some inconsistency in your Trigger config.  Dunno your particular board and what kinds of triggering support it offers, but here are a couple general observations:

 

1. You configured an Analog Start trigger with a 3.0 V threshold.  However, you specified a digital input line PFI0 as its source.  If you have a digital TTL trigger signal at PFI0, you should configure a Digital trigger.

 

2. You configure the trigger as a "Start" trigger but try to Read relative to an (unconfigured) Reference trigger.  That's what the error is telling you.  Again, I dunno what kind of reference triggering may or may not be supported by your board, but you can't read relative to a trigger point that you haven't configured.

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 10 of 10
(2,840 Views)