06-17-2019 04:21 AM
Hello!
I'm new on LabVIEW and I am facing some difficulties in my project.
I want to simulate a system which has an analog signal came from a sensor and a digital signal from encoder, using DAQ Assistant and USB 6008
for more details, the simulation of the analog data is from a .txt file and the digital signal should be generated using USB 6008.
I genreated the digital signal and i can read the analog signla but the problem is I want to read analog data on each rising edge from the digital signal (sampling) .
My program has many problems and your help will be appreciated.
thank you.
06-17-2019 04:45 AM - edited 06-17-2019 04:47 AM
Hi Karim,
My program has many problems
Yes!
You are using several loops in parallel inside another loop.
You are using way too much DAQAssistent ExpressVIs (read this and examine the example VIs coming with LabVIEW!)…
You are outputting data with no timing at all - with a cheap device without any hardware timing…
You are reading DI pin1.0 a 1000 times, but only use the last sample!?
Before creating code you should sketch your algorithm on a sheet of paper - and set the correct order of things to do!
Then recreate your VI from scratch…