‎08-25-2021 12:29 AM
Hi,
Did anyone use PXI-6570 in the below instances. If yes, I would like to know how 6570 behaves in the below specified use case.
UseCase1:
Site | PinName | Channel | Instrument
0 | Swd_Clk | 0 | DPI_1
0 | Swd_Dat | 1 | DPI_1
1 | Swd_Clk | 0 | DPI_2
1 | Swd_Dat | 1 | DPI_2
My execution flow in the code is as follows:
The same question is applicable for the other VIs (like load timings, levels, etc ) as well.
To summarize, Can I burst pattern or change the settings of site 1 using the instrument handle of DPI_1? ( Since the instrument resource allocation is already available in the pinmap that is linked to the loaded project will it work?)
‎08-25-2021 09:01 AM - edited ‎08-25-2021 09:03 AM
Depending on the NI Digital version you use.
Sessions are per instrument, this means you will have to initialize them separately and perform the operations identically for each. Even if you pass in more sites than the instrument has, it just ignores the sites it does not have.
If you're using Digital 19 or higher (may be from 18 too I'm not sure), there is a feature called instrument group, you can do this by passing the instrument names as a list in the initialize, now all instruments are part of the same session.
With this feature, your code simplifies as below.
Edit: regarding your last question, yes, settings are retained per instrument, if you have got an array of sessions, operations on respective sessions affect only those instruments, when you use the instrument group feature, depending on the settings it will be applied to the listed site or all instruments.
‎08-25-2021 10:20 AM
Hi Santhosh,
Thanks for the details.
Due to some framework limitations, I can't go with the first option. So I wanted to make things work with a single reference.
It seems, Second option works. I will try it with the latest DPI version.
Thanks.
‎08-28-2021 04:17 PM
Once you validate, please mark appropriate post as solution to close thread and help other members in the future