Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Error when reading usb-6212 'read from digital port.vi': subvi is missing

Solved!
Go to solution

Hello,

 

I am trying to have LabVIEW recognize my usb but I keep receiving the error 'read from digital port.vi' is missing. I was wondering if there was a resouce for sample VI's? Or how to write a VI to recognize/read the signal from digital I/O?

 

Thanks so much!

0 Kudos
Message 1 of 6
(4,421 Views)
Solution
Accepted by topic author blizabeth37

Hi blizabeth37-

 

     If I understand you correctly, you are looking for example VIs, correct?  Have you tried looking at the LabVIEW Example Finder?  In LabVIEW, click on Help»Find Examples.  Once in the Example Finder, for Digital I/O, got to hardware Input and Output»DAQmx»Digital Generation or Digital Measurements.  Peruse these folders and you should find something that does what you want.

 

     You can also go to the online community to search for example code: www.ni.com/community

 

     I hope this is what you were asking for.  Best of luck with your application!

Gary P.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(4,400 Views)

Forgive me for my very basic question but I am working with LabVIEW 6.0 and I cannot find the sample VI's. With the 6.0 edition, it is possible to find these same sample VI's? I have not had any luck and have basically searched through every sample VI in my 6.0 edition.

 

Thanks again for your help!

0 Kudos
Message 3 of 6
(4,397 Views)

Read from Digital Port is part of what is now called Traditional DAQ. Download it or get it from your 6.0 CD's.

 

It really does not matter though whether you install it or not. Your 6212 can only be programmed with the DAQmx driver and your old version of LabVIEWis not supported. You will have to either use a different (and older) DAQ card or upgrade your version of LabVIEW to something from this century.

0 Kudos
Message 4 of 6
(4,388 Views)

You need to get your VI files out of the Examples libraries.  I solved this by:

1) Open the main vi file on an old v5.1 machine. (Labview found the missing files in the v5.1 example libraries)

2) Click Project -> Show VI History

3) Find the previously missing VI files (at the bottom for me)

4) For  each file:

  a)  Double click to open them

  b) Click - File -> Save Copy as (in a folder under My Docs)

 

Good luck!

0 Kudos
Message 5 of 6
(3,782 Views)

I forgot to mention, the technique worked for these files:

Write to Digital Port.vi

Read from Digital Port.vi

AI Clear.vi

AI Config.vi

AI Start.vi

AI Read.vi

(and any vi files under them)

 

I could not update (load) the vi files directly into LV v2010, but I was able to load and update with v6.1 then v8.5.  The v8.5 files read into the current program.

 

Also you will need to do some editing, but this will give you a valid starting template with the needed parameters.

 

Hope this helps someone.

0 Kudos
Message 6 of 6
(3,777 Views)