06-09-2025 02:45 PM
Hello everyone,
I'm here to show you my problem, since I've already tried everthing I read and I and my and my friends had in mind.
I'm doing a Measurement Station with LabVIEW for a University course: the purpose is to control two boards ST NUCLEO F401RE while one, which we'll call from now the Attacker, puts a PWM on the JP6 jumper of the other board, which we'll call the Victim (properly modded).
Now, this VI has to do the following things:
- choose random parameters to make a PWM signal
- transmit these parameters to the Attacker and prepare it to start the Signal
- start on the Victim a AES crittography program
- start on the Attacker the PWM signal while the Victim is encrypting
- control in the end it the encryption has been disturbed by the PWM signal
All these things are made with 5 SubVIs into the main VI: 1 for the parameters, 1 for the arming, 1 for the encryption start, 1 for the start of the attack and 1 for the rest of the AES program. All of this is put in a case structure, which is put into a for loop to make a spreadsheet.
Now, I made all of this, I made the Front Panel, I made the SubVI, and each thing stand-alone works; but if I made all work on the main VI, I have always the same problem: the Victim SubVI (or, to be more precise, the Victim 1 SubVI, since I had to split it to make it work while starting another SubVI with a result got in the middle of this) doesn't work.I used the probe to understand what happens, and basically I don't now how and why, the VISA Read don't wanna work. If I use the Victim SubVI standalone, it works perfectly. The strange thing is that even if I open the SubVI from the main one and use it standalone still doesn't work.
I supposed that the problem was that there were two subVI with different COM input in the same case, but even separating them doesn't work.
I tried to remake into the main VI what the Victim 1 SubVI does, supposing the problem was the excess of SubVIs... but nothing.
The only thing that I got making all these tries, other than frustration, is that the VI may work once in a while, but after this good attempt nothing more.
As you can see, for this I've also filled the VI with VISA Clear and VISA Close when I needed to clean all. I've also used VISA Flush, but still nothing.
My supposition now is that the program is just too heavy to make these things, and this weirds me out because it's a professor's request. Sure, probably there's another way to do these things, but I really don't understand what is so heavy and why nothing shows me it: I've tried to delete some SubVI as I said, and nothing changed.
I hope someone is able to help me, and thank you in advance.
P.S. : Sorry for my eventually bad english.
06-09-2025 08:10 PM
You will get better help if you do a "save for previous" (e.g. 2020 or below) and attach again. Not many have LabVIEW 2025 installed.
06-10-2025 07:29 AM
You're right, I'm sorry, I didn't think about it.
Here it is.
I also added a LabVIEW VI i modified and used into a subVI for Random Numbers generation and a CSV Dataset file for save the spreadsheet.
Have a good day.
06-10-2025 08:46 AM
You need to start with some basic tutorials.
Let's look at "measurement station", which I assume is your toplevel VI:
Can you describe How you use the program and the exact sequence what the program should do? What the default inputs are, what you expect to happen, and what happens instead. The words "don't work" is way too vague.
I have the feeling that the entire thing could be rewritten with 20% of the code.
06-10-2025 10:19 AM
Thanks for the answer.
I admit I didn't look for basic tutorials, since I did just what has been told at my course.
I'm going to explain to you what the sequence should be:
What doesn't work is the Victim 1 subVI: when it starts, it just doesn't read anything from the victim, so the subVI goes in timeout and anything works. All the Attacker' subVIs work perfectly, but even the Victim ones when are used stand-alone; but into this main VI just don't; and I still didn't figure out why.
Answering the other things you said:
I hope all this message helps to understand more what the machine has to do, or at least what I (and my professor) want it does.
Thanks a lot, have a good day.
06-10-2025 10:39 AM - edited 06-10-2025 11:01 AM
Maybe I have time to look at it later, but
06-10-2025 02:37 PM - edited 06-10-2025 02:45 PM
Hi, in the last version I updated here I've replaced Victim 1 subVI with a VISA Write and a VISA Read, which is basically the same thing (Victim 1 is made with a case structure with this thing + just a first case that check the turn on of the case and an error case). It should have benn called into the case 4 of the Case structure into the While loop.
The result is the same, i.e. still doesn't work.
06-10-2025 04:19 PM
@PaulanTony wrote:The result is the same, i.e. still doesn't work.
There are dozens of way to "work", and billions of ways to "not work". You need to narrow it down for us.
06-10-2025 05:54 PM
As I said, the behaviour is the same: the VISA Read doesn't work, the VI has a timeout and the results are none.
06-18-2025 02:06 PM
No one can help me?