LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview multithread mutex

Hi all 

   I have a project acquisition voltage by usb6211 with multi thread both run get error and single run is  Ok as my video,please help me check it ,How to fixed it,thanks

0 Kudos
Message 1 of 6
(2,722 Views)

Hi sageliuliu,

 


@Sam.Huang wrote:

Hi all 

   I have a project acquisition voltage by usb6211 with multi thread both run get error and single run is  Ok as my video,please help me check it ,How to fixed it,thanks


Don't try to read AI channels in different DAQmx tasks in parallel.

Your device only allows one DAQmx task for all AI channels…

 

Btw. your RAR archive is missing the LabVIEW project file (*.lvproj). You also should create standard ZIP files instead of using proprietary RAR formats…

Best regards,
GerdW


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

I can't watch your video because of your proprietary RAR file, but I assume you got error -50103.  If you had search for "error 50103"  (leave out the negative sign since that has a special meaning with google), you'll find this is a verify frequent issue with new LabVIEW programmers and found dozens if not hundreds of threads right away telling you the issue.

0 Kudos
Message 3 of 6
(2,695 Views)
Thanks for your comment.actually I want to set mutex control execution priority,when both start,run to same task,A run other standby A finish then B start,cross run no affect,please help me fixed it,thanks!
0 Kudos
Message 4 of 6
(2,658 Views)

@RavensFan wrote:

I can't watch your video because of your proprietary RAR file, but I assume you got error -50103.  If you had search for "error 50103"  (leave out the negative sign since that has a special meaning with google), you'll find this is a verify frequent issue with new LabVIEW programmers and found dozens if not hundreds of threads right away telling you the issue.


I believe you can enclose it quotes like this "-50103" and you'll be fine.  i.e., error "-50103".

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 6
(2,650 Views)

Hi sageliuliu,

 


@Sam.Huang wrote:
actually I want to set mutex control execution priority,when both start,run to same task,A run other standby A finish then B start,cross run no affect,please help me fixed it

When you want to run part of your code after some other part has finished then you just need some wires to enforce DATAFLOW! No need for any "mutexes"…

 

Suggestion: It really helps when you would apply some better grammar/punctuation rules, like spaces after commas. The sentence you wrote would be much more readable…

Best regards,
GerdW


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