05-28-2013 01:28 PM
I don't know how to do that. I am not sure that I inderstand.
05-28-2013 01:31 PM
Can you just change my subVI?
05-28-2013 01:36 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-28-2013 02:09 PM
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!
05-28-2013 02:37 PM
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?
05-28-2013 02:56 PM
@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.
05-28-2013 03:02 PM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-28-2013 03:12 PM
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."
05-28-2013 03:15 PM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-28-2013 03:51 PM
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.