LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a sequencial value of boolean array

I cannot look at your daq assistant.  It seems there is information that is missing that prevent me from opening them.  But from the rest of the discussion here, it seems like you should look at the write digital port example.  This will allow you to send your numbers across your bus, and loop through them in whatever order you want.

 

If you go to help> Find Examples, the example finder will launch.  From there, Navigate to Hardware Input and Output > DAQmx > Digital Generation > Cont Write Dig Port Int CLK.vi

 

Ryan

Applications Engineer
National Instruments
0 Kudos
Message 21 of 26
(848 Views)

Hi,

 

Can I check my VI working without being connected to DAQ assistant? I mean do we have any option to simulate my output or see my output bit pattern which I intended to generate through my VI?

 

Thanks

Prashant

0 Kudos
Message 22 of 26
(834 Views)

The example Ryan mentioned is one of the DAQmx shipping examples and does NOT use the DAQ Assistant.  It will teach you how to use the real LabVIEW VIs yourself instead of relying on the Assistant. 

 

Of course you can set up indicators that will show you the boolean array and/or the HEX values passing out through your digital port so you can be sure you're sending the correct commands.

 

Try to modify the example to suit your needs and post the code (not a pic in a doc) here if you have trouble...

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 23 of 26
(815 Views)

Hi NIquist

 

I am attaching the VI, If you see in the DAQ signalaspect (Sub VI), I have DAQ assistant but I want to read my b bit patterns without connecting to cDAQ or disabling DAQ assistant

 

Thanks

Prashant

Download All
0 Kudos
Message 24 of 26
(804 Views)

UPRR, 

 

What bit patterns do you want to read?  From your description and the code I only see intent to output.  If all you mean is to see what the output will be, just simply put an array indicator on the same wire as what you pass to the daq assistant.  There is no need to put 20 something array indicators on the front panel, its impossible to tell what each one is doing.

 

Ryan

Applications Engineer
National Instruments
0 Kudos
Message 25 of 26
(791 Views)

I can't open your LV2011 VI but it it sounds like your over-complicating things a bit (EDIT: a bit, get it! Smiley LOL).  Why do you want a bunch of Boolean indicators???  If you want to monitor a stream of digital commands it's much easier to view the data in HEX.  You can do it either way (or both) if you wish.  Just do what Ryan told you and put an indicator on any wire where you want to monitor the values.  Don't forget you can also probe any wire to temporarily monitor what's passing through it.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 26 of 26
(788 Views)