DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to input x values from LabVIEW into DIAdem Report?

Solved!
Go to solution

I am trying to produce an xy graph in DIAdem Report.  The Y axis is supposed to be dB and the X axis is supposed to frequency.  (Freqency response chart)

 

 

 

My DIAdem Report express control has a "Signals 1" input, which I have input a dynamic data wire populated from a 2 array with 7 signals.  The PDF generated has the Y values for the 7 channels properly displayed, but the X values are not correct.

 

Attached is a screen shot of the properly displayed data from a "Build XY graph express" in labview; and a screen shot of the pdf created by DIAdem.  I want them to look similar.

 

If your answer includes something about scripting (and I dreadfully hope there is a non scripting method) please include details or explicit tutorial links with steps to accomplish the goal.

 

 

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
Download All
0 Kudos
Message 1 of 9
(5,281 Views)

the pdf wasn't correct, this is the correct pdf

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 2 of 9
(5,270 Views)

Hi Eximo,

 

If you want to show the X channel information in an XY plot in DIAdem, you're going to have to send the X values from LabVIEW to DIAdem.  It sounds like you're sending the 7 Y signals from LabVIEW to DIAdem but not the X values that you're wiring up to the LabVIEW XY graph express block.

 

Can you post the LabVIEW code that contains the "DIAdem Report" express block?

Brad Turpin

DIAdem Product Support Engineer

National Instruments

Message 3 of 9
(5,248 Views)

Here is a an example sample code, I am also uploading the layout file, I'm not sure if you need it or if the vi has already included it.

 

The jpg isn't really a jpg, it's a TDR file, just change the ext when you download it.  (TDR = Diadem Layout)

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
Download All
0 Kudos
Message 4 of 9
(5,227 Views)

Here is a an example sample code, I am also uploading the layout file, I'm not sure if you need it or if the vi has already included it.

 

The JPG is not really a jpg it's a .TDR file, once you download it, you have to change the ext.  I changed it because the forum uploader threw up since it didn't match one of the acceptable file extensions.

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 5 of 9
(5,227 Views)

eximo,

 

I ran this example code on my machine and it seemed to work just fine. The graph appears in the PDF just as it does in the LabVIEW graph. What problem exactly are you experiencing?

National Instruments
0 Kudos
Message 6 of 9
(5,182 Views)

Yes, but if the data is collected with frequencies from 10 - 60 instead of 1 - 60, the x axis on the diadem pdf will be from 1-50 instead of 10-60, also if I collect the data at a different increment than 1 it will also not be correct.

 

The file attached was collected from 10-60 hz with an increment of 2.  As you can see the x axis is indicating the frequencies ranged from 1-25.

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 7 of 9
(5,175 Views)
Solution
Accepted by topic author eximo

eximo,

 

The key is to change the setting for the XYGraph1 in the DIAdem Report express vi to <x-yyy> or <x-y, x-y>. None of the x-values were being passed to the DIAdem Report express vi so it was not able to adjust the x-axis. Attached is a modified version of your vi that I believe is more like what you are looking for.

National Instruments
Message 8 of 9
(5,157 Views)

Yes changing the X-yy was the key, I did this by clicking on the td/to value and changing to x-yy, I then had to figure out which values were going to be interpreted as x and which values would be interpreted as y

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 9 of 9
(5,147 Views)