09-09-2015 04:46 PM
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.
09-09-2015
05:20 PM
- last edited on
12-28-2024
02:57 PM
by
Content Cleaner
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
09-09-2015 05:21 PM
Thanks I will take a look at this.
However, I have been through the array tutorials. They are not helpful to me.
09-09-2015 05:22 PM - edited 09-09-2015 05:25 PM
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.
09-09-2015 09:30 PM
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.