LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading analog data from file.TXT on rising edges

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.

Download All
0 Kudos
Message 1 of 2
(1,883 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(1,850 Views)