Aerospace, Defense, & Government
Academic & Research
Benchtop Measurement and Test
Distributed Measurement and Control
Systems Engineering Software
You can request repair, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
i have a 2D array type text that should be set to a special value.
Dimension is  where the 5 is the MyIndex parameter of the socket in the BatchModel.
Currently i am doing this in a for loop that loops 50 times for each socket and in the loop i set the array to the value.
StationGlobals[MyIndex][Counter] = "value".
Is there any faster way to do this?
Go to Solution.
Sure, you can use the following:
That expression will assign every element of Locals.MyArray to the number 5. If you want, you can specify an optional parameter to assign the value to only part of the array.
What do you need our team of experts to assist you with?
We'll be in touch soon!