Test and Measurement Forum

How to add two units to c program (usbtc08)

Post your C and C++ discussions here

How to add two units to c program (usbtc08)

Postby 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 716 times
resource.h
(2.64 KiB) Downloaded 77 times
usbtc08.h
(9.35 KiB) Downloaded 74 times
usbtc08con.c
(8.46 KiB) Downloaded 84 times
Bear21
Newbie
 
Posts: 0
Joined: Thu Apr 26, 2018 5:05 pm

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

Postby 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
Martyn
Site Admin
Site Admin
 
Posts: 3166
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests