LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

AI. to new Labview 18

Hello, 

In the attached image I am trying to transition from Labview 7 to Labview 18. The AI Read One Scan no longer is functioning and I can not figure out how to make it function properly in Labview 18. Any suggestions? I've read in many places that DAQmx is able to perform the function but I have had many failures attempting to get it to operate. 

0 Kudos
Message 1 of 9
(2,610 Views)
0 Kudos
Message 2 of 9
(2,593 Views)

Does your Device (in MAX) allow you to take a Single Sample on Demand?  That's the equivalent of Read One Scan, I believe.

 

Bob Schor

0 Kudos
Message 3 of 9
(2,584 Views)

Yes it does. However when reconnecting to the new DAQmx all wires are broken.

0 Kudos
Message 4 of 9
(2,578 Views)

Then read the descriptions as to what is broken.  You probably need to delete a control or constant, create a new one off the DAQmx subVI connector panel, and select the correct channel or values.

0 Kudos
Message 5 of 9
(2,575 Views)

This is @KevinPrice territory, but I am guessing your old VI uses the old DAQ functions, I do not remember when DAQmx was introduced. If that is the case you would need to rewrite code but first see if your instrument is compatible with DAQmx.

 

mcduff

0 Kudos
Message 6 of 9
(2,572 Views)

I believe that LabVIEW 7.0 had DAQmx -- if so, it is at least 12 years old (if not older!).

 

Bob Schor

0 Kudos
Message 7 of 9
(2,568 Views)

@Bob_Schor wrote:

I believe that LabVIEW 7.0 had DAQmx -- if so, it is at least 12 years old (if not older!).

 

Bob Schor


But the missing function is from traditional DAQ. See what the first knight said

https://forums.ni.com/t5/LabVIEW/How-to-use-AI-Read-one-scan-vi-in-Labview8-0/m-p/430768/highlight/t...

 

mcduff

0 Kudos
Message 8 of 9
(2,556 Views)

Heard someone say my name...

 

Yes, "AI Read One Scan" is a function from the old (old, *very* old) traditional NI-DAQ driver.  I think it was an all-in-one that combined configuration and software-timed read of a single sample (then referred to as a "scan", which was once a more common way to help distinguish that there might be data for multiple AI channels in that one single scan / sample)

 

Labels in the screenshot identify an E-series board which have been supported by both traditional NI-DAQ *and* DAQmx.  I don't know if the very latest versions of DAQmx still support such an old DAQ device.

 

I would advise that you *first* follow Bob Schor's advice in msg #3.

 

Then you might look at the shipping example "Voltage - SW-Timed Input.vi" to get a headstart on how you work with your DAQ devices using the DAQmx API.   You might want to use the dropdown menu on DAQmx Read to change *away* from waveform output to a simpler 1D array.  In software-timed mode, the extra timing info in a waveform isn't particularly helpful.

 

 

- Kevin P

 

P.S.  I remember LabVIEW 7 and DAQmx being no later than 2005.  I was an early, though partly reluctant, adopter of DAQmx due to (1) multithreading which supported parallel access to the driver, (2) purchase of newer M-series boards with hw-timed DIO that were *only* supported by DAQmx.

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 9 of 9
(2,510 Views)