How to add two units to c program (usbtc08)

Post your C and C++ discussions here
Post Reply
Bear21
Newbie
Posts: 0
Joined: Thu Apr 26, 2018 5:05 pm

How to add two units to c program (usbtc08)

Post by Bear21 »

Hi i was wondering if someone can me out. I am trying to display two DAQ's and i am using the "usbtc08gui.c" code given from the "usbtc08" file from GitHub. the code allows to run 4 units but is currently set up for only one unit. How can I add the second unit to the code? I have attached the codes and a screenshot of the channels (1-16) that are working right now. On the screenshot attached, you can see the first 8 channels are working. So what Im trying to do is open the other channels and i am stuck from here on what to do or where to add code to add the other DAQ unit and channels.
Attachments
Screen Shot 2018-04-26 at 11.15.07 AM.png
Screen Shot 2018-04-26 at 11.15.07 AM.png (36.68 KiB) Viewed 5972 times
resource.h
(2.64 KiB) Downloaded 481 times
usbtc08.h
(9.35 KiB) Downloaded 477 times
usbtc08con.c
(8.46 KiB) Downloaded 494 times

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: How to add two units to c program (usbtc08)

Post by Martyn »

You need to check the set_channels function and put this in a loop to set the channels for each attached device.
Martyn
Technical Support Manager

Post Reply