From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ

Solved!
Go to solution

Hello

I have an external voltage trigger and I want to use it in my labview program, which measure data through serial port and save it on the text file. I plan to add another column on the text file to show the status of voltage either zero or 5 volt.

I already tried to use DAQ Assistant. I couldn't figure out how can I connect the data pin to the spread sheet. Right now my data is saved on the text file using Concatenate string since they are string. But what is the type of data (Number, String,..)?

I studies several tutorial from Labview Help, such as Read Dig Chan, or Cont Aqc and Graph,... Over there mostly used DAQmx create channel and DAQmx create timing. IS it really necessary for this application?

 

I appreciate any help or idea;

Best

0 Kudos
Message 1 of 8
(2,725 Views)

To complete my previous question: when I trigger external voltgae, I would like that DAQ start working. I  figured out how to save the out put of DAQ but it dosn't start when I turn on the trigger switch.

0 Kudos
Message 2 of 8
(2,719 Views)

I assume your VI is a sub-vi.  This one attached is within a while loop.  The data will record properly to the text file.  Did you intend to use the Number to Decimal String function?  I changed it to Number to Fractional String.  You will need to change the Simulate Signal Xpress VI back to a DAQ Assistant.  I hope this helps.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 3 of 8
(2,704 Views)

Sorry, here's the VI.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 4 of 8
(2,696 Views)

Thanks for the reply. I cannot test yours right now, but I have a question from it. So if I changed the simulate signal to DAQ assitant, what was the reason that you used it? And how can u trigger the program to start with the external voltage?

 

Cheers;

0 Kudos
Message 5 of 8
(2,678 Views)

Hi,

 

 DAQ Assistant is used when you have a hardware and to acquire signal form it. If you dont have any hardware you can simulate different signals like sine, triangle etc using Simulate Signal express vi. And for your program to execute in response to a trigger program it using DAQmx vi's as you have seen in examples.

0 Kudos
Message 6 of 8
(2,671 Views)
Solution
Accepted by topic author SBk

@SBk wrote:

Thanks for the reply. I cannot test yours right now, but I have a question from it. So if I changed the simulate signal to DAQ assitant, what was the reason that you used it? And how can u trigger the program to start with the external voltage?

 

Cheers;


The reason I used it, as GITA has eluded to, was because I don't have any hardware that can generate a signal, that's why I simulated one.  You can trigger a start by determinig what voltage constitutes a start condition, doing some comparison, and then trigger with a boolean function.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 7 of 8
(2,661 Views)

Thanks Guys for all the useful info.:)

0 Kudos
Message 8 of 8
(2,638 Views)