04-21-2023 09:13 AM
Hello.
Is it possible to set the single voltage level on one channel, measure the voltage and current of that channel, and generate a continious signal on the other channel at the same time? Thanks
06-06-2023 09:46 AM
Absolutely! This is a key functionality for instruments with multiple channels.
I'm not sure what programming language you are using, but the key is to pass the channel name into each function/method/VI.
I recommend looking at the examples and reading the documentation on theory of operation. www.ni.com/docs/en-US/bundle/ni-dcpower/page/ni_dc_power_supplies_help/ni-dcpower_examples.html
06-06-2023 11:39 AM
And all these become easy when you create separate sessions for each channel
06-06-2023 02:45 PM
NI (and I) recommend that you use niDCPower_InitializeWithIndependentChannels() (or your programming language's equivalent) to open a single overall session to the NI-DCPower instrument or instruments in your system. With that single session, you can specify the channels to use on each method call.
This simplifies multi-channel and multi-device session management and improves synchronization.
06-06-2023 08:39 PM
@Tobias, isn't that a new API from v20.0 or something?
06-07-2023 09:23 AM
Independent Channels support was added in NI-DCPower 20.6.
From the readme:
Independent Channels: Added support for independent operation of instrument channels. Initializing an NI-DCPower session with independent channels allows you to use multiple instruments in the same session. With independent channels, you can configure multiple channels of the same instrument, or of multiple instruments, independently of one another within the same session.
06-08-2023 12:34 PM
Depending on the niDcPower driver version you use, you can either go with the method Tobias recommended or initialize separate sessions for each channel.