LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Asking for Guidement about simulation in LabView

Hello,

My name is Ichrak Zidi, and I am currently a master's student at the University of Applied Sciences Berlin (HTW Berlin). As part of my master's thesis, which focuses on enhancing the expressiveness regarding measurement uncertainties of chained measurement variables, I require the use of LabVIEW.

Unfortunately, I have small knowledge about LabView and i need more help. Therefore, I am writing to ask for a guidement whether it is possible to obtain to obtain more help and tipps.

Quick Explantion about the task:

I want to simulate my test bench, that it is physically build, in LabView and to do a measurement of Voltage and Current with a calibration routine  then I get a grafically output as rising rectangular function in Dewetron .

1. Test Bench Components:

  • Fluke Calibrator 5502A
    Generates precise current or voltage signals for calibration. Defines min/max values and step size.

  • Sensor Under Test (SUT)
    Measures current (with windings) or voltage. Characterized by its range and transformation ratio.

  • Dewetron Oscilloscope
    Captures sensor output during each calibration step. Considers windings (for current) and full measurement range.

The Calibrator driver is already installed in LabView. I want to create in the Calirator a Calibrationroutine allows me to control these Values:

 

2. Required Input Data for Calibration Routine:

  • LabVIEW Inputs:
  • Start value
  • End value (based on sensor measurement range)
  • Step size
  • Number of windings (only for current sensors; for voltage, use 1)
  • Hold duration per step
  • Pause duration between steps
  • Pause duration between hold points
  • Number of repetitions per steps

Note: The end value and step size are related to the number of windings on the sensor (for current measurements). Since the calibrator has a maximum of 20 A.

3. Graphical Output in Dewetron  rising rectangular function:

 Two separate plots:

  1. Step Function with Constant Pause Duration

    • Shows signal level over time.
    • Flat steps with equal spacing between them.
  2. Step Function with Variable Pause Duration

    • Same signal levels.
    • Pauses between steps vary in length (e.g., based on step value).

Each plot helps visualize how the system responds under different timing conditions.

 

I need help and guidment how to build these blocks and how to connect between them.

I would greatly appreciate your support and a positive response to this request.

Thank you very much in advance for your assistance.

Best regards,

Ichrak

0 Kudos
Message 1 of 12
(303 Views)

Have you tried any of the core training that is available?

https://forums.ni.com/t5/LabVIEW/bd-p/170

Look at the top of the page for LabVIEW Core 1:

 

aeastet_0-1748449175580.png
This will get you started on the basics for programming LabVIEW. From there you can com back with questions. I would recommend that you look into a producer consumer architecture. I would also have you look at a state machine for your loops.

 

Tim
GHSP
0 Kudos
Message 2 of 12
(291 Views)

@IchrakZidi wrote:

Hello,

My name is Ichrak Zidi, and I am currently a master's student at the University of Applied Sciences Berlin (HTW Berlin). As part of my master's thesis, which focuses on enhancing the expressiveness regarding measurement uncertainties of chained measurement variables, I require the use of LabVIEW.

Unfortunately, I have small knowledge about LabView and i need more help. Therefore, I am writing to ask for a guidement whether it is possible to obtain to obtain more help and tipps.

Quick Explantion about the task:

I want to simulate my test bench, that it is physically build, in LabView and to do a measurement of Voltage and Current with a calibration routine  then I get a grafically output as rising rectangular function in Dewetron .

1. Test Bench Components:

  • Fluke Calibrator 5502A
    Generates precise current or voltage signals for calibration. Defines min/max values and step size.

  • Sensor Under Test (SUT)
    Measures current (with windings) or voltage. Characterized by its range and transformation ratio.

  • Dewetron Oscilloscope
    Captures sensor output during each calibration step. Considers windings (for current) and full measurement range.

The Calibrator driver is already installed in LabView. I want to create in the Calirator a Calibrationroutine allows me to control these Values:

 

2. Required Input Data for Calibration Routine:

  • LabVIEW Inputs:
  • Start value
  • End value (based on sensor measurement range)
  • Step size
  • Number of windings (only for current sensors; for voltage, use 1)
  • Hold duration per step
  • Pause duration between steps
  • Pause duration between hold points
  • Number of repetitions per steps

Note: The end value and step size are related to the number of windings on the sensor (for current measurements). Since the calibrator has a maximum of 20 A.

3. Graphical Output in Dewetron  rising rectangular function:

 Two separate plots:

  1. Step Function with Constant Pause Duration

    • Shows signal level over time.
    • Flat steps with equal spacing between them.
  2. Step Function with Variable Pause Duration

    • Same signal levels.
    • Pauses between steps vary in length (e.g., based on step value).

Each plot helps visualize how the system responds under different timing conditions.

 

I need help and guidment how to build these blocks and how to connect between them.

I would greatly appreciate your support and a positive response to this request.

Thank you very much in advance for your assistance.

Best regards,

Ichrak


Go over to the CS department at your university and find someone that will write this code for a case of beer (or whatever kids like these days). If you are fluent in any general purpose programming language this is a few hours of work. 

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 3 of 12
(236 Views)

Just to clarify the task:

 

You talk about "simulation", but list a lot of measurement hardware. Can we assume you want to simulate everything using only a computer, and these are not real instruments?

0 Kudos
Message 4 of 12
(220 Views)

No I do have real instruments and i build a test bench so i can do a measurement physically. The issue is I don't know how to simulate in LabView because I want to do the measurement via this software.

0 Kudos
Message 5 of 12
(210 Views)

You are going to need to learn LabVIEW. I gave you a link to get started above. Please keep in mind that most of us that are here on this forum do not work for NI. We have full time jobs doing this kind of work all day. We come here to help out others because we love LabVIEW and we like helping it grow.

We do  not write code. We are here to help you with the code that you wrote. You need to try to put code together and come back for advice. I pointed you in the right direction in my earlier post. Please look at what I told you and start doing some research and learning. You can also use an AI program. It will not write code for you in LabVIEW but it does a decent job of telling you how to build your code. You can start there and come back and we can help make it better.

Tim
GHSP
0 Kudos
Message 6 of 12
(191 Views)

Thank you for reaching out. I did learned by myself some basic stuf and I kept searching for other information. I also I created a skript Python for it and it was successful, the thing is I'm not sure how to iplement it right that's why I asked for some guidance. However I tried to build in LabView, this screen shot shows.

IchrakZidi_0-1748621417770.png

 

0 Kudos
Message 7 of 12
(178 Views)

Can you pls have a look on it and tell me what's wrong? I also updated the skript python so you can have an idea.

thank you so much

0 Kudos
Message 8 of 12
(177 Views)

OK I started a simple queued state machine. I tired to make comments so you can see how this would work. This is just an example to get you started. We can add your code from here once you get your head around how this works.

Tim
GHSP
0 Kudos
Message 9 of 12
(162 Views)

Thank your help, I really appreciate it but i am having a struggle how can I put my code here. Can you enlighten me more please?

0 Kudos
Message 10 of 12
(137 Views)