Jump to content
  • 0

USB-1608GX VB.NET Dual Channel Single Application


kushal.nargundkar

Question

Hello,

I wanted to know if it is possible to use 2 different MCC boards in a single application?

I have 2 channels connected on AIN0 on 2 separate boards & I'm creating 2 different instances of DAQBoard using createDAQDevice & calling them Board #0 & Board #1 and it is giving me a Dialog box of "Board number already in use"

Do you have any sample code of such an application?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hello,

There is an issue with the Discovery interface when using the Universal Library. Instead, use the InstaCal utility to recognize both devices and then create the DAQBoard objects using the board numbers assigned by it. As soon as I have more information, I will update this post. 

If you want to sync both devices, set one up as the master and the other as a slave. Set the slave's scan options to include EXTCLK and program it first, then the master. When the master starts, it will output its clock to the slave, starting it at the same time. Connect a wire from AICLKO (master) to AICLKI (slave).

Best regards,
John

Link to comment
Share on other sites

  • 0

Hello John,

They are the same devices and need to be used independently. I don't want to sync them. All the functions when used with Board number as 0 work & they're happy. The moment they get 1 as a board number they don't work. I get invalid board number error. Is this a known issue?

I'm using InstaCal to recognize both devices & have hard coded the objects to use those board numbers. I'm also looking for the Serial number to identify them in my code.

Link to comment
Share on other sites

  • 0
On 7/17/2023 at 8:22 AM, JRys said:

I'm sorry for the late response.  Could you list the routine used to find both devices?

Hi John, I didn't see your response until now.

So the root cause was that the same class was used for both left & right sides. Hence the same memory handle was assigned to both objects. This would be an issue when trying to read AI synchronously at the same time. I created 2 different classes even though identical to each other & then using the serial number of the MCC boards to use separate class solved the issue.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...