10-16-2022 09:29 AM
Hello I am trying to acquire 5 channels of data using daqexpress. I tried setting up API but I cannot set the read node to collet n-channels with n-samples. If I set it up for floating point just get the last data point, I wasn’t really trying to run in a wave form but if I need to I will. Thank you in advance as of now i am just using a 9205 to acquire the data.
10-16-2022
09:42 PM
- last edited on
05-15-2024
12:06 PM
by
Content Cleaner
Bob Schor
10-16-2022
10:50 PM
- last edited on
05-15-2024
12:06 PM
by
Content Cleaner
@BOB, maybe the OP is genuinely trying to use DAQ Express
10-17-2022 08:45 AM
Oops! I confess when I see the words "DAQ" and "Express" in proximity, I don't think about "DAQExpress" (which I've never used, I must confess, nor know much about), but of the Express VI called the "DAQ Assistant" (I tend to add the modifier "Dreaded" in front of the name).
My apologies for my rant. However, you might find that it is almost as quick and easy to simply create the DAQmx Task you need (I didn't mention this, but I tend to create my Tasks in LabVIEW Project (open Project, right-click "My Computer", select "New", "NI-DAQmx Task", find your (connected) device, define Channels, sampling rate, etc.
One detail I forgot to mention in the simple "Acquire Data" 3 or 4 DAQmx Function routine -- you need to tell the Read how many Samples to take. Depending on how you configure the Task, you may already have this number as a Property of the Task. If you look at the Example "Voltage -- Continuous Input", you'll see that one way to do this is to use the DAQmx Timing function into which you wire the # of Samples, with a branch going to the # of Samples input on the DAQmx Read function inside the Acquire loop. [Don't let this Example frighten you -- it has "all the Bells and Whistles" attached, most of which you won't use, and don't need to see at this point].
Bob Schor
10-17-2022 10:02 AM
Hello Bob,
I appreciate your reply's. I know what you mean about the DAQ assist. the person at working that is showing me how to program in labview has already reamed me for trying to use them. straight APIs are the way to go.
The program i am making is for a "quick" Dev program in Daqexpress. Daqexpress allows you make your own labview VIs (minus the fancy stuff invoke nodes, event structures, property nodes to control front panel) and its nice for quick little Acquistions. I'm running into the issue that the program is not collecting the 50 samples I'm asking for. I get the last value. I'm guessing my issue is that the read node won't allow me to do n-samples. I can make it work collecting waveforms but i was trying to play games with the time. let me see if I can set this up another way. i might just set it up though the daqexpress front panel (which is basically DAQmx)
Thank you for the help Bob!
10-17-2022 12:56 PM
Hi jcantu,
@jcantu wrote:
Daqexpress allows you make your own labview VIs (minus the fancy stuff invoke nodes, event structures, property nodes to control front panel) and its nice for quick little Acquistions. I'm running into the issue that the program is not collecting the 50 samples I'm asking for. I get the last value.
No, DAQExpress does not create "LabVIEW VIs" - instead it looks like the "end of life" (aka dead) LabVIEW-NXG variant, which is not compatible with (classic) LabVIEW…
When you want a "quick little acquisition" then you may use the testpanels within MAX. You can create DAQmx channels/task in MAX and you can use them later on in LabVIEW using the "straight" DAQmx API!
10-18-2022 06:54 PM - edited 10-18-2022 06:55 PM
Hi GerdW ,
My apologies Daqexpess does not make Labview VI's. It does however have while loops that act like Labview, a graphical representation that looks like Labview, and weirdly enough its made by the same people as Labview. i realize it's not the exact same thing but when you're just learning how to program it helps ease you into that very abstract world. Eventually i plan on doing all my coding in Labview but for now DaqExpress is just a means to an end.
-Joel
10-20-2022 02:25 PM
Joel,
Do you know if you are using LabVIEW, or if, instead, you are using LabVIEW-NXG? When you open the program, I believe it will indicate which one you are running. LabVIEW NXG ("Next Generation") was an attempt to create a "next generation" of LabVIEW, but was abandoned by National Instruments about a year ago, as it was missing a significant number of needed "features" and never really "caught on" with LabVIEW users.
If you are, in fact, using NXG, you should consider switching to LabVIEW. As I recall (but am not 100% certain this is correct), when LabVIEW NXG was offered, you also received a license for "classical" LabVIEW. If you need help "swapping" LabVIEW for LabVIEW NXG, I'm sure someone on this Forum can guide you through the steps. I'd offer to help, but I have very little NXG experience -- I did install it once (on a VM, I think), but quickly abandoned it (and "uninstalled" it simply by deleting the VM).
Bob Schor
10-20-2022 04:46 PM
Hello Bob,
for the above problem i was running DaqExpress. it is basically DAQMX but with more bells and whistles. in DaqExpress you can either set up task and run them or make labview(Type) VIs.it defiantly is lacking some of the customizable features of labview and i am starting to find other draw backs (like the issue above). It is super nice how fast you can whip something together in DaqExpress so for this it works. while we are using Daqexpress to gather baseline data im working on the actual exacutable in labview. so far everyone doesnt seem to know about DaqExpress which is fine but i didnt think i get so much " JUst use LaB ViEW"
10-20-2022 08:51 PM
Thanks for "forcing" me to ask the $0.64 question, "What is DAQExpress?". Well, it turns out to be an interesting, possibly "improved" version of the Dreaded DAQ Assistant (DDA), introduced about a decade earlier. When I first learned LabVIEW, there was "Traditional DAQ", which was "not pretty". Then came DAQmx, and the DDA. It took me a couple of months to learn enough to avoid the DDA, and a little later, I stumbled upon the "Learn 10 Functions in NI-DAQmx and Handle 80 Percent of your Data Acquisition Applications", and (all of a sudden) DAQmx "became easy".
I confess I have no experience with DAQExpress. I find it "interesting" that it is "free if you have an NI account", but otherwise you need to pay for a license (in addition, of course, to the cost of your LabVIEW license). I'll continue to suggest that learning the basics of DAQmx ("Learn 10 Functions") is the most sensible approach to using LabVIEW to control DAQ hardware.
Bob Schor