Jump to content

Error 50405


Recommended Posts

I'm somewhat new to LabView and hoping someone can help. I'm running LabView 8.5 using a cDAQ-9172 with a couple of 9481 modules and one 9211 module to cycle hot and cold water in plumbing fixtures. Most of the time, the program works fine. Every now and then I get the following error message and the machine stops functioning properly:

Error 50405 occurred at DAQmx write (Digital ID Bool NChan 1Samp 1 line). vi:5

Thanks.

Link to comment

QUOTE (CArnold @ Oct 8 2008, 10:05 AM)

Every now and then I get the following error message and the machine stops functioning properly:

Click on "Help > Explain Error" and punch in your error code - that should give you some more info. It's a little difficult to see where the porblem is in your code, as you're using lots of express VIs that abstract the lower level functions (including the one with the error) from you. It might be that two of the DAQ Assistant express VIs are trying to access the same hardware simultaneously? I can't really tell...

Link to comment

QUOTE (CArnold @ Oct 9 2008, 02:26 AM)

Thanks, I tried the help/explain error and am working through understanding it.

Your VI looks pretty messy and follows no dataflow structure. It doesnt use modularity as well. I dont know how you going to

add functionalities nad features in the future.

As you have 2 For loops running in parallel at a certain point of your program, DAQ assistants are everywhere in the code. Durring this parallelism

process, there is a chance that 2 DAQ Assist will conflict each other.

I dont know how your HW suppose to work but if you can, make sure that one loop is run after another then the problem might be solved.

If you have to run the loops in parallel then make sure look at couple of tutorial on synchronisation and multiple loops design paterns within lapview help.

Regards,

Link to comment

Thanks for the input, I know it's messy, I have only been working with LabVIEW a short time and am not a programmer. I think you are right about the two DAQ assist conflicting with each other. I made a few minor changes and everything appears to be working ok. Although, I know there is a cleaner way to do it and will work on coming up with something different.

The machine I'm trying to run subjects plumbing fixtures to 250 cycles of alternating hot and cold water. One cycle consists of 90 seconds of 190F water followed by 90 seconds of 70F water. The machine has four hot solonoid valves, four cold solonoid valves, two zone valves for directing water back to either a hot sump or cold sump, a hot water heater maintained at 190F and a chiller maintained at 70F. When the machine starts, the hot solonoid valves are opened, cold closed, and the zone valves rotated to direct water to the hot sump tank. The heater temperature is monitored and elements are turned on to maintain the 190F. The temp in the chiller is monitored but not controlled as it has a separate control. After 90 seconds, the hot solonoids close, cold open, and the zone valves switch position. After 250 cycles, all relays are opened and the machine shuts down.

The solonoids need constant voltage to stay open while the zone valves need seven seconds of voltage to change position.

I'll take a look at the tutorials you suggested and try to come up with a cleaner solution. Any suggestions would be appreciated.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.