06-15-2016 04:23 PM - edited 06-15-2016 04:33 PM
Greetings
I use USB 6001
in the attached VI,
The output in DAQ assistant does not follow its input data
it only generates a single output and keeps that value
can you help me
06-15-2016 08:10 PM
How are you running this VI? You don't have any loops. It is just going to run an acquire some data. Process it, then write it out.
(Please don't say you are using the Run Continuously button.)
06-15-2016 09:23 PM
I only want to read 1000 samples and write 1000 samples in 1 second
06-15-2016 09:31 PM
Why do you think it only generates a single output?
Are you looking at the output on an oscilloscope?
06-15-2016 09:33 PM
I am reading it as analog input
06-15-2016 09:35 PM
With a different VI running simultaneously?
Your VI reads a second of data, processes it, then outputs a second of data. Unless you have something reading at the same time you are outputting the data (such as an oscilloscope), you aren't going to see what happens.
06-15-2016 09:44 PM
so what is the solution
no oscilloscope
06-15-2016 09:46 PM
I need the output and input in the same second
06-15-2016 09:49 PM
So right now you have no idea what analog data you are actually outputting?
Maybe instead of just throwing code together saying you need to do something. You can tell us what you are actually trying to do?
What does analog input and analog output at the same time actually mean? Because you've coded it to do an analog read, followed by processing, followed by an analog write. What are the signals supposed to represent?
I guarantee you'll need to get rid of Express VI's. If you need to synchronize an input and output, look in the Example Finder for DAQmx examples. But I don't know how/why you are trying to synchronize something that you have actually tried to serialize in the code you have so far.
06-15-2016 09:58 PM
I am reading voltage and current samples (analog inputs)
then the processing generates output to be given to transistor base (analog output)
so I need one output sample after each one input sample