Switch Hardware and Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting between hardware using a modbus relay module

Hey guys,

 

I have limited experience with labview so any suggestions to this problem would be fantastic. I am using an Adam 4068  which is a relay module to switch in a dc power supply if coil one is on and switch in an ac power off dc power if coil 2 is on. Any visual examples to this problem would be great. Im stuck on how to go about it. Below is my adam vi. thanks guys.

 

Damien

0 Kudos
Message 1 of 5
(6,802 Views)

Hi Damien

 

I have had a look at your code and do not appear to have the two main functions: MB Serial Master Query (poly).vi and MB Serial Init.vi.  Were these installed with the Modbus Toolkit?  What version of LabVIEW are you currently using?

 

As far as I understand, you want to use LabVIEW to write Boolean true/false values to your Adam 4068 device.  You then have two power supply devices connected to each of the coils of your Adam 4068.  Writing a true/false value in LabVIEW, you want to control the state of each coil.  When you write a true value to coil one and a false value to coil two, only the DC power supply should be on.  When you write a true value to coil two and a false value to coil one, only the AC power supply should be on. 

 

From your LabVIEW code, you would need to implement logic comparator functions and potentially case structures to select separate sets of code to implement this.  Could you first confirm whether I have understood correctly?

 

Kind Regards

 

 

 

 

Marshall B
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 2 of 5
(6,771 Views)

Hi Ben,

 

Currently labview 2012 yes i have the vis installed. Yes u understand correctly I have solved the problem in using a case structure and using a numeric constant for each condition. Thanks for the reply!

 

Damien

0 Kudos
Message 3 of 5
(6,766 Views)

Hi Damien

 

That is not a problem.  

 

Good luck with your application!

 

Kind Regards

Marshall B
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 4 of 5
(6,763 Views)

Hi damien,

Can i have your VI in LabView 2011. I'm interested with 4068 Adam device, and I would start with an example.

Thank for your reply.

Yann.

0 Kudos
Message 5 of 5
(6,697 Views)