LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case structure and event structure with an indicator (boolean) condition

Solved!
Go to solution

That's exactly what I want. But I've some questions:

1-What's the objective of TDMS file out (I imagine that it's to put the file out of the while)?

2-Why did you put an error constant?

 

Could you give me any book name or NI links to learn more about LabVIEW (I've seen that I've to learn so much)?

 

Thanks!! You're a really good programmer 😉

0 Kudos
Message 21 of 37
(1,279 Views)

@SEGIO wrote:

That's exactly what I want. But I've some questions:

1-What's the objective of TDMS file out (I imagine that it's to put the file out of the while)?

2-Why did you put an error constant?

 

Could you give me any book name or NI links to learn more about LabVIEW (I've seen that I've to learn so much)?

 

Thanks!! You're a really good programmer 😉


  1. it is a way of initializing the shift register with the data specified by the constant
  2. good practices should include error handling, also to force data flow from one vi to another through that terminal connection point
  3. the books i use for references is "LabVIEW For Everyone" and "The LabVIEW Style Book.", glad I can help! and thanks for the kind comments ....good luck Smiley Wink
Message 22 of 37
(1,271 Views)
Spoiler
Acquisitionscreenshot.png
Spoiler
Waitscreenshot1.png

 Unfortunately I'm here again because when I run the program, the acquisition doesn't work. I don't know what I'm doing wrong, any help will be thanks 😉

0 Kudos
Message 23 of 37
(1,240 Views)

There was a problem in the FPGA part, now it's solved and also i have changed the RT part. It works fine!!! 😄

0 Kudos
Message 24 of 37
(1,236 Views)

Hi again! The program works fine, but now I've an other type of problem. A TDMS file is sent every fixed time, but the second file is not stored. FileZilla shows that the transfer has been succesfull, but the problem is that the file has the same name and FileZilla doesn't change the name of the file (e.g: the new file could be named data(1), and the following ones data(2), data(3)...) and it's not stored. Do you know any solution to this problem? I've thought that if FileZilla configuration can't solve this problem, I should change the name of the data file every time a new acquisition is done, but I'm not sure how to do it.

 

Thanks!!

Here's the program:

Spoiler
screenshot.png
Spoiler
screenshot1.png

 

0 Kudos
Message 25 of 37
(1,219 Views)

Can you please post your vi..There are a few issues that need to be fixed

 

  • there are no need for 2 'stop' controls
  • data flow of the error lines are not ultilized properly (wiring all lines to force execution)
  • and if it is a matter of naming the file something new ( a shift register comes to mind to increment a new name from a preset array of names, numbers or whatever..Once the acquisition is done with the necessary build path functions for renaming file and file path)
Message 26 of 37
(1,215 Views)

I'm in my laptot, I don't have the vi here I've to wait to go to the office...Tomorrow I'll put it, and thanks 😉

0 Kudos
Message 27 of 37
(1,209 Views)

But should I create a new while loop (inside the case structure) to implement the shift register? Because each acq has many iterations. The name needs to be changed in the part of creating file and also where the file is sended (FTP). 

One question that I forgot to ask, with Wait Until Next ms Multiple, don't I loose any data betwen loops?

 

Thanks 😉

0 Kudos
Message 28 of 37
(1,191 Views)

But the problem that I see now is that every time I create a new file, it will be stored in RT's memory and finally it will be full. That's the reason why I tried to replace the file every acquisition...

0 Kudos
Message 29 of 37
(1,186 Views)

@SEGIO wrote:

But the problem that I see now is that every time I create a new file, it will be stored in RT's memory and finally it will be full. That's the reason why I tried to replace the file every acquisition...


is it not as simple as deleting it after it is send over?


Learning LabVIEW since January 2013
0 Kudos
Message 30 of 37
(1,183 Views)