From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-15-2020 10:33 PM
Because usb-6346 does not support'Hardware-Timed Single Point', so I tried to use '1chan1sample' to write single point data, but Error-201025 still occurs. How can I do for single point reading and writing at the same time without using 'Hardware-Timed Single Point'? thanks!
11-16-2020 03:07 AM
Hi MaxPan,
don't use DAQmxTiming on your DAQmx task: you cannot define a sample rate (or continuous mode) when your hardware doesn't support hardware-timed operations!
Btw:
11-16-2020 03:56 AM
Thank you very much for your help, error-201025 has been resolved.
But something strange happened,there is no error will be generated under highlight execution,error will occur under without highlight execution,could you tell me how to resolve this proplem. thanks!
By the way, could you tell me why the graph won't display the output waveform. Thank you!
It's my first time use NI community and thanks your suggestion!
11-16-2020 04:08 AM - edited 11-16-2020 04:09 AM
Hi MaxPan,
@MaxPan wrote:
But something strange happened,there is no error will be generated under highlight execution,error will occur under without highlight execution,could you tell me how to resolve this proplem.
By the way, could you tell me why the graph won't display the output waveform.
I didn't got that error before: it might help to attach your VI as we cannot debug images with LabVIEW…
Are you sure the graph doesn't show the samples? As you programmed the VI it will show the data when the loop has finished - as dictated by THINK DATAFLOW!
On your VI:
Do you really need a formula node just to add an offset?
Do you really need to wire the very same array twice out of the loop?
Why does one 2D array indicator has lost its label?
Why do you still read the samplerate?
Mind to place a small wait inside the loop, like 1ms?
11-16-2020 12:45 PM
@MaxPan wrote:
Thank you very much for your help, error-201025 has been resolved.
But something strange happened,there is no error will be generated under highlight execution,error will occur under without highlight execution,could you tell me how to resolve this proplem. thanks!
By the way, could you tell me why the graph won't display the output waveform. Thank you!
It's my first time use NI community and thanks your suggestion!
Just guessing here:
Highlight execution is single threaded, won't let things run concurrently, that is why your application works. Connect an error wire between your two DAQ 1SAMP VIs in the For loop and I am guessing it will work, just maybe not the way you want it to work.
mcduff
11-16-2020 10:21 PM
After confirmation, the same error will also occur when the loop has finished in highlight execution.
And i sure the wavefrom didn't show my output wave when the loop has finished. But the output array shows data, why?
1.Because my goal is to use formula node to do pid control operations, now I just do a simple example to test.
2. 3. i already corrected, thanks!
4.if i don't use'DAQmxTiming', how do I decide sampling rate? or just like my VI ('PID test')?
5.Because i worry about overwrite happens, it actually happens?
11-17-2020 02:30 PM - edited 11-17-2020 02:30 PM
Hi MaxPan,
@MaxPan wrote:
And i sure the wavefrom didn't show my output wave when the loop has finished. But the output array shows data, why?
1.Because my goal is to use formula node to do pid control operations, now I just do a simple example to test.
4.if i don't use'DAQmxTiming', how do I decide sampling rate? or just like my VI ('PID test')?
5.Because i worry about overwrite happens, it actually happens?
Simplified VI:
Your VI didn't include any data in the frontpanel elements as requested, so I cannot comment on the different content of the chart and the 2D array…
1. Why do you need a formula node here? Use simple G nodes…
4. See the snippet: you just set a timing in the loop. (In your VI you set a sample rate of 10kS/s and try to read 1 sample per loop iteration: your loop will NEVER run fast enough to keep up with that sample rate!)
5. I don't know what you are referring to…