LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 2013, ULx, the simplest of programs I can not figure out

Hello Friends,

 

I need help making a very simple program in Labview. FYI, I installed an taught myself the basics and went over several of the tutorials already, but after a week I am stuck and getting very frustrated at how "Simple" my friends are telling me this should be, and how not simple it is in reality. 

 

I have a USB 1208FS daq,  What I want the program to do:

 

[1] Read in a csv file of many 8 bit binary addresses represented by integers and iterate through each one *(this works already)

 

[2] Program the digital output pins of Port A  with the code from part [1].(  It can not pass my array element to the ULx write block. I am using the array indexer and trying to convert but it just wont work and I am very confused)

 

[3] Use the analog input to read the voltage and display it (this works already)

 

Can I please get some assistance or links to the right tutorials / tools? Once I get this working for a single hard coded element, I need to put it in a for loop and iterate trhough each address and take the measurement. But i need to get the basics working first.  

 

Please take a look at my VI. Help me out please. This really holding up my research.

 

 

 

 

0 Kudos
Message 1 of 5
(3,216 Views)

This is a wonderful White Paper on DAQmx.  It should explain how to set up your DAQ task.

 

I recommend that you go back to the Tutorials and look at the discussions of Arrays, For Loops, and While Loops.  You will also see how to use some of these features in the above-referenced White Paper.

 

Bob Schor

0 Kudos
Message 2 of 5
(3,202 Views)

Thanks I will take a look at this.

 

However, I have been through the array tutorials. They are not helpful to me.

0 Kudos
Message 3 of 5
(3,198 Views)

Are you sure this white paper is helpful?  I see DAQ assist, which does NOT WORK with the usb1208fs in my version of labview. 

 

 

Edit: I am interested in using the ULX library. NOT. I REPEAT NOT the daq assist.

0 Kudos
Message 4 of 5
(3,192 Views)

DAQ assistant is only used with NI-DAQmx.  You can't base any code off of that.  You can read the papers on NI-DAQmx and see how code is put together using regular DAQmx functions.

 

Obviously that won't translate directly 1:1 with Measurement Computing's ULx library.  But it is modelled very similarly to the DAQmx drivers and will give you ideas. 

0 Kudos
Message 5 of 5
(3,159 Views)