08-13-2024 06:50 AM - edited 08-13-2024 06:53 AM
Hi everyone,
I am quite new to Labview (2020) and need to update an existing .vi with a new sensor.
The existing .vi does read channel ai0 (load cell), whereas the new sensor is located at ai3 (displacement sensor). What I managed to do is to create a new .vi in which I can read both signals simultaneously (screenshot_working). This works just finde by switching the error in series. But once, I want to expand the already existing .vi block diagram I get the error "-50103" in detail "The specified resource is reserved. The operation could not be completed as specified" (screenshot_not_working). As far as I understand does the program not know, which channel it should read first..
Does anyone know how the block diagram has to be adapted to enable simultaneous reading of channels ai0 and ai3?
I am very grateful for any help.
Thank you so much!
Not working:
Working:
Solved! Go to Solution.
08-13-2024 06:55 AM
Hi User207,
@LabviewUser207 wrote:
Does anyone know how the block diagram has to be adapted to enable simultaneous reading of channels ai0 and ai3?
Instead of using two DAQmx tasks to read analog in signals you should create just one (1) DAQmx task with two channels (ai0, ai3) and read both signals with one DAQmxRead function…
LabVIEW/DAQmx come with lots of example VI: learn from them!
08-13-2024 06:38 PM
To supplement what GredW has shared:
Easily Synchronize and Trigger NI-DAQmx with Channel Expansion
08-14-2024 02:08 AM
Thank you so much, this worked. Appreciate your help!
Have a great day