LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing a number to TDMS

Solved!
Go to solution

I don't know how to do that. I am not sure that I inderstand.

0 Kudos
Message 11 of 28
(1,608 Views)

Can you just change my subVI?

0 Kudos
Message 12 of 28
(1,605 Views)
Solution
Accepted by topic author miki90

http://www.ni.com/gettingstarted/labviewbasics/environment.htm#Block Diagram Nodes

 

I would recommend looking up some LabVIEW basics.

 

Attatched is a VI where I cleaned it up and allowed it to accept a single double value to write.

Message 13 of 28
(1,603 Views)

Where was my mind...I created a default control on the input of TDMS write instead of making my own control, and then link it to the input. Thank you so much!

0 Kudos
Message 14 of 28
(1,597 Views)

One more thing, and I am done with my project: I want to make an event to interact with stop button, and when someone wants to stop the program, the dialogue "Are you sure you want to stop the program?" occurs. And of course YES and NO options. I tried it in several ways, but when I put the stop button from the while loop into event case structure, program stops working. No signal aquisition. I tried with Two button dialogue, but problem with aquisition still exists. Do you have any solution?

0 Kudos
Message 15 of 28
(1,585 Views)

@miki90 wrote:

One more thing, and I am done with my project: I want to make an event to interact with stop button, and when someone wants to stop the program, the dialogue "Are you sure you want to stop the program?" occurs. And of course YES and NO options. I tried it in several ways, but when I put the stop button from the while loop into event case structure, program stops working. No signal aquisition. I tried with Two button dialogue, but problem with aquisition still exists. Do you have any solution?


Can you post your code?  There's a 1,000,001 ways to mess that up.  And I'm sure I've done half of them.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 16 of 28
(1,578 Views)

@miki90 wrote:

One more thing, and I am done with my project: I want to make an event to interact with stop button, and when someone wants to stop the program, the dialogue "Are you sure you want to stop the program?" occurs. And of course YES and NO options. I tried it in several ways, but when I put the stop button from the while loop into event case structure, program stops working. No signal aquisition. I tried with Two button dialogue, but problem with aquisition still exists. Do you have any solution?


Again please look up some LabVIEW basics information.

 

http://www.ni.com/white-paper/3331/en

 

It is likely you have no timeout so you wait forever for the button to be pressed and won't take any readings until an event is generated.  Adding a timeout case is a patch to an already bad layout.  One should not need to be polling anything in a program of this size.

0 Kudos
Message 17 of 28
(1,576 Views)

It is the same program I attached above. I also tried to put a timer,but it shows me some error. A message is: "You must provide a case to handle the Timeout event if the timeout input is wired."

0 Kudos
Message 18 of 28
(1,573 Views)

@miki90 wrote:

It is the same program I attached above. I also tried to put a timer,but it shows me some error. A message is: "You must provide a case to handle the Timeout event if the timeout input is wired."


 

Well did you try to provide it a timeout case?  One is made by default when you put down an event structure.

0 Kudos
Message 19 of 28
(1,570 Views)

I tried, but it doesn't work the way it should work. I have materials and I read about events, but nothing solved my problem. Frequency analysis are stopping after few seconds,and then I cannot stop the program with the stop button on the front panel. I have put a constant value of 1000 in the timeout case,just for trial.

0 Kudos
Message 20 of 28
(1,561 Views)