I am trying to connect to a Modbus device using create serial master. I know all the parameters like baud rate is 38400, parity is even, flow control is none, serial type is RTU and I also know the COM port for VISA resource name. But what I don't know is Unit ID. I read the help definition of Unit ID and I didn't understand. Can anyone explain to me what exactly is the meaning of Unit ID so that I can ask my colleagues for the value of Unit ID. They know Modbus but don't know labview and I know labview but not Modbus. So if I just ask them what is unit id, then they will not know. I need to explain what it is, and then they can give me the value. Kindly help me. Thank you.
LabVIEW Modbus
HSDIO (NI-6542) Multiple record issue
Hi everybody,
I have an issue with numerical data acquisition with an HSDIO board (6542) in a PXI rack.
I generate a numerical partern on 8 bits using the same board (I have also tried with another board) and I want to read them.
I generate the pixel clock and triggers signals that are plugged to STROBE and PFI inputs.
My LV code seems to operate properly when I ask for a Single Numerical record with U32: acq data = gen data.
When I want a Multiple Record 2D U32, only the first record is correct, on the next ones, the data are present but they don't start at the right moment (rising edge of the trig input).
I guess I am missing something with the board configuration but I don't get what.
Here is the diagram: task creation, channel list declaration, clock input specification, trigger (rising edge on PFI3) configuration and number of samples to acquire (32 for this test) and number of records (3). In the event loop there is one event for the start VI, one for the record (acquisition) and the last one to stop.
Here is the result:
record #1 (white) is ok (according to generation not prensented here) with 3 values 0x00, 6 values 0x01 and the reset at 0x00.
Records #2 (red) and #3 (green) are shifted (on the left) by respectively 2 and 4 values. But this shift is totally arbitrary: depending on the number of samples to acquire it varies a lot and I didn't find the pattern.
And yes, the generation is larger (100 values) than the record (32)...
I didn't find any clues in the help or on the net.
Thank in advance for your answer!
Nicolas
labview matlab
how can I run the Matlab script server in LabVIEW community edition 2020
HTML file read
Hello,
I wanted to read/write/modify the HTML file content,Is tehre any addons available??
I will be getting only the HTML files which is my input.
Request to help me on the same
Regards
M.Sridhar
Alternatives to event structure for equipment control with UI on front panel
Hello,
I'm writing some LabVIEW software to monitor, measure, and control a bunch of lab equipment to perform some tests with it. In essence, there are four main things I need to achieve with the code:
- Continuously monitor and display several digital inputs from a DAQ card, including alarms and warnings.
- Measure analog signals from pieces of equipment like photodiodes and display them in graphs.
- Display a user interface for running several pre-defined tests and controlling variables on the equipment.
- Shut down the equipment safely once the above loops stop either through user input or an alarm.
I'm fairly confident that the first two bullet points can be achieved by two parallel while loops which monitor the equipment status and measure the data at different rates (faster for the monitor loop to pick up alarms and stop the code when necessary).
However, I've been trying to suss out the best way to manage the controls on the UI and running the pre-defined tests. I was thinking of using an event structure within a third while loop, but I'm not certain this is the best option. In this case, there would be several buttons or controls which trigger "Value change" events and run their respective code. The problem is that some of these predefined tests might take several minutes to run, and have while/for loops inside them as well. While these tests are running, the stop button and any errors for the program should still function and safely exit and shutdown the VI, aborting the current task. But having done a bit of research, it seems like event structures aren't supposed to contain long-running pieces of code. Is that correct, and what would the best alternatives be?
I've attached a mock-up of the kind of structure I'm looking at at the moment, but let me know if I need to clarify anything.
Authentication Error Labview Community Ubuntu 18 Install
Hi, I am trying to install Labview Community in Ubuntu 18 but I am getting this error when installing:
Installing NI System Configuration Runtime...
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
error: Failed dependencies:
avahi is needed by ni-avahi-client-20.0.0.49152-0+f0.x86_64
/bin/sh is needed by ni-avahi-client-20.0.0.49152-0+f0.x86_64
/bin/sh is needed by ni-software-action-services-20.0.0.49153-0+f1.x86_64
/bin/sh is needed by ni-targetcfg-7.0.0.49153-0+f1.x86_64
nicurli >= 20.0.0 is needed by ni-wsrepl-20.0.0.49152-0+f0.x86_64
/bin/sh is needed by ni-wsrepl-20.0.0.49152-0+f0.x86_64
/bin/sh is needed by ni-sysapi-20.0.0.49152-0+f0.x86_64
/bin/sh is needed by ni-syscfg-runtime-20.0.0.49152-0+f0.x86_64
Installation of NI Example Finder (LabVIEW 2020) is aborted because the
installation of the NI System Configuration Runtime failed.
Afterwards it still says Labview is installed but when launched I am asked to authenticate but authentication fails and tells to redownload and reinstall labview. Does anyone know how this is solved?
Modifier les indicateurs au cours d'un cycle d'exécution
Bonjour,
Afin de réaliser un projet, je dois trouver comment modifier la valeur d'un indicateur au cours d'une même exécution.
Mes indicateurs dépendent de 2 commandes (listes déroulantes) : température et pression. Ainsi j'aimerai pouvoir sélectionner dans mes listes déroulantes une autre valeurs de T° ou de P, au cours de l'exécution, et que les valeurs de mes indicateurs se modifient.
J'ai pensé à mettre une structure évènement mais je ne sais pas comment faire ? Auriez-vous des idées ?
Merci d'avance !
Labview : Modify the value of an indicator during a run
Good morning,
In order to complete a project, I have to find out how to modify the value of an indicator during the same execution.
My indicators depend on 2 commands (drop-down lists): temperature and pressure.
So I would like to be able to select in my drop-down lists another T ° or P value, during execution, and that the values of my indicators change.
I thought about putting an event structure but I don't know how?Do you have any ideas ?
Thank you in advance !
Modifier les indicateurs au cours d'un cycle d'exécution
Error out shows an issue with IVI Error Converter.vi, is there something wrong with my labview settings?
Hi all,
I have attached an image of my very simple vi, all i'm trying to do is Initialize the DAQ970, wait 3 seconds and then Close the DAQ970.
Previously I had code working which involved Initialize, read voltages in a while loop, close, so I know that the setup here with a delay should work. I tried to re-run the "while loop read voltage" vi and it was failing with this error, I tried with this delay and it is failing, I have even tried an Initialize immediately followed by a Close and that is failing in the exact same way too.
The team at Keysight Technology have tried my "while loop read voltage" code on their own personal DAQ970 and have said it is working so they have come back to me suggesting that there may be some issue with my LabVIEW settings that is causing the error converter to fail. Is this possible and is there anything I can change or do to check further why i'm getting this error?
Thanks
Calling Correct LabVIEW version from command line
I'm trying to call LabVIEW from the command line however I'm running into issues with the wrong version of LabVIEW being used and general inconsistencies as shown by the following scenarios:
- calling ""C:\Program Files (x86)\National Instruments\LabVIEW 2018\LabVIEW.exe" "<path to some lvproj file>"" when LabVIEW isn't running (any version) results in LabVIEW 2018 32bit being called to load the supplied project
- calling ""C:\Program Files (x86)\National Instruments\LabVIEW 2018\LabVIEW.exe" "<path to some lvproj file>"" when LabVIEW 2018 64bit is running results in the supplied project being loaded in LabVIEW 2018 64bit
- calling ""C:\Program Files (x86)\National Instruments\LabVIEW 2018\LabVIEW.exe" "<path to some lvproj file>"" when both 64 and 32 bit LabVIEW 2018 are running results in whichever was loaded last loading the project.
is there any way to ensure that the version of LabVIEW that I specify via the command line is the version that actually opens my file?
Change adaptar NI ethernet
Hello to all.
I have 4 ethernets in my PC.
I have just installed NI MAX and I can see the next in adapter ethernets:
The problem is when I connect my camera in ethernet 1 (intel ethernet connection adapter) because NI MAX says me something about jumbo frames when I try to acquire an image.
I would like to change the adapter in ethernet 1 to "Basler GigE Vision Adapter" then I will have all ethernets with the same adapter...
So is there any way to change adapter in ethernet 1? is it possible?
Thanks a lot.
Replace elements of an array from array of indices
From a text spreadsheet of possible switch positions where options "on", "off", "either" exist with the values "0", "1", "2". I need to edit the resulting array to replace all the "2" values to be either "0" or "1". With the attached Array Testing.vi I am able to extract the spreadsheet into an array and then extract the indices of all the "2" values. I also generate an array of "0" and "1" to use for the edit.
I am having trouble understanding how to over-write the "2" values with the "0" or "1" from the randomly generated array while retaining the original array "0" and "1" data.
The final array of 0's and 1's will be converted to a boolean array.
What say you?
Help me with this unipolar rectangular signal. tks
Hello, I tried to make this unipolar rectangular signal but I didn't succeed, I leave you the picture with the signal below. Could you please help me with this one? as soon as possible. Thanks.
Collect multiple types of signals in multiple cDAQ chassis
Hello everyone
I use 8 cDAQ-9189 chassis to collect vibration, current, and digital signals, and 3 types of signals may be collected on each chassis.
DAQ Start in For Loop
First, I create a DAQ task for the same task type on each chassis, the number of tasks is 13, (Acceleration 5, Current Input 3, Digital Input 5). Then put “DAQ Start” in the for loop to start the acquisition task. Finally, read the data according to the task type.
Each execution of The “DAQ Start” will take about 1s, and all tasks will take 11.7s. Then, when reading the data, the “AvailableSamplesPerChan” property in some tasks will always be zero, and there is no error in this task.
Why the “AvailableSamplesPerChan” is zero but no error is prompted?
DAQ Start Parallel
Second,the “DAQ Starta” and “DAQ Read” of each task are paralleled. The maximum DAQ Start time can reach 20s. But the data reading is normal after starting the collection.
What caused the “DAQ Start” to take too long?
Finally, how to achieve a quick start in such a situation?
Thanks
Henry
DAQ Start in For Loop
DAQ Start Parallel
Help me with this one. i need this as soon as possible. thx
Hi, I tried to do this but I did not succeed, I leave all the details of the problem below. Thank you....To be implemented in the Labview development environment, as a real-time application, a structure of single-contour automatic adjustment, using a PI-type adjustment law (Fig.1) and to test the response at the input step. The process transfer function is:
• HPI (s) - PI (Proportional Integrator) type regulation law transfer function;
• H (s) - Process transfer function;
• Vref (s) - The reference signal to be implemented of step type;
• Y (s) - Process output signal;
• E (s) - Error between Reference Size and Output Process Signal to be input
in the block that implements the PI type regulation law;
• YPI (s) - Output quantity of the PI type regulation law to be input (order size)
for trial;
• Y (s) - Output quantity of the process that will be the reaction quantity (feedback)
• EC - Comparison element
Condizione su un array
Multisim Connectivity Toolkit
Hi there, is there anyone who know about "Multisim Connectivity Toolkit"? In particular I would like to know if there is a version compatible with Multisim 14.1.
Thanks in advanced.
T.Matteo
cRIO precise timing
I am using a 9067 cRIO, I have several sections of code that must execute in 2 ms. I have timed each section and together they add up to under the 2 ms requirement. Problem is when running they often take longer than that, there is something running in the background that delays them. I used a timed loop to generate a user event but the user event code mentioned above could not run in the 2 ms window. I disabled my other code and/or disabled calling any other vis so only the 2 ms code is running but get same results. How do I see what processes are running in the background? I am using the JKI state machine so timed loops do not conveniently fit in that state machine. I timed the state machine and it is not the source of the delay. What overhead it running on the cRIO and can I do anything about it?
Program vi as subvi
Hi all, i have a program vi (A) that i compile to run as exe, it has a chart, event structure ,variabile ec.... Now im developing another Application (B) and i want integrate A in B. I would like to integrate the app and interact with it to get a chart value, variabile value and send the event. What is the best method to do this?