Archive for the ‘vi’ Category
If you are still learning about control systems, the control functions showcase is a simple VI that can be a big help. Input a control function, select which data you want to view, and then the front panel will quickly display a graph and data for that particular response.

>>Download the code here
Posted in control, example-code, front-panel, function, graph, labview, vi |
TDMS files can store large amounts of test and measurement data. However, when a channel contains an extremely large amount of files, your system can get overloaded. If you want to free up some space and keep your front panel from locking up, this example code can help divide these large channels into smaller segments and add them back together for a more efficient system. Your computer shouldn’t get stuck opening and closing a file 50,000 times just because you have 50,000 samples in one channel.

>>Download the code here.
Posted in code, example, express, labview, segment, tdms, vi |
This VI simulates converting ladder logic (PLC) code into LabVIEW code. PLC code is known for operating in real time and updating based on the logic at that moment. The easiest way to translate this into LabVIEW is by using multiple while loops. This code updates logic based on a certain time frame, and then saves the current logic and time to a file. The code can be modified based on the user's needs and expected time frame.
>> Download code

Posted in code, example_programs, labview, vi, while_loop |
Commmunity member DBiel has submitted an example showing how to programmatically determine what cDAQ modules are in a chassis. This example uses LabVIEW and built-in DAQmx property nodes to communicate with a chassis and return an array of module information. This can be really useful during the startup phase of an application to make sure that the chassis is configured correctly before starting any data aquisition or other activities.
The example in the NI Community is called Get cDAQ Module Types in LabVIEW.

Posted in acquisition, chassis, daq, daqmx, data, determine, find, labview, module, nodes, property, slot, vi |