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 » Thu Apr 26, 2018 5:19 pm

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 980 times
resource.h
(2.64 KiB) Downloaded 120 times
usbtc08.h
(9.35 KiB) Downloaded 115 times
usbtc08con.c
(8.46 KiB) Downloaded 130 times

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

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

Post by Martyn » Fri Apr 27, 2018 8:19 am

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